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.
- Online Payments
- Collect.js
Create an API Key

Security Keys.
Add the Collect.js Script Tag to Your Checkout Page
Collect.js is loaded from the gateway with the following in your page header.
Add Credit Card Fields to Your Form
Details on implementing Apple Pay, Google Pay, and e-check further down this page, but let’s
start with the basic credit card fields.Collect.js is looking for specific “id” values on the page to embed its iframes, as well as
what button submits the form. These ids can be anything you want, but this example uses the
defaults.On page load, these divs will each have an iframe embedded as a child element. These iframes
are hosted by the gateway and each will contain a single input element. _These inputs will be
unstyled by default. The submit button will maintain your styling and will not have an iframe
added, the id simply tells Collect.js what button submits the form relevant to the payment
token.
Additional Solutions
Light Box offers an alternative pop-up style display for an even easier integration.Gateway.js allows you to add additional gateway services, such as Payer Authentication (3D Secure) and Kount (Advanced Fraud Prevention) to your implementation.Submit the Payment Token with the Payment API
When the user fills out the embedded fields and submits the form, Collect.js will automatically
add the
payment_token variable and token value to the form submission, which in this case is
being sent to the site’s /pay.php endpoint. From there your server should create the full
Payment API request for what action you’re performing, including the payment_token.That’s it, your server will get a response from the Payment API with the result of your request,
and the payment token will be destroyed since it has been used.This is just a starting point meant to explain the general workflow for using Collect.js, but
there is far more you can do to make this your own.HTML Example File
The following is a functioning Collect.js integration using Apple Pay/Google Pay, custom CSS, product info, and uses callbacks to perform actions when specific events (like all payment fields pass validation) Use the below sample to see a barebones integration in action.Collect.js Advanced Integrations