For the complete documentation index, see llms.txt. This page is also available as Markdown.

Credit Card

This endpoint allows you to create a recurring CreditCard payment in India.

After the recurring payment order is created successfully, Pagsmile returns a web_url. Redirect the user to the web_url to continue and complete the payment authorization.

POST https://gateway-test.pagsmile.com/trade/recurring

Request Body

Parameter
Type
Required
Constraints
Description

app_id

string

Required

Max length: 32

The merchant application ID assigned by Pagsmile.

timestamp

string

Required

Format: yyyy-MM-dd HH:mm:ss

Request timestamp.

version

string

Required

Fixed value: 2.0

API version.

method

string

Required

Fixed value: CreditCard

Payment method.

order_amount

string

Required

Supports up to 2 decimal places

Recurring payment amount.

trial_amount

string

Required

Supports up to 2 decimal places

Trial payment amount.

trial_period

string

Required

Example: 1D

Trial period.

order_currency

string

Required

Fixed value: INR

Payment currency.

out_trade_no

string

Required

Max length: 64

Merchant order number. Must be unique.

recurring

string

Required

Fixed value: on

Indicates that this is a recurring payment.

subject

string

Required

Max length: 128

Payment subject or order title.

content

string

Required

Max length: 255

Payment content or order description.

trade_type

string

Required

Fixed value: WEB

Trade type.

notify_url

string

Required

Valid URL

The URL to receive payment notifications.

return_url

string

Required

Valid URL

The URL to redirect the user after payment.

buyer_id

string

Required

Max length: 64

Merchant-side user ID.

interval

string

Required

Example: 1M

Recurring payment interval.

quantity

integer

Required

Example: 3

Number of recurring payment cycles.

timeout_express

string

Optional

Example: 10900m

Payment expiration time.

Request Sample

Response Sample

After receiving the web_url, redirect the user to the web_url to continue the payment authorization.

Last updated