Skip to main content

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.

ThreeDSecure.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:
  • error
callback A function that accepts an event object as a parameter.

Events:

Error

const gateway = Gateway.create('collect_checkout_0000000000000000000000000');
const threeDsService = gateway.get3DSecure();

threeDsService.on('error', (e) => { console.error (e) })

/*
 *  {
 *     refId: '1234',
 *     message: 'Unknown options: invalidField',
 *     type: 'integrationError',
 *     error: new Error('Unknown options: invalidField')
 *  }
 * /