Documentation Index
Fetch the complete documentation index at: https://bancofcalifornia-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Gateway.on(string eventName, func callback): undefined
Description
Attaches an event listener that is invoked when the given event occurs.
Parameters
event
One of the following:
callback
A function that accepts an event object as a parameter.
Events:
Error
const gateway = Gateway.create('collect_checkout_0000000000000000000000000');
gateway.on('error', (e) => { console.error (e) })
/*
* {
* refId: '1234',
* message: '3DSecure is inactive on your account. Contact support
* to activate the payment gateway's 3DSecure service.',
* type: 'integrationError',
* error: new Error('3DSecure is inactive on your account. Contact
* support to activate the payment gateway's 3DSecure service.')
* }
* /