Additional Support for Payment Methods

Check the various form fields you can use in the Checkout Form used in Razorpay Checkout integrations.


The Razorpay Web Custom SDK lets you integrate the supported payment methods on your website's checkout form.

Use the

to fetch the payment methods available for your account.

Below are the sample payloads for each payment method.

In this case, data.method should be specified as card. Other required fields:

  • card[name]
  • card[number]
  • card[cvv]
  • card[expiry_month]
  • card[expiry_year]
razorpay.createPayment({
amount: 5000,
email: 'john.smith@example.com',
contact: '+11234567890',
order_id: 'order_9A33XWu170gUtm',
method: 'card',
'card[name]': 'John Smith',
'card[number]': '4916 3338 9663 2957',
'card[cvv]': '123',
'card[expiry_month]': '10',
'card[expiry_year]': '30'
});

When method is ach, you need to pass an additional field bank_account as shown below:

razorpay.createPayment({
"amount": 50000,
"currency": "USD",
"order_id": "order_GAWN9beXgaqRyO",
"email": "john.smith@example.com",
"contact": "+11234567890",
"method": "ach",
"bank_account": {
"account_number": "000000001234",
"name": "John Smith",
"bank_code": "122105278",
"bank_code_category": "routing_number",
"account_type": "personal_savings"
},
"billing_address": {
"line1": "Block",
"line2": "Street",
"city": "San Jose",
"state": "California",
"postal_code": "33154"
}
})

You can list the available banks using a drop-down for customers. You can obtain a list of banks using the

.


Is this integration guide useful?