Bank Transfers

Learn how to integrate your solution to process payments with Bank transfers.

Khipu

Khipu enables payments through bank transfers directly from the payer’s account. The experience can be completed either within their bank’s platform or through the Khipu website, which provides a faster and seamless payment flow.


Payment Flow

  1. Enter Email Address - The payer starts by entering their email address to receive the payment receipt and confirmation.
  2. Select Bank or Account Type - The system displays a list of available banks. The payer selects whether the payment will be made from a personal or business account.
  3. Log In to Bank - The payer is redirected to their bank’s login screen and enters their RUT and password. This step securely connects their online banking account through Khipu.
  4. Choose the Account - Once logged in, the payer selects the specific bank account to be used for the transfer.
  5. Authorize the Payment - The payment details (amount and merchant) are shown for review. The payer authorizes the transaction by entering their security code or token.
  6. Confirmation - After authorization, a confirmation screen appears showing the payment amount, merchant, and reference code. A digital receipt is sent to the payer’s email, and they’re redirected back to the merchant’s site automatically.

↪️

Redirect Flow for Khipu

This payment method uses a Redirect flow. The API response includes an Action and the purchase remains in Pending status until the customer completes the payment in the Internet Banking.


Request parameters

The following parameters are required specifically for this payment method.
Refer to the Purchase operation guide for standard fields and authentication requirements.

PropertyTypeMandatory?Description
PaymentMethodstringYesKHI – Find the value in the table Payment Method.
TargetCountryISOstringYesMust be CL.
CustomerEmailstringYesCustomer’s email.
CustomerFirstNamestringYesCustomer’s first name.
CustomerLastNamestringYesCustomer’s last name.
CustomerDocumentTypestringNoCustomer’s document type. Use RUT.CL.
CustomerDocumentNumberstringNoRUT without dots or hyphen. Example: 111111111.
CustomerPhoneNumberstringNoCustomer’s phone number.
CustomerAddressCountrystringNoCustomer’s country.
CustomerAddressStatestringNoCustomer’s region.
CustomerAddressCitystringNoCustomer’s city.
CustomerAddressAddressDetailstringNoCustomer’s address line.
CustomerAddressPostalCodestringNoCustomer’s postal code.
RedirectionUrl_ApprovedstringNoCallback URL when the purchase status is Approved.
RedirectionUrl_RejectedstringNoCallback URL when the purchase status is Rejected.
RedirectionUrl_CanceledstringNoCallback URL when the purchase status is Canceled.
RedirectionUrl_PendingstringNoCallback URL when the purchase status is Pending.
RedirectionUrl_NotifystringNoWebhook notification URL. The purchase status is notified to this URL once the payment processor confirms the status.
MetaDataInPaymentExpirationInMinutesnumericNoDefines the expiration time for the payment in minutes. The API applies a default value if omitted.

Request example

To test this endpoint, use the API Reference or the Postman Collection

{
  "PaymentMethod": "KHI",
  "Order": "CL-KHIPU-0001",
  "Amount": 25000,
  "Currency": "CLP",
  "Description": "Compra online - Khipu test",
  "TargetCountryISO": "CL",
  "Customer": {
    "FirstName": "Camila",
    "LastName": "Muñoz",
    "Email": "[email protected]",
    "DocumentType": "RUT.CL",
    "DocumentNumber": "111111111"
  },
  "MetaDataIn": {
    "PaymentExpirationInMinutes": 7200
  },
  "Redirection": {
    "Url_Approved": "https://mitienda.cl/checkout/aprobado",
    "Url_Rejected": "https://mitienda.cl/checkout/rechazado",
    "Url_Canceled": "https://mitienda.cl/checkout/cancelado",
    "Url_Pending": "https://mitienda.cl/checkout/pendiente",
    "Url_Notify": "https://webhook.site/9e2dff8b-cec6-4540-bd2d-feafce58a9ed"
  }
}


Response parameters

The API returns the purchase with Status PENDING and includes an Action object where:

  • Reason = REDIRECTION_NEEDED_EXTERNAL_SERVICE
  • URL = Link to redirect the payer to the Khipu page.

The merchant must redirect the payer to this URL so they can log in and complete the payment. For more information on the response parameters, please refer to the Response parameters section of the Purchase creation.


ℹ️

When testing, if RUT and password are requested, use: RUT: 11.111.111-1 Password: 123


Response example

{
  "TransactionId": "79632697147789184",
  "Result": "ACTION_REQUIRED",
  "Status": "PENDING",
  "ErrorCode": null,
  "ErrorDescription": null,
  "Created": "2024-08-07T17:51:54.620",
  "AuthorizationDate": null,
  "AuthorizationCode": null,
  "Amount": 25000,
  "Currency": "CLP",
  "Installments": 1,
  "Url": "https://api.stage.bamboopayment.com/Purchase/79632697147789184",
  "MetadataOut": null,
  "Action": {
    "SessionId": "CA_f1696826-3607-47ef-adba-94291876758b",
    "URL": "https://redirect.stage.bamboopayment.com/CA_f1696826-3607-47ef-adba-94291876758b",
    "Reason": "REDIRECTION_NEEDED_EXTERNAL_SERVICE"
  },
  "PaymentMethod": {
    "Brand": "Khipu",
    "Type": "BankTransfer"
  }
}


Discover the API

Once you’re familiar with how to create a purchase, you can test your integration using our API Reference