@grabjs/superapp-sdk
    Preparing search index...

    Type Alias TriggerCheckoutResponse

    TriggerCheckoutResponse:
        | { error: string; status_code: 400 }
        | { error: string; status_code: 500 }
        | { error: string; status_code: 501 }
        | {
            result:
                | { status: "success"; transactionID: string }
                | {
                    errorCode: string;
                    errorMessage: string;
                    status: "failure";
                    transactionID: string;
                }
                | { status: "pending"; transactionID: string }
                | { status: "userInitiatedCancel" };
            status_code: 200;
        }

    Response when triggering the checkout flow.

    This response can have the following status codes:

    • 200: Checkout completed successfully. The result contains transaction details.
    • 400: Bad request - invalid checkout parameters.
    • 500: Internal server error - an unexpected error occurred on the native side.
    • 501: Not implemented - this method requires the Grab app environment.