Checkout Complete

This Callback hook is triggered when checkout is complete.

Request Body:

{
    command: 'registerCallback',
    version: 1.0,
    method: 'POST',
    data:   
[
            {
                callbackCommand : 'Checkout',
                hookName: 'checkoutComplete'
            }
           ]
}

Response Body:

{
    command: 'registerCallback',
    version: 1.0,
    method: 'POST',
    responseType: 'registered',
    Hooks:
            [
{
                callbackCommand : 'Checkout',
                hookName: 'checkoutComplete',
                status: 200,
                message: 'Event registered successfully',
                error: null
                
            }
]
    }

Triggered Callback Response Body :

{
    command: 'registerCallback',
    version: 1.0,
    method: 'POST',
    responseType: 'triggered',
    callbackCommand : 'Checkout',
    hookName: 'checkoutComplete',
    data: {
            customerEmail: '[email protected]',
            payments:
                [
                    {
                        Amount : 69.00,
                        paymentType : 'card',
            paymentName : 'fortispay'
                    },
                    {
                        Amount : 420.00,
                        paymentType : 'cash',
            paymentName : 'OliverCash'
                    }
                ]


             }
}

Did this page help you?