Gateway.js is a JavaScript library that allows merchants to highly customize their integration with the gateway’s services. To start using Gateway.js, you need to load the library with a <script> tag.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.
<script src="https://gateway.bancedge.com/js/v1/Gateway.js"></script>
The script tag must load from the payment gateway. You should not attempt to host the file and load it
from your own domain.
Including this script will expose the Gateway class that can be used to
initialize access to other services.
Next, you will need to create a public key from the merchant portal. On the Security Keys page
you will need to click “Add a New Public Key”. The new key should have the Checkout permission attached to it.
Provide the created key to Gateway.create to initialize the library.
const gateway = Gateway.create('collect_checkout_0000000000000000000000');