跳到內容

Interface: CheckPaymentStatusResponse ​

Defined in: src/operations/check-payment-status.ts:36

The status of the request is carried by returnCode; codes that start with 0 are returned as they are and not thrown. Here 0000 is not a success:

returnCodeMeaning
0000The user has not authorized the payment yet.
0110Authorized: confirm can be called.
0121Canceled by the user, or timed out (20 minutes). Final.
0122Failed. Final.
0123Completed. Final.

Mark an order paid on the result of confirm (or of reconcile), never on what this says.

The V4 status-check reference defines all five return codes, including 0110. Sandbox testing has observed 0000, 0121, 0122 and 0123. Observing 0110 requires a buyer to authorize a sandbox request before confirm.

Extends ​

Properties ​

info? ​

ts
info?: object[];

Defined in: src/operations/check-payment-status.ts:37

shipping? ​

ts
shipping?: object;
shipping.feeAmount ​
ts
feeAmount: number;
shipping.methodId ​
ts
methodId: string;

returnCode ​

ts
returnCode: string;

Defined in: src/types.ts:15

0000 on success. Other codes that start with 0 are status codes.

Inherited from ​

LinePayResponse.returnCode


returnMessage ​

ts
returnMessage: string;

Defined in: src/types.ts:16

Inherited from ​

LinePayResponse.returnMessage

Released under the MIT License. An independent library, not made or endorsed by LINE Pay.