查詢付款狀態
查看付款狀態訊息。如果在付款請求過程中因Read逾時而沒有收到回應,可以透過呼叫該API查看支付狀態訊息。
GET /v2/payments/orders/{orderId}/check
請將Read逾時設定為至少20秒以上。
Request
Response
Headers
- Content-Type
- X-LINE-ChannelId
- X-LINE-ChannelSecret
- X-LINE-MerchantDeviceProfileId
- X-LINE-MerchantDeviceType
詳細內容請參閱請求標頭。
Request examples
bash
curl -X GET \
-H "Content-Type: application/json" \
-H "X-LINE-ChannelId: YOUR_CHANNEL_ID" \
-H "X-LINE-ChannelSecret: YOUR_CHANNEL_SECRET" \
-H "X-LINE-MerchantDeviceProfileId: YOUR_DEVICE_PROFILE_ID" \
https://sandbox-api-pay.line.me/v2/payments/orders/merchant_test_order_1/check