Checkout Complete
Ozan avatar
Written by Ozan
Updated over a week ago

This Callback hook is triggered when checkout is complete.

Request Body:

JSON

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

Response Body:

JSON

{ 
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 :

JSON

{ 
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 answer your question?