Version: current

Bank Transfer with Direct API

About this guide

This page explains how to add Bank Transfer to your existing Direct API integration. Direct API integration is basically the same for all payment methods, only varying the payment_type_code and some additional required fields.

Availability:

Bank Transfer integration for merchants offering digital products & services via Direct API is available in Chile.

If you are not integrated with EBANX Direct API yet, please take a look in this basic guide about it. Are you not sure if EBANX Direct API is the best option for your e-commerce? Please, talk with one of our integration specialists.

What you will need

Before starting your integration, please make sure that you have:

  1. An EBANX Sandbox account. That's not the case? Please sign up for an Sandbox Account here;
  2. Bank Transfer enabled in your EBANX Dashboard.

How it works

To complete Bank Transfer integration through EBANX Direct API, please follow the steps below.

  1. Enable Bank Transfer

    Bank Transfer availability may vary depending on your contract. So the first step is to check if it is active in your EBANX dashboard.

    All set? We can go ahead to the next step, otherwise, please get in touch with our integration specialists.

    Basic parameters:

    ParameterDescription
    operationOperation must be request
    integration_keyYour unique and secret integration key
    payment_type_codeFor bank transfer types are banktransfer
    countryTwo-letter country code - cl for Chile

    Customer data:

    ParameterDescription
    namePayer full name
    emailCustomer email
    document_typeIn Chile the document type is RUT
    documentCustomer document number

    Charge parameters:

    ParameterDescription
    merchant_payment_codeUnique merchant payment code
    currency_codeISO-4217 Currency code transaction. Supported value: CLP
    amount_totalTotal amount to be charged

    Check the examples:

    curl -L -X POST 'https://sandbox.ebanxpay.com/ws/direct' \
    -H 'Content-Type: application/json' \
    --data-raw '{
    "integration_key": "{{integration_key}}",
    "operation": "request",
    "payment": {
    "amount_total": 100,
    "currency_code": "CLP",
    "name": "Jhon Due",
    "email": "jhon.due@gmail.com",
    "document": "30-52135353-1",
    "country": "cl",
    "payment_type_code": "banktransfer"
    }
    }'

    A successful request will return a JSON response like the one below. The redirection link to the voucher will be in the parameter payment.voucher_url.

    "payment": {
    "hash": "668be0d02679a2ab612be7d7c71e85c488ca9edd28eae597",
    "country": "cl",
    "merchant_payment_code": "1720443088",
    "order_number": null,
    "status": "PE",
    "status_date": null,
    "open_date": "2024-07-08 12:51:28",
    "confirm_date": null,
    "transfer_date": null,
    "amount_br": "100.00",
    "amount_ext": "100.00",
    "amount_iof": "0.00",
    "currency_rate": "1.0000",
    "currency_ext": "CLP",
    "due_date": "2024-07-09 12:51",
    "instalments": "1",
    "payment_type_code": "banktransfer",
    "voucher_url": "https://sandbox.ebanxpay.com/print/voucher/execute?hash=668be0d02679a2ab612be7d7c71e85c488ca9edd28eae597",
    "pre_approved": false,
    "capture_available": null,
    "customer": {
    "document": "30521353531",
    "email": "jhon.due@gmail.com",
    "name": "JHON DUE",
    "birth_date": null
    }
    },
    "status": "SUCCESS"
    }
    info

    The complete API reference for the end-point ws/direct can be found here. We strongly recommend you to take a look in all the available options.

  2. Redirect customer to the returned URL

    Redirect your customer to the URL returned in the parameter voucher_url. After the redirection, your customer will be able to see the voucher with the information to complete the transaction.

    At this point you have a pending (PE) payment in your EBANX Dashboard.

  3. Wait for the payment

    Once the transfer is completed by the customer, it will take sometime to EBANX get informed by the bank. As soon as we get the confirmation, payment status is modified from pending to confirmed.

    If your customers don't conclude the payment, it will be automatically canceled.

Getting help

We hope this article was enlightening, but in case we’ve failed to take out your doubts you have the following options to keep on seeking for answers:

  • If you’re not our partner yet and would like to know more about our prices and conditions please fill ou this form and our comercial team will get in touch with you.
  • In case you’re already our partner please get in touch with our support team at integration@ebanx.com.
Last updated on by FlavioCostaeSilva