Payment confirmation
Requests payment confirmation to the LINE Pay server. You can proceed with the payment by calling this API when the customer has completed the LINE Pay authentication. If you implement payment without redirection URL information, you can periodically call the check payment request status API to check if the payment confirmation can be requested.
If payment confirmation and capture have been separated, calling this API alone doesn't complete the payment. You need to capture or void the payment afterward. Additionally, if you have requested payment to issue a pre-approved payment key, you need to call this API to receive the pre-approved payment key as a response.
Set the read timeout to at least 40 seconds.
Path
Name | Description | Required |
---|---|---|
transactionId | Payment transaction ID. For more information, see the Transaction ID. |
Query
None
Body
Name | Type | Length | Description | Required |
---|---|---|---|---|
amount | number | Payment amount | ||
currency | string | 3 | Payment currency code (ISO 4217). Supported currency codes are as follows.
|
- Content-Type
- X-LINE-Authorization
- X-LINE-Authorization-Nonce
- X-LINE-ChannelId
- X-LINE-MerchantDeviceProfileId
For more information, see Request header.
Request examples
curl -X POST \
-H "Content-Type: application/json" \
-H "X-LINE-ChannelId: YOUR_CHANNEL_ID" \
-H "X-LINE-Authorization-Nonce: GENERATED_NONCE" \
-H "X-LINE-Authorization: PROCESSED_SIGNATURE" \
-H "X-LINE-MerchantDeviceProfileId: YOUR_DEVICE_PROFILE_ID" \
-d '{
"amount": 1000,
"currency": "TWD"
}' \
https://sandbox-api-pay.line.me/v3/payments/2018082512345678910/confirm