DebitCard
How to use DebitCard to submit a payin in India.
Payin by DebitCard
This endpoint allows you to submit a payin by DebitCard in India.
DebitCard payins in India require card tokenization before submitting the payin request.
Step 1: Tokenize Card
POST https://security.pagsmile.com/card/tokenize
Use this endpoint to tokenize the card information. The returned token is required when submitting the DebitCard payin.
Request Body
app_id
string
Yes
-
The merchant application ID assigned by Pagsmile.
format
string
Yes
Fixed value: JSON
Request format.
version
string
Yes
Fixed value: 2.0
API version.
timestamp
string
Yes
Format: yyyy-MM-dd HH:mm:ss
Request timestamp.
card.card_no
string
Yes
-
Card number.
card.issuer
string
Yes
Example: visa
Card issuer.
card.holder.name
string
Yes
-
Cardholder name.
card.cvv
string
Yes
-
Card CVV.
card.valid_thru_year
string
Yes
Format: yyyy
Card expiration year.
card.valid_thru_month
string
Yes
Format: MM
Card expiration month.
Request Sample
Response
Step 2: Submit a Payin
POST https://gateway.pagsmile.com/trade/pay
Use the token returned from Step 1 to submit a DebitCard payin.
Request Body
app_id
string
Yes
-
The merchant application ID assigned by Pagsmile.
out_trade_no
string
Yes
Must be unique
The merchant-side order ID.
method
string
Yes
Fixed value: DebitCard
Payment method.
order_amount
string
Yes
Supports up to 2 decimal places
Payment amount.
order_currency
string
Yes
Fixed value: INR
Payment currency.
token
string
Yes
-
The card token returned from the tokenization request.
subject
string
Yes
-
Order title or product name.
content
string
No
-
Order description.
trade_type
string
Yes
Fixed value: API
Trade type.
notify_url
string
No
Valid URL
The URL used to receive asynchronous payment notifications.
return_url
string
No
Valid URL
The URL to redirect the customer after payment.
buyer_id
string
No
-
The unique customer ID in the merchant system.
timestamp
string
Yes
Format: yyyy-MM-dd HH:mm:ss
Request timestamp.
timeout_express
string
No
Example: 12300m
Payment timeout period.
customer.name
string
Yes
-
Customer name.
customer.email
string
Yes
Valid email address
Customer email address.
customer.phone
string
Yes
Valid phone number
Customer phone number.
address.zip_code
string
Yes
-
Customer ZIP code.
Request Sample
Response
Last updated