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.

ThreeDSecureUI.start(string mountPointSelector): undefined

Description

Creates an HTML element that will fingerprint the cardholder’s browser and - if required by the issuing bank - expand to display a challenge for the cardholder to complete. The HTML element will become a child of the element provided in the mount point.

Parameters

mountPointSelector A selector string that will identify a single element on the page. Examples: “body”, “#mountPoint”, “.threeDSDiv”

Side Effects

Raises an error if more than one element matches the mountPointSelector or no elements match. Raises an error if a ThreeDSecureUI has already started. The started ThreeDSecureUI must be unmounted before a new ThreeDSecureUI can be started or restarted.

Example:

const gateway = Gateway.create('collect_checkout_0000000000000000000000000');
const threeDsService = gateway.get3DSecure();
const threeDSecureUI = threeDsService.createUI({ ... })
threeDSecureUI.start('body');