# Khipu

> Accept one-time Khipu payments through Checkout and confirm the result on your server.

## Basic information

The customer selects Khipu on the hosted page, provides the requested identity details, and authorizes a bank transfer on the payment page.

- Integration path: [Checkout](/payments/online-payments/checkout) (desktop browser)
- Transaction type: One-time payment
- `lpmsInfo.lpmsType`: `Khipu`

| Customer country/region | Order currency |
| --- | --- |
| 🇨🇱 CL | CLP |

The customer country/region is the `billingInformation.country` value in the payment request.

This guide applies to enabled merchants.

## Before you begin

Complete [Setup](/payments/get-started/setup) and confirm that Khipu is enabled for your merchant and application. Confirm your transaction limits, payment expiry, settlement arrangements, and test procedure with Onerway. Use CLP for this flow and follow [Currency and amount validation](/payments/get-started/currency-and-amount).

Supply actual customer and product information according to the API requirements, including the customer’s email and billing country `CL`. Checkout collects the identity details needed to continue this payment. The customer needs a bank account supported by Khipu and access to the bank’s authentication method.

This flow uses CLP orders. The customer authorizes the transfer for the amount and currency displayed on the payment page.

Configure your return page and notification endpoint, and store the mapping between your order and the Onerway payment identifiers.

## Start the payment through Checkout

1. On your server, call [Create Checkout Payment](/payments/api-reference/endpoints/create-checkout-payment) with `productType=ALL`, `subProductType=DIRECT`, `txnType=SALE`, `paymentMode=WEB`, and `orderCurrency=CLP`. To show only Khipu, set [`lpmsInfo.lpmsType`](/payments/api-reference/endpoints/create-checkout-payment#request-lpmsInfo) to `Khipu`, sending `lpmsInfo` as a JSON string. If you omit `lpmsInfo`, the customer chooses from the methods available for the order.
2. Supply the customer and product details, notification URL, and return URL required by the API. Encode `billingInformation`, `shippingInformation`, and `txnOrderMsg` as JSON strings. Keep product and order currencies consistent and ensure the product amounts, discounts, and shipping charges total `orderAmount`.<br />Select the request example “Unified Checkout with all available payment methods”. Replace the placeholders with your order and customer data, use CLP, and remove `cardInfo` for this flow. Add this method's `lpmsInfo` if you want to show only Khipu. The example shows the shared Checkout request structure.
3. Select the response example “Unified Checkout session created”. Store the returned `paymentId` and `transactionId` against your order, then redirect the customer's browser to `redirectUrl`. The initial `status=U` means the payment is unpaid.
4. The customer selects or confirms Khipu in Checkout. Checkout handles the payment-page redirect. If the method is absent, contact Onerway to check application enablement and order conditions.

See [Checkout integration](/payments/online-payments/checkout) for signing and return-page handling. You can use [List available payment methods](/payments/api-reference/endpoints/list-available-payment-methods) to check order availability before creating the payment.

## Customer actions and final result

The customer supplies any identity details requested by Checkout and continues to the payment page. They select an available bank, complete the bank’s authentication steps, review the displayed amount and currency, and authorize the transfer. Authentication varies by bank; follow [Khipu’s payment instructions](https://khipu.zendesk.com/hc/es/articles/115001513426--C%C3%B3mo-puedo-pagar). Your application does not collect the customer’s banking password or verification code.

Returning to your website does not confirm payment success. Process the signature-verified [Payment Result notification](/payments/api-reference/webhooks/payment-result) on your server. If the notification is missing or you need to check the result, call [Query payments](/payments/api-reference/endpoints/query-payments) with the saved `paymentId`. Fulfil the order only after your server confirms payment success. See [Webhooks](/payments/get-started/webhooks) for verification, acknowledgement, idempotency, and query fallback.

If the customer cancels or leaves payment incomplete, check the existing payment before creating a replacement.

## Refunds and disputes

Confirm the refund capabilities, partial-refund support, request deadlines, and dispute process enabled for your account with Onerway. If refunds are enabled, follow [Refunds](/payments/online-payments/scenarios/refunds) and track the refund result separately.

## Testing and go-live

Agree the test environment and bank authorization procedure with Onerway, then follow [Sandbox testing](/payments/get-started/testing).

1. Create a CLP order with the required customer and product details. Verify that the returned URL opens Checkout and Khipu is available.
2. Select Khipu, check the displayed amount, and complete the agreed bank authorization procedure. Retain the notification and acknowledgement for the same order, then query the payment and check that the results agree.
3. Test cancellation, incomplete payment, and returning before the final result. Confirm that a return alone never marks the order paid, duplicate notifications are handled idempotently, and missing notifications can be reconciled by querying the payment.
4. Before launch, verify production enablement, notification and return URLs, CLP order support, limits, and expiry. Test refunds separately if enabled.
