Create a Buy Now Button, sell products and accept payments from customers.
You can create a Buy Now button from the Razorpay Dashboard and embed it on your website to accept payments from customers. This is useful in cases where you want to sell products on your online store.
Example
Suppose you are a pottery artist who sells hand-painted pottery articles to customers using your website. You can embed the Buy Now button on your online store to sell your products.
Assume you sell the following product on your online store:
Product Name
Number of Items Available
Number of Items purchasable per user
Price per Item (in ₹)
Handpainted Coffee Mugs Set
25
1
500
You also offer gift wrapping for an additional cost of ₹30.
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, Handpainted Home and Kitchen Decor.
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 Buy 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)
You must use the amount fields to list your products. There are two types of amount fields available: Fixed Price and Item with Quantity. For the Payment Button in the example, you must create two amount fields with the following configurations:
Amount Field Name
Amount Field Type
Optional Item
Handpainted Coffee Mugs Set
Item with Quantity
Yes
Add Gift Wrap
Fixed Amount
Yes
To create the Hand-painted Coffee Mugs amount field:
Click +Add Amount Field.
From the drop-down list, select Item with Quantity as the field type.
On the pop-up page:
Enter the label of the product as Handpainted Coffee Mugs Set.
Click + Add Description and enter details if required.
Enter the amount as 500.
Click the more icon to view Advanced Options.
Configure the Limit Quantity per Order, with 1 in Min and Max fields. This will prevent customers from ordering more than 1 item.
Select Item has Limited Stock and enter the value as 25.
Click Save.
Save the field.
Now, let us create the Add Gift Wrap amount field.
Click +Add Amount Field.
From the drop-down list, select Fixed Amount as the field type.
On the pop-up page:
Enter the label of the product as Add Gift Wrap.
Click + Add Description and enter details if required.
Enter the amount as 30.
Click the arrow to view Advanced Options and disable Item has Limited Stock.
In the Customer Details section, configure the information that must be entered by the customer 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.
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.