Mobile Website Browser - Rabbit LINE Pay
Accept Rabbit LINE Pay payment from the shopper’s mobile browser by redirecting them to the Rabbit LINE Pay page.
Step 1. Initialize a payment Intent
Create a PaymentIntent object with a request_id
, amount
, currency
and a merchant_order_id
from your backend server.
Step 2. Redirect to Rabbit LINE Pay to complete payment
When a shopper selects to pay with Rabbit LINE Pay on their mobile browser, call the Confirm a Payment Intent API API to get a redirect URL.
POST /api/v1/pa/payment_intents/{id}/confirm
You will get a response similar to the following.
You should redirect the shopper to the Rabbit LINE Pay page with the next_action.url
returned in the confirm Payment Intent response.
Note, if you use the mobile browser flow in your app’s Webview and pull up the Rabbit LINE Pay app, please add the HTTP header Referer when you request next_action.url. Otherwise, you may be unable to pull up the Rabbit LINE Pay app on the shopper’s mobile phone if the shopper chooses to pay in the Rabbit LINE Pay app. For example: