Securely collect payment details without exposing sensitive information.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.
1. Understand the Collect.js Component
This is a data collection and tokenization method used in conjunction with the Payment API.
2. Retrieve the Tokenization Key
Authentication is done via a
tokenization_key generated in the Merchant Portal under the
Security Keys settings page. Select Tokenization for the key type.This tokenization key can only be used with Collect.js.This key will be visible to customers in your website’s source code, so make sure you only use
the tokenization key here.3. Add the Collect.js Bundle
Paste the script tag into your payment page, preferably in the page header.
4. Add a payButton
Include a button with the ID of
payButton inside your customer information form.Place this button somewhere that indicates the customer will be prompted to enter card or bank
account information.5. Receive a Payment Token
Once the customer enters payment details, a hidden field is inserted into your form with the
payment_token.You will receive the token in the payment_token response variable after submitting the form.Example Request
Example Response
Pair this recipe with Collect.js,
Quick Start Guide, and
Integration Overview when you wire tokenization
into a full checkout flow.