https://sandbox.aq.paykka.com/
https://sandbox.aq.paykka.com/payments/token/remove
curl -i -X POST \
https://sandbox.aq.paykka.com/payments/token/remove \
-H 'Content-Type: application/json' \
-H 'signature: Mif3gh48xxxxxxxxx' \
-H 'type: RSA256' \
-H 'version: v1.2' \
-d '{
"merchant_id": "18356675194960",
"timestamp": 1745922570644,
"token": "TK206139xxx264751",
"shopper_reference": "f4911bc8b17106a08f2f7a89a9fc4d11"
}'
Request Success
{
"ret_msg": "Success",
"ret_code": "000000"
}
Authorization type, default FINAL_AUTH
Currency; Pass the ISO 3166-1 supported currency three-letter code
Transaction amount, enter a value that conforms to the minimum unit rule of the transaction currency (e.g.: USD/CNY unit is cent, JPY unit is yen)
Transaction notification address; After the transaction succeeds/fails, the transaction result will be sent to the corresponding URL
Transaction redirect address; When the transaction triggers 3D secure verification or the session payment is completed, this URL is required for non-subsequent recurring payments
Consumer payment data
BankCard: Bank Card
eftpos: eftpos Australia
ApplePay: Apple Pay
GooglePay: Google Pay
WechatPayGlobal: WechatPayGlobal
AlipayPlus: Alipay+
SEPA: SEPA DirectDebit
Bancontact: Bancontact
EPS: EPS
iDEAL: iDEAL
P24: Online banking Poland, Przelewy24
Sofort: Sofort
Whether to store card information If payment_type is RECURRING, this field is True to inform customers that the payment will be saved for subsequent recurring payments when the current order payment is completed
token usage (recurring transactions - Subscription, spending transactions - CardOnfile), must be passed when store_payment_method=true or token payment is required
Customer number, required when store_payment_method=true or token payment
Card token, one of [token, card_no, encrypted_card_no] for BANKCARD payment
Card number, one of [token, card_no, encrypted_card_no] for BANKCARD payment
Encrypted expiry year, required if cardNo is filled
Encrypted expiry month, required if cardNo is filled
(Merchant decryption is required) GooglePay/ApplePay decrypted authentication data Details: https://developers.google.com/pay/api/processors/guides/implementation/understand-our-payload?hl=zh-cn#assurance-details-specification Details: https://developer.apple.com/documentation/passkit/payment-token-format-reference#//apple_ref/doc/uid/TP40014929-CH8-SW1
Bill information (can be empty for recurring payments; if customer website collects bill information, it is recommended to pass in according to the rule when payment method=card)
Shipping information (required for goods trade, optional for other trades)
Customer user information
User payment IP address, e.g.: 202.96.209.10. Payment IP is the ip when the user actually pays, which may be different from the order ip. Not required for mit scenarios.
3DS authentication parameters; Optional for non-card payment methods
[Recurring Payment] Recurring payment agreement ID, required for non-first recurring payments
https://sandbox.aq.paykka.com/payments
curl -i -X POST \
https://sandbox.aq.paykka.com/payments \
-H 'Content-Type: application/json' \
-H 'signature: Mif3gh48xxxxxxxxx' \
-H 'type: RSA256' \
-H 'version: v1.2' \
-d '{
"trans_id": "174293243204408",
"merchant_id": "18356675194960",
"payment_type": "PURCHASE",
"authorisation_type": "FINAL_AUTH",
"capture_method": "AUTOMATIC",
"timestamp": 1746515589126,
"currency": "EUR",
"amount": 100,
"notify_url": "https://your_url",
"return_url": "https://your_url",
"payment": {
"payment_method": "BANKCARD",
"shopper_reference": "f4911bc8b17106a08f2f7a89a9fc4d11",
"card_no": "4242424242424242",
"exp_year": "2029",
"exp_month": "03",
"cvv": "123",
"holder_name": "Winifred Reopell",
"holder_email": "zhangsan@test.com"
},
"browser": {
"user_agent": "Mozilla/5.0 (Linux; U; Android 12.0.0; zh-cn; SONY-7XT78X Build/2DKKUF) AppleWebKit/537.36 (KHTML, like Gecko)Version/4.0 Chrome/74.0.3729.157 Mobile Safari/537.36",
"color_depth": "165",
"language": "ko-KR",
"java_enabled": true,
"device_type": "PC",
"terminal_type": "WEB",
"device_os": "WINDOWS",
"timezone_offset": "-12:10",
"screen_height": "128",
"screen_width": "255",
"cookies": "isg=BA4O1YD75-wYqlLAB-T9JZjXxxxJFHEUkjdslrlhj9 TB_TENANT_TYPE=organization",
"device_finger_print_id": "info.kbxqkxkzqgjmwj.qpxzwmwzbwwijkth",
"paykka_radar_id": "g54820546y72tgeohtgi45654"
},
"goods": [
{
"id": "6916003178438",
"name": "珠宝",
"category": "珠宝",
"brand": "周六福",
"link": "https://www.zlf.cn/",
"price": 170000,
"quantity": 1,
"delivery_date": "2024-12-26T03:22:09+08:00",
"picture_url": "https://www.zlf.cn/"
}
],
"bill": {
"billing_address_collection": "REQUIRED",
"first_name": "Dalene",
"last_name": "Hyrkas",
"address_line1": "农安县和上镇八沟村梧河组12号",
"country": "VU",
"state": "河南省",
"city": "南阳市",
"postal_code": "411327",
"email": "gggj0gonfc@outlook.com",
"area_code": "0580",
"phone_number": "98421617",
"descriptor": "FHFXREM"
},
"shipping": {
"first_name": "zhang",
"last_name": "jin",
"address_line1": "16 Rue Crespin du Gast, 75011 Paris, France",
"country": "FR",
"state": "V98J+4R Paris, France",
"city": "Paris",
"email": "1806294290@qq.com",
"postal_code": "75001",
"area_code": "33",
"phone_number": "756879736"
},
"customer": {
"order_ip": "183.238.13.170",
"pay_ip": "183.238.13.170"
},
"authentication": {
"challenge_indicator": "AUTO"
}
}'
ok
PROCESSING: Processing
SUCCESS: Succeeded
AUTHORIZED: Not Captured
FAILURE: Failed
REFUNDED: Refunded
PARTIALLY_REFUNDED: Partially Refunded
CANCELED: Canceled
PARTIALLY_REVERSED: Partially Reversed
Authorization type, default FINAL_AUTH
Transaction amount, minimum denomination of the country's currency
Currency; Pass the ISO 3166-1 supported currency three-letter code
Recurring payment agreement ID, returned for recurring payments
Customer reference, required when store_payment_method=true or token payment
Purchase Request Success
{ "ret_code": "000000", "ret_msg": "Success", "data": { "merchant_id": "18356675194960", "trans_id": "174293243204402", "order_id": "GW205905xxxx960982", "status": "PROCESSING", "authorisation_type": "FINAL_AUTH", "capture_method": "AUTOMATIC", "amount": 100, "currency": "EUR", "shopper_reference": "f4911bc8b17106a08f2f7a89a9fc4d11", "expire_time": "2025-05-06T14:40:43+08:00", "payment": { "payment_method": "BANKCARD" }, "card_info": { "bin": "424242", "last4": "4242", "card_brand": "VISA" }, "balances": { "authed_amount": 100, "captured_amount": 100, "able_to_capture_amount": 0, "voided_amount": 0, "able_to_void_amount": 0, "refunded_amount": 0, "able_to_refund_amount": 0 } } }
https://sandbox.aq.paykka.com/payments/void
curl -i -X POST \
https://sandbox.aq.paykka.com/payments/void \
-H 'Content-Type: application/json' \
-H 'signature: Mif3gh48xxxxxxxxx' \
-H 'type: RSA256' \
-H 'version: v1.2' \
-d '{
"merchant_id": "18356675194960",
"timestamp": 1745922570644,
"order_id": "GW20620xxxxx6999",
"reason": "REQUESTED_BY_CUSTOMER"
}'
Request Success
{
"ret_msg": "Success",
"ret_code": "000000"
}
https://sandbox.aq.paykka.com/payments/recurring/cancel
curl -i -X POST \
https://sandbox.aq.paykka.com/payments/recurring/cancel \
-H 'Content-Type: application/json' \
-H 'signature: Mif3gh48xxxxxxxxx' \
-H 'type: RSA256' \
-H 'version: v1.2' \
-d '{
"merchant_id": "18356675194960",
"timestamp": 1745922570644,
"recurring_agreement_id": "RA2061xxxx0784537",
"shopper_reference": "f4911bc8b17106a08f2f7a89a9fc4d11"
}'
Request Success
{
"ret_msg": "Success",
"ret_code": "000000"
}
Merchant order number (all three cannot be empty)
PayKKa order number (all three cannot be empty)
PayKKa session ID (all three cannot be empty)
https://sandbox.aq.paykka.com/payments/query
curl -i -X POST \
https://sandbox.aq.paykka.com/payments/query \
-H 'Content-Type: application/json' \
-H 'signature: Mif3gh48xxxxxxxxx' \
-H 'type: RSA256' \
-H 'version: v1.2' \
-d '{
"merchant_id": "18356675194960",
"trans_id": "",
"order_id": "GW20620xxxxx6999",
"session_id": "",
"timestamp": 1746515084018
}'
ok
PROCESSING: Processing
SUCCESS: Succeeded
AUTHORIZED: Not Captured
FAILURE: Failed
REFUNDED: Refunded
PARTIALLY_REFUNDED: Partially Refunded
CANCELED: Canceled
PARTIALLY_REVERSED: Partially Reversed
Authorization type, default FINAL_AUTH
Transaction amount, minimum denomination of the country's currency
Currency; Pass the ISO 3166-1 supported currency three-letter code
Recurring payment agreement ID, returned for recurring payments
Customer reference, required when store_payment_method=true or token payment
Payments Processing
{ "ret_code": "000000", "ret_msg": "Success", "data": { "merchant_id": "18356675194960", "trans_id": "174293243204402", "order_id": "GW20620xxxxx6999", "status": "PROCESSING", "authorisation_type": "FINAL_AUTH", "capture_method": "AUTOMATIC", "amount": 100, "currency": "EUR", "shopper_reference": "f4911bc8b17106a08f2f7a89a9fc4d11", "expire_time": "2025-05-06T14:40:43+08:00", "payment": { "payment_method": "BANKCARD" }, "card_info": { "bin": "424242", "last4": "4242", "card_brand": "VISA" }, "balances": { "authed_amount": 100, "captured_amount": 0, "able_to_capture_amount": 100, "voided_amount": 0, "able_to_void_amount": 100, "refunded_amount": 0, "able_to_refund_amount": 0 } } }
Request currency, must be consistent with transaction currency; Enter the three-letter currency code supported by ISO 3166-1
Request amount, amount cannot be greater than transaction amount, enter a value that conforms to the minimum unit rule of the transaction currency (e.g.: USD/CNY unit is cent, JPY unit is yen)
https://sandbox.aq.paykka.com/payments/capture
curl -i -X POST \
https://sandbox.aq.paykka.com/payments/capture \
-H 'Content-Type: application/json' \
-H 'signature: Mif3gh48xxxxxxxxx' \
-H 'type: RSA256' \
-H 'version: v1.2' \
-d '{
"merchant_id": "18356675194960",
"timestamp": 1745922570644,
"order_id": "GW20620xxxxx6999",
"amount": 300,
"currency": "USD",
"capture_final": true
}'
Request Success
{
"ret_msg": "Success",
"ret_code": "000000"
}
https://sandbox.aq.paykka.com/payments/apple-pay/create-session
curl -i -X POST \
https://sandbox.aq.paykka.com/payments/apple-pay/create-session \
-H 'Content-Type: application/json' \
-H 'signature: Mif3gh48xxxxxxxxx' \
-H 'type: RSA256' \
-H 'version: v1.2' \
-d '{
"merchant_id": "18356675194960",
"timestamp": 1745922570644,
"display_name": "Your Merchant Name",
"domain_name": "www.mydomain.com"
}'
Request Success
{ "ret_msg": "Success", "ret_code": "000000" }
https://sandbox.aq.paykka.com/payments/token/query
curl -i -X POST \
https://sandbox.aq.paykka.com/payments/token/query \
-H 'Content-Type: application/json' \
-H 'signature: Mif3gh48xxxxxxxxx' \
-H 'type: RSA256' \
-H 'version: v1.2' \
-d '{
"merchant_id": "18356675194960",
"timestamp": 1745922570644,
"shopper_reference": "f4911bc8b17106a08f2f7a89a9fc4d11"
}'
ok
BankCard: Bank Card
eftpos: eftpos Australia
ApplePay: Apple Pay
GooglePay: Google Pay
WechatPayGlobal: WechatPayGlobal
AlipayPlus: Alipay+
SEPA: SEPA DirectDebit
Bancontact: Bancontact
EPS: EPS
iDEAL: iDEAL
P24: Online banking Poland, Przelewy24
Sofort: Sofort
CARD_ON_FILE: Card on File
SUBSCRIPTION: Subscription
UNSCHEDULED_CARD_ON_FILE: Unscheduled Card on File
Token List
{ "ret_code": "000000", "ret_msg": "Success", "data": [ { "token": "TK206139xxx264751", "token_usage": "SUBSCRIPTION", "payment_method": "BANKCARD", "status": "ACTIVATE" }, { "token": "TK206139xxx264752", "token_usage": "CARD_ON_FILE", "payment_method": "BANKCARD", "status": "ACTIVATE" } ] }