razorpay / razorpay-php-testapp

Sample App for Razorpay PHP Integration
MIT License
32 stars 45 forks source link

Change Text of Button in pay.php #6

Closed sau6402 closed 7 years ago

sau6402 commented 7 years ago

This may look like a very basic question, but I am unable to change the text of button in pay.php There is no code for that button in the page and it appears due to the script, I believe.

I was able to change the CSS via changing the .razorpay-payment-button class. Please help me to change the button name from "Pay Now" to something else.

-- Regards SAurabha J

ankitstarski commented 7 years ago

You can use the attribute data-buttontext in order to do it.

captn3m0 commented 7 years ago

This is documented in the Automatic Checkout documentation: https://docs.razorpay.com/docs/checkout-form#automatic-checkout

dbrax commented 4 years ago

thank you it helped alot