Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

109
Views
Razor pay give payment amount as one rupee incorrectly

I am trying to add razorpay payment gateway to my website. I use this method. I used code like below,

 

document.querySelector('.razor').setAttribute('data-amount', 4200)
    <form action="https://www.example.com/payment/success/" method="POST">
<script class="razor"
    src="https://checkout.razorpay.com/v1/checkout.js"
    data-key="rzp_live_1vs8SzfbPyOPH1" 
    data-currency="INR"
    data-buttontext="Pay with Razorpay"
    data-name="Acme Corp"
    data-image="https://i.imgur.com/sscxwyv.png"
    data-prefill.name=""
    data-prefill.email=""
    data-theme.color="#F37254"
></script>
<input type="hidden" custom="Hidden Element" name="hidden">
</form>

This code give payment amount as one rupee instead of 42 rupees. Where is the error happened? Code pen link here

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

instead of using data-amount you should use amount only

(document.querySelector('.razor').setAttribute('amount', 4200)

this might help you to resolve your problem screenshot

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!