Touch'n Go
Features
Processing currencies | MYR,GBP,USD,EUR |
---|---|
Settlement currencies | GBP,USD,EUR,HKD |
Minimum transaction amount | 0.01 MYR |
Maximum transaction amount | 5,000 MYR |
Refunds | ✅ |
Partial Refunds | ✅ |
Multiple partial refund | ❌ |
Chargeback | ❌ |
Integration Method
touchngo
1.
2.
Direct API
How to integration
touchngo
to the list of payment method types.{
"amount":200,
"currency":"MYR",
"confirm":true,
"payment_method_options":{
"touchngo":{
"terminal_type":"WAP",
"os_type": "IOS"
}
},
"payment_method_data" : {
"type":"touchngo"
},
"return_url":"https://wooshpay.com"
}
{
"id": "pi_1747097483470700544",
"object": "payment_intent",
"created": 1705375474000,
"livemode": true,
"currency": "MYR",
"amount": 200,
"status": "requires_action",
"client_secret": "pi_1747097483470700544_secret_6NKIUZVqZSbnKv2ej5XTsG9D",
"next_action": {
"type": "touchngo_handle_redirect",
"touchngo_handle_redirect": {
"url": "https://m.tngdigital.com.my/s/ac-cashier-intermediate/h5.html?ACCodeValue=281666040097Q4x70bKbWzT2gE7RLoq48dll"
}
},
"payment_method_types": ["touchngo"],
"confirmation_method": "automatic",
"payment_method_options": {
"touchngo": {
"terminal_type": "WAP",
"os_type": "IOS"
}
},
"return_url": "https://wooshpay.com",
"payment_method": "pm_1747097483386814464",
"capture_method": "automatic"
}
Checkout
Payment flow
1.
2.
Create a Session
{
"cancel_url": "www.baidu.com",
"mode": "payment",
"success_url": "https://wooshpay.com/",
"payment_method_types":["touchngo"],
"line_items": [
{
"price_data": {
"currency": "MYR",
"unit_amount":100,
"nickname": "test name",
"product_data": {
"name": "taiwan fengli",
"description": "very delicious",
"url": "www.baidu.com"
}
},
"quantity": 1
}
]
}
{
"id": "cs_1747098191423078400",
"object": "checkout.session",
"created": 1705375643000,
"livemode": true,
"currency": "MYR",
"customer": "",
"mode": "payment",
"status": "open",
"url": "https://checkout.wooshpay.com/pay/cs_1747098191423078400?key=cGtfbGl2ZV9OVEUzTVRJd056RXpPRGd6TkRJek9UQTNPRFV4T2tsNE9IbHBaRXh0VjJOb2JUWlVaMngwYkdSNFFqWm5kVEUyT1Rjd01qUTJNREkwTURR",
"cancel_url": "www.baidu.com",
"line_items": {
"object": "list",
"data": [
{
"id": "li_1747098191444049920",
"object": "item",
"currency": "MYR",
"description": "taiwan fengli",
"price": {
"id": "price_1747098191452438528",
"object": "price",
"created": 1705375643000,
"livemode": true,
"active": false,
"currency": "MYR",
"nickname": "test name",
"product": {
"id": "prod_1747098191460827136",
"object": "product",
"created": 1705375643000,
"livemode": true,
"active": false,
"description": "very delicious",
"name": "taiwan fengli",
"url": "www.baidu.com",
"updated": 1705375643000
},
"type": "one_time",
"unit_amount": 100,
"billing_scheme": "per_unit"
},
"quantity": 1,
"amount_subtotal": 100,
"amount_total": 100
}
]
},
"payment_intent": "pi_1747098194937905152",
"payment_method_types": [
"touchngo"
],
"payment_status": "unpaid",
"success_url": "https://wooshpay.com/",
"amount_subtotal": 100,
"amount_total": 100,
"billing_address_collection": "auto",
"expires_at": 1705462043009,
"payment_link": "",
"client_secret": "pi_1747098194937905152_secret_RHC7UBQeKYshh51mpCgQH8Ov"
}
Next step
Create a Webhook
Create a Refund
Modified at 2024-03-11 02:02:26