Check payment request status
Checks the status of a requested payment. Mainly when you implement payment without redirection URL information, you can periodically call this API to check if the customer completed LINE Pay authentication. Based on the response (returnCode
), you can check whether LINE Pay authentication was made or whether the authentication was successful. Calling the API at intervals of at least one second is recommended.
GET /v3/payments/requests/{transactionId}/check
Set the read timeout to at least 20 seconds.
Request
Response
Path
Name | Description | Required |
---|---|---|
transactionId | Payment transaction ID. For more information, see the Transaction ID. |
Query
None
Body
None
Headers
- Content-Type
- X-LINE-Authorization
- X-LINE-Authorization-Nonce
- X-LINE-ChannelId
- X-LINE-MerchantDeviceProfileId
For more information, see Request header.
Request examples
bash
curl -X GET \
-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" \
https://sandbox-api-pay.line.me/v3/payments/requests/2018110112345678910/check