Purchase
POST
api/payment-gateway/v1/payments/purchase
Request
Header Params
Content-Type
string
required
Example:
multipart/form-data
Body Params multipart/form-data
req_time
string
required
merchant_id
string
required
<= 30 characters
tran_id
string
required
<= 20 characters
firstname
string
optional
<= 20 characters
lastname
string
optional
<= 20 characters
email
string
optional
<= 50 characters
phone
string
optional
<= 20 characters
type
string
optional
purchase
. Supported value:pre-auth
: for pre purchasepurchase
: for full purchase<= 20 characters
payment_option
string
optional
cards
: For card payments.abapay
: QR payment, allowing users to pay only with ABA Mobile.abapay_khqr
: QR payment that can be scanned and paid using ABA PAY and other KHQR member banks.abapay_khqr_deeplink
: Allows customers to pay using ABA PAY and other KHQR member banks. The payment gateway will respond with a JSON object containing qr_string
, abapay_deeplink
, and checkout_qr_url
. See the sample response in the response section below.alipay
: Allows customers to pay using Alipay Wallet.wechat
: Allows customers to pay using WeChat Wallet.google_pay
: Allows customers to pay using Google Pay Wallet.<= 20 characters
items
string
optional
<= 500 characters
shipping
number
optional
amount
number
required
currency
string
optional
return_url
string
optional
cancel_url
string
optional
continue_success_url
string
optional
return_deeplink
string
optional
custom_fields
string
optional
return_params
string
optional
view_type
string
optional
hosted_view
: redirect payer to a new tabpopup
: Display as a bottom sheet on mobile web browsers and as a modal popup on desktop web browsers.payment_gate
integer
optional
0
to use the Checkout service.payout
string
optional
additional_params
string
optional
wechat sub_appid
and wechat_sub_openid
.
lifetime
integer
optional
google_pay_token
string
optional
payment_option
is set to google_pay
and the payment selection is managed by the merchant. For detailed instructions, please refer to the Google Pay integration guidelines.hash
string
required
req_time
,merchant_id
,tran_id
,amount
,items
,shipping
,firstname
,lastname
,email
,phone
,type
,payment_option
,return_url
,cancel_url
,continue_success_url
,return_deeplink
,currency
,custom_fields
,return_params
,payout
,lifetime
,additional_params
, and google_pay_token
with public_key
.