Under Construction
By following this basic integration guide, you will understand how you can start accepting recurring card payments in India using EBANX Direct API.
How it works
Content will go here.
Requirements
- API credentials - Ensure you have your EBANX integration key. If not, complete the Merchant Signup Form.
- Familiarity with EBANX Direct - This setup follows the same general structure as other payment methods, with a few unique parameters.
- Recurring Cards Enabled – Ensure that Recurring Cards is activated in your EBANX dashboard. If it is not enabled, contact your Integration Specialist for assistance.
Instructions
Follow the steps below.
Select your environment
Select the appropriate environment for your integration. Use the sandbox environment for testing, or the production environment for live transactions. Use the URL for your HTTP requests based on your selection.
https://sandbox.ebanx.com/ws/directConfigure your Notification URL
For your Recurring Cards flow, webhook notifications will provide updates on subscription status changes (e.g., paused, revoked), pre-debit alerts to users, and payment transaction events. Upon receiving a webhook notification, you must query EBANX for the latest status.
For setup details, refer to the Notifications Guide.
Request a Subscription + First Charge
Collect the necessary parameters to configure your request.
Parameter Description operation
Set to enrollment
integration_key
Your EBANX integration key payment_type_code
Set to creditcard
ordebitcard
Customer information
Parameter Description name
Payer full name email
Customer email phone_number
Customer phone number, in full international format address
Street name, character limit 100 street_number
Street number, character limit 30 street_complement
Complement information, character limit 100 city
Abbreviation (DL, JK, etc) state
Abbreviation (UP, HR, etc) zipcode
6-digit zipcode Subscription details
Parameter Description enrollment.merchant_enrollment_code
Unique identifier associated with the subscription. (Character limit: 254) enrollment.country
Two-letter country code. Set to in
for India.subscription.subscription_name
Description for the subscription. subscription.expiration_date
Validity for the subscription. subscription.frequency
Frequency rule for charging the subscription.
Accepted values:
daily
weekly
fortnightly
monthly
bimonthly
quarterly
halfyearly
yearly
ondemand
subscription.min_amount
Minimum amount (per charge) during the validity of the subscription plan, in INR
. (Should start from INR 1)subscription.max_amount
Maximum amount (per charge) during the validity of the subscription plan, in INR
. (Max amount INR 100000)Charge parameters
Parameter Description payment.name
Payer full name. payment.email
Customer email. payment.country
Set to in
for India.threeds_force
True payment.merchant_payment_code
Unique code for the payment. payment.currency_code
ISO-4217 Currency code transaction. Supported value: INR
.payment.merchant_payment_code
Unique code for the payment. payment.amount_total
Charge amount (Minimum 1.00 INR) payment.enrollment.merchant_enrollment_code
Unique identifier for the subscription, with a maximum character limit of 254. payment.enrollment.customer_notify_hash
Unique identifier for the Pre-debit notification, returned as a hash in the response upon successful notification delivery.sent. Subscription Frequency RulesPre-defined
subscription.frequency
values dictate when charges can be executed but do not automate subsequent actions. Pre-debit notifications and charge executions must still be managed. Attempts outside the schedule will be declined, but missed windows do not affect subscription status. Charges can proceed in the next cycle. For more flexibility, useondemand
as the frequency.Shared Subscription DetailsThe values in
subscription.subscription_name
,subscription.expiration_date
, andsubscription.frequency
will be sent to the user via SMS by their issuing bank.Fixed Subscription AmountTo set a fixed amount for a subscription request, send
subscription.min_amount
andsubscription.max_amount
with the same value.Sample Request
curl -X POST \
--location 'https://sandbox.ebanx.com/ws/userenrollment' \ // Enrollment endpoint.
--header 'Content-Type: application/json' \
--data '{
"integration_key": "********************************ebxlfe",
"operation": "request",
"mode": "full",
"payment": {
"name": "Sam",
"email": "sam@xyz.com",
"birth_date": "12/04/1979",
"document": "EF5680710",
"address": "Nirvana society",
"street_number": "2993",
"street_complement": "CJ 5",
"city": "DL",
"state": "DL",
"zipcode": "110017",
"country": "in",
"phone_number": "4111111111",
"payment_type_code": "creditcard",
"instalments": "1",
"amount_total": 1,
"currency_code": "INR",
"merchant_payment_code": "testmandate00101",
"card": {
"card_number": "13452******0495",
"card_name": "Sam Sh",
"card_due_date": "08/2050",
"card_cvv": "***",
"threeds_force": true
},
"enrollment": {
"country": "in",
"merchant_enrollment_code": "testenrollment00101",
"email": "sam@xyz.com",
"back_urls": {
"success": "https://developer.ebanx.com/",
"failure": "https://google.com.br"
},
"subscription": {
"subscription_name": "testsub00101",
"expiration_date": "2024-12-31",
"min_amount": "1",
"max_amount": "1000",
"frequency": "ondemand"
}
}
}
}Sample Response
Content Here
Pre debit notification to user
Content Here
Charge Subscription
Content Here
Create Payment
Content Here
Await notification
Content Here
Query enrollment
Content Here
Revoke an enrollment
Content Here
Congratulations!
You have succesfully integrated Card Recurring.
For more information, refer to theDirect API reference guidechevron_right
Resources
Use the following resources when testing in your sandbox environment.
API Reference
Click here to access detailed API documentation to integrate efficiently.
Mock Customer Data
Click here to view mock customer data for testing and validating user flows.
Error Codes
Click here to review common error codes to troubleshoot and resolve issues quickly.
Still need help?
We hope this article was helpful. If you still have questions, you can explore the following options:
- Merchant support: Contact our support team at sales.engineering@ebanx.com for assistance.
- Not a partner yet? Please complete the Merchant Signup Form, and our commercial team will reach out to you.