Create a Custom Payment Button and accept payments from customers.
You can create a Payment Button using the Razorpay Dashboard and embed it on your website to accept payments from customers.
Example
You work for a baking institute and are in charge of organising a baking competition. You must add a payment button in your website for participants to register and pay the enrollment fee.
Razorpay Dashboard has test and live modes. Payment Buttons created in the test mode do not appear in the live environment. You must create a new Payment Button in live mode.
On the Button Details pop-up page, enter the relevant information:
Title: Provide a name for the button. This name is for your internal reference and appears on the Razorpay Dashboard. It will not be visible to customers. For example, Annual Baking Competition.
Button Type: If you want to change the button type, click the drop-down list and select one of the types. If the button type is switched mid-way, any information entered during creation will not be saved.
Button Label: The text on the button to be displayed to customers. Please enter alphanumeric characters only. The maximum character limit is 20. An example for this is Register Now.
Button Theme: You can choose between the following themes:
Razorpay Dark
Razorpay Light
Razorpay Outline
Brand Color (This is the color configured by you on Razorpay Dashboard)
In Customer Details, configure the information that must be entered by the participant while making the payment. By default, Email and Phone must be entered. However, you can edit the labels of these fields.
Review the details entered in the previous sections. You can click Back to navigate to the Button Details, Amount Details and Customer Details sections to make changes.
Click Create Button.
After completing the steps, the button code appears. Copy this code and add it in your webpage.
The embed code generated on the Razorpay Dashboard must be embedded in your website. After this is done, the Buy Now button will appear on your website.
Customers can click this button to:
Open Razorpay Checkout
Select the products
Add their name and address
Complete the payment.
You can embed this code on any webpage, be it a custom HTML site or one built on platforms such as WordPress, Wix or Google Sites.
Let us embed the Buy Now button on an HTML page.
Create a blank HTML file on your system.
Paste the embed code on to the page.
Save this HTML page and open it on the browser.
Your button has now been embedded on your website!
You will receive the payments in your bank account as per the settlement cycle agreed upon at the time of Razorpay account setup. Usually, this is T+2 days. In case of international payments, the settlement cycle is T+7 days.