Skip to main content
EBANX.js

EBANX.js is a JavaScript library that allows you to easily integrate EBANX’s payment services into your website. It simplifies handling transactions, tokenizing credit card information, and processing payments, making it a valuable tool if you are looking to offer seamless, secure payments to your customers.

Features

The following features are available when using EBANX.js.

  • Drop-in - Checkout form to collect payment without handling credit card data.
  • Card tokenization - Securely transmit payment information without sending raw credit card data to your server.
  • Device fingerprint - Generate a device ID to include with payment. Helps detect suspicious activity.
  • 3DS secure 2.0 - Adds protection to online card transactions. Prevents unauthorized use.
  • Document verification - Validate customer-provided document information.
  • Validation tools - Display and validate standard fields, like states or countries.

Requirements

  • Credentials - Ensure you have your EBANX.js Public Integration Key, which can be found in your EBANX Dashboard. If you don't have it, complete the Merchant Signup Form.

Instructions

Follow the steps below.

  1. Install EBANX.JS

    Script Tag

    Add the following to your HTML.

    <script src="https://ebanx-js.ebanx.com/latest/dist/ebanx.min.js"></script>

    Initialization

    Include the following function in your JavaScript.

    EBANX.init({
    publicIntegrationKey: '{your_public_integration_key}',
    country: '{selected_country_code}',
    mode: 'test',
    });

    Specify Parameters

    FieldDescription
    publicIntegrationKeyMerchant's public integration key
    countryPayment country code
    modetest or production
  2. Choose an EBANX.js feature

  3. Congratulations!

    You have successfully integrated an EBANX.js feature.


Still need help?

Help Image

We hope this article was helpful. If you still have questions, you can explore the following options: