Recurring Payment
Recurring Payment
Request Base URL
Test Environment : https://gateway-test.pagsmile.com
Prod Environment : https://gateway.pagsmile.comEndPoints
/trade/recurringRequest Header
Content-Type
Recommended
application/json
Authorization
Yes
Basic Base64(app_id:security_key)
Request Parameters (JSON format)
app_id*
string
App's ID is in dashboard
32
out_trade_no*
string
Given by the Merchant (Is in their system)
64
method*
string
CreditCard, PIX or Wallet
32
order_amount*
decimal
Request payment amount
CreditCard & Wallet: 0.01 ~ 99999999999999.99, PIX: 0.1 ~ 50,000
subject*
string
Payment reason or item title
128
content*
string
Payment reason detail or item detail
255
trade_type*
string
Response content type, WEB will return a checkout URL
WEB
timeout_express*
string
m(minutes), h(hours), d(days), c(current day)
90m
format*
string
Only JSON supported
JSON
timestamp*
string
yyyy-MM-dd HH:mm:ss
19
version*
string
Fix to 2.0
2.0
notify_url*
string
IPN URL to merchant (start with http)
return_url*
string
Web page return URL to merchant (start with http)
buyer_id*
string
Merchant user's ID
interval*
string
CreditCard & Wallet: D(day), W(week), M(month), Y(year) PIX: W(week), M(month, only support 1M, 3M & 6M), Y(year)
1M
quantity*
number
Quantity of recurring
0
trial_period*
string
Trial period - Not for PIX -
trial_amount*
decimal
Trial amount (when trial_amount is not blank) - Not for PIX -
> 0
Request Sample
Http Response (JSON format)
code
string
Return code
msg
string
Return msg
sub_code
string
Return sub code (only error)
sub_msg
string
Return sub msg (only error)
out_trade_no
string
Request out_trade_no
trade_no
string
Pagsmile trade NO.
web_url
string
Checkout URL
Return Code (Success)
Return Code (Fail)
IPN Notifications
Check the Notification page.
Cancel Recurring Payment
Request Base URL
EndPoints
Request Header
Content-Type
Recommended
application/json
Authorization
Yes
Basic Base64(app_id:security_key)
Request Parameters (JSON format)
app_id*
string
App's ID is in dashboard
32
timestamp*
string
yyyy-mm-dd HH:mm:ss
19
version*
string
fix to 2.0
2.0
out_trade_no*
string
Given by the Merchant (Is in their system)
64
Request Sample
Http Response (JSON format)
code
string
Return code
msg
string
Return msg
sub_code
string
Return sub code(only error)
sub_msg
string
Return sub msg(only error)
out_trade_no
string
Request out_trade_no
recurring_status
string
Recurring status
Return Code (Success)
Return Code (Fail)
Last updated
Was this helpful?