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

Wallet

Wallet

This endpoint allows you to create a recurring Wallet payment in Vietnam.

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.

Vietnam recurring Wallet payment currently supports Zalopay.

Vietnam recurring Wallet payment supports real-time payment processing.

Vietnam recurring Wallet payment supports refund.

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; max length: 19

Request timestamp.

method

string

Required

Fixed value: Wallet

Payment method.

channel

string

Required

Fixed value: Zalopay

Wallet channel.

order_amount

string

Required

Min: 1; max: 20,000,000

Recurring payment amount.

order_currency

string

Required

Fixed value: VND

Payment currency.

trial_amount

string

Required

Min: 1; max: 20,000,000

Trial payment amount.

trial_period

string

Required

Example: 1D

Trial period.

interval

string

Required

Example: 1D

Recurring payment interval.

quantity

integer

Required

Positive integer; example: 30

Number of recurring payment cycles.

trade_type

string

Required

Fixed value: WEB

Trade type.

out_trade_no

string

Required

Max length: 64

Merchant order number. Must be unique.

subject

string

Required

Max length: 128

Payment subject or order title.

content

string

Optional

Max length: 255

Payment content or order description.

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.

Request Sample

Response Sample

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

Last updated