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:
returnCode | Meaning |
|---|---|
0000 | The user has not authorized the payment yet. |
0110 | Authorized: confirm can be called. |
0121 | Canceled by the user, or timed out (20 minutes). Final. |
0122 | Failed. Final. |
0123 | Completed. 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
returnMessage
ts
returnMessage: string;Defined in: src/types.ts:16