Feature RequestThis is an on-demand feature. Please raise a request with our Support team to get this feature activated on your Razorpay account.to get this feature activated on your account.
PCI-DSS Compliance
You must be PCI-compliant to accept and process customers’ card details using the MOTO payment method. The compliance certificate should be updated as per the yearly renewal cycle.Steps to Create Batch Card Payments
Following are the steps to create MOTO card payments in batch:1
Step 1
2
3
Step 3
Step 1: Download Sample Batch File
- Log in to the Dashboard.
- Navigate to Transactions → Batch Payments and click Download Sample File.
Step 2: Fill in Card and Payment Details
In the downloaded file, fill the necessary details while ensuring that the header row is not modified. A sample data row is shown below:Feature RequestMOTO payments can also be processed using Razorpay token id if you are using tokenisation or a saved card feature.
This is an on-demand feature. Please raise a request with our Support team to get this feature activated on your Razorpay account.
Batch File Details
Different fields that need your input are listed below:Header mandatory
: string Description of the batch file.
email mandatory
: string Customer’s email address. For example, gaurav.kumar@example.com.
contact mandatory
: integer Customer’s contact number. For example, +919988998899.
card_number mandatory
: integer Customer’s card number or token id. For example, cards - 4386289407660153 and token id - token_Kb9yf1HWGiZMhu.
expiry_year conditionally mandatory
: integer Expiry year for the card in YYYY format. Mandatory only for cards. For example, 2022.
expiry_month conditionally mandatory
: integer Expiry month for the card in MM format. Mandatory only for cards. For example, 08.
cardholder_name conditionally mandatory
: string Cardholder’s name. Mandatory only for cards. For example, Gaurav Kumar.
amount mandatory
: integer Amount that is to be charged to the customer. The amount should be in the currency subunit. For example, for an amount of ₹234.56, enter the value 23456.
currency mandatory
: string The currency in which the payment is to be charged. For example, INR.
You can select any one of the supported currencies.
receipt optional
: string Unique reference entered by you the payment. For example, #566.
description optional
: string Description for the payment. For example, Towards purchase of encyclopedia.
notes optional
: json object Set of key-value pairs that can be associated with the payment. This can be useful for storing additional information about the payment. A maximum of 15 key-value pairs, each of 256 characters (maximum), are supported.
Handy TipsTo fetch the token id, go to Reports on your Dashboard and download the Custom Token Report.
Step 3: Upload the Filled Batch File
To upload a batch payment file:- On the Dashboard, navigate to Transactions → Batch Payments.
- Upload the filled-in template by clicking the Click here to upload button. Currently, CSV, XLS and XLSX file formats are supported.
Step 4: Preview and Confirm Uploaded File
If the batch file is successfully uploaded with appropriate headers and attributes, you will be able to preview the first three rows of the uploaded document. After verifying the accuracy of the data, click Process Payments to confirm the upload.Step 5: Download Batch Payment Report
After the file is processed, you can download a batch file report. The report includes the final state of each payment request. Click Download for the relevant Batch Id.Batch Status
The uploaded file can be in the following states:-
Created: This is the initial state of the file when it is uploaded. It indicates that the upload is successful, and will be picked up for processing. -
Processed: This is the final state of the file. Payments in a file in this state can either be successfully authorised or have errors during authorisation. There is a chance that a few of the payments did not get authorised due to issues such as invalid cards or an invalid expiry date. Download the file to check the status of the payments.
order_id
: razorpay_order_id linked to the payment.
payment_id
: payment id used to process the payment.
status
: Indicates the status of the payment. Possible values:
successfailed
error_code
: If the payment failed due to an error, this column will have an error code.
error_description
: If the payment failed due to an error, this column will have the reason for the failure.