Rabbit LINE Pay
Rabbit LINE Pay is offline and online integrated payment platform in Thailand, founded on the business partnership between mobile payment platform LINE Pay and offline payment platform Rabbit.
Features
Available country code | Thailand |
---|---|
Processing currencies | THB,GBP,USD,EUR |
Settlement currencies | GBP,USD,EUR,HKD |
Minimum transaction amount | 0.01 THB |
Maximum transaction amount | 50,000 THB |
Refunds | ✅ |
Partial Refunds | ✅ |
Multiple partial refund | ❌ |
Chargeback | ❌ |
Integration Method
Payment method enumeration values:rabbit_line_pay
There is integration method for Rabbit LINE Pay
- Direct API
- Checkout
Direct API
How to integration
For direct API integration, you can create a PaymentIntent and get url in only one step. The following is the demo of creating payment intent:
A PaymentIntent is an object that represents your intent to collect payment from your customer and tracks the lifecycle of the payment process. Create a PaymentIntent on your server and specify the amount to collect and a supported currency. If you have an existing Payment Intents integration, add rabbit_line_pay
to the list of payment method types.
Request
{
"amount":1000,
"currency":"THB",
"confirm":true,
"payment_method_data" : {
"type":"rabbit_line_pay"
},
"return_url":"https://your.website"
}
Response
{
"id": "pi_1765654135228596224",
"object": "payment_intent",
"created": 1709799725000,
"livemode": false,
"currency": "THB",
"amount": 1000,
"status": "requires_action",
"client_secret": "pi_1765654135228596224_secret_85nkpYrgLWmOvnpkhbqAfZAo",
"next_action": {
"type": "rabbit_line_pay_handle_redirect",
"rabbit_line_pay_handle_redirect": {
"url": "https://apitest.wooshpay.com/v1/receives/c12/pay/pi_1765654135228596224"
}
},
"payment_method_types": [
"rabbit_line_pay"
],
"confirmation_method": "automatic",
"return_url": "https://your.website",
"payment_method": "pm_1765654135123738624",
"capture_method": "automatic"
}
Checkout
Payment flow
- Customer selects Rabbit LINE Pay from the list of payment methods available and clicks on the Pay botton
- Customers will be redirected to payment page to complete the payment.
Create a Session
Request
{
"cancel_url": "www.wooshpay.com",
"mode": "payment",
"success_url": "https://wooshpay.com/",
"payment_method_types": [
"rabbit_line_pay"
],
"line_items": [
{
"price_data": {
"currency": "THB",
"product": null,
"unit_amount": 2000,
"product_data": {
"name": "apple"
},
"billing_scheme": "testscheme",
"lookup_key": "test_lookup_key"
},
"quantity": 1
}
]
}
Response
{
"id": "cs_1765655543474552832",
"object": "checkout.session",
"created": 1709800061000,
"livemode": false,
"currency": "THB",
"customer": "",
"mode": "payment",
"status": "open",
"url": "https://checkouttest.wooshpay.com/pay/cs_test_1765655543474552832?key=cGtfdGVzdF9OVEUzTVRJd05qWTFOakExTXpBM01UUTJNalV4T2pOcU16STFXVFpZYzNGTVkwcFFWV0YwZDI1NlJXbFFVekUyT1Rjd01qTTBOVEUzTXpV",
"cancel_url": "www.wooshpay.com",
"line_items": {
"object": "list",
"data": [
{
"id": "li_1765655543583604736",
"object": "item",
"currency": "THB",
"description": "apple",
"price": {
"id": "price_1765655543612964864",
"object": "price",
"created": 1709800061000,
"livemode": false,
"active": false,
"currency": "THB",
"product": {
"id": "prod_1765655543650713600",
"object": "product",
"created": 1709800061000,
"livemode": false,
"active": false,
"name": "apple",
"updated": 1709800061000
},
"type": "one_time",
"unit_amount": 2000,
"billing_scheme": "per_unit",
"lookup_key": "test_lookup_key"
},
"quantity": 1,
"amount_subtotal": 2000,
"amount_total": 2000
}
]
},
"payment_intent": "pi_1765655549736648704",
"payment_method_types": [
"rabbit_line_pay"
],
"payment_status": "unpaid",
"success_url": "https://wooshpay.com/",
"amount_subtotal": 2000,
"amount_total": 2000,
"billing_address_collection": "auto",
"expires_at": 1709886460518,
"payment_link": "",
"client_secret": "pi_1765655549736648704_secret_u8xVySMg4SWwaN6DgqYqCCur",
"customer_creation": "if_required"
}
Next step
You can add more features to your integration as needed
Create a Webhook
Listen to events on your WooshPay account so your integration can automatically trigger reactions. Create a webhook that mainly focuses on enabled_events and url.
Create a Refund
Create a refund to repay funds to your customer. You can also perform partial refunds, but not every payment method supports them. A partial refund is when you refund only part of the original transaction amount.