# Baloto

> Accept one-time Baloto payments through Checkout with customer billing details supplied in advance and confirm the result on your server.

## Basic information

The customer completes a cash payment by following the voucher and payment locations shown on the hosted payment page.

- Integration path: [Checkout](/payments/versions/v2/online-payments/checkout)
- Transaction type: One-time payment
- `lpmsInfo.lpmsType`: `Baloto`
- Customer country/region: 🇨🇴 CO

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

This guide applies to enabled merchants. Confirm the order currencies enabled for your merchant and application with Onerway. Before using another market or order currency, confirm the enabled scope with Onerway and check the current order with [List available payment methods](/payments/versions/v2/api-reference/endpoints/list-available-payment-methods).

<note>

Before you apply to enable Baloto, contact Onerway to confirm that it can be enabled for your merchant account and application.

</note>

## Before you start

Complete [Integration setup](/payments/versions/v2/get-started/setup) and confirm that Baloto is enabled, along with transaction limits, payment expiry, settlement arrangements, and the test procedure. See [Currency and amount validation](/payments/versions/v2/get-started/currency-and-amount) for amount formatting.

Collect the customer's billing name, identity number, actual country, full address, email, and phone number before creating the payment. Supply `firstName`, `lastName`, `identityNumber`, `country`, `city`, `province`, `address`, `street`, `postalCode`, `email`, `phoneCountryCode`, and `phone` in `billingInformation`. Use digits without `+` for `phoneCountryCode`, and the local number without its country code for `phone`. This guide uses a flow with these details supplied in advance; it does not depend on Checkout collecting missing information.

Provide shipping details according to the API conditions. Configure notification and return URLs, and retain the mapping between your order and the Onerway payment identifiers.

## Start the payment

### Checkout

If you offer only Baloto, first call [List available payment methods](/payments/versions/v2/api-reference/endpoints/list-available-payment-methods) and check that it is returned for the current order. When Checkout displays all available methods, Onerway performs this filtering.

1. On your server, call [Create Checkout Payment](/payments/versions/v2/api-reference/endpoints/create-checkout-payment) with `productType=ALL`, `subProductType=DIRECT`, and `txnType=SALE`. To show only Baloto, set [`lpmsInfo.lpmsType`](/payments/versions/v2/api-reference/endpoints/create-checkout-payment#request-lpmsInfo) to `Baloto`, sending `lpmsInfo` as a JSON string. If you omit `lpmsInfo`, the customer chooses from the methods available for the order.
2. Supply the billing details prepared above and the shipping, product, return URL, and notification URL fields required by the API. Both [`billingInformation`](/payments/versions/v2/api-reference/endpoints/create-checkout-payment#request-billingInformation) and `shippingInformation` are JSON strings. Product and order currencies must match, and product amounts, discounts, and shipping charges must total `orderAmount`.<br />Select the request example **Unified Checkout with all available payment methods**. Replace its order and customer data, use an order currency enabled for your merchant, and include the billing details listed above. Add this method's `lpmsInfo` to show only Baloto, and remove `cardInfo` for this flow. The example demonstrates the shared Checkout request structure.
3. Select the response example **Unified Checkout session created**. Save 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. Checkout presents the payment page and guides the customer through the next steps. When the customer returns to `returnUrl`, display the result obtained from your server. See [Checkout integration](/payments/versions/v2/online-payments/checkout) for request authentication, redirects, and return handling.

## Customer actions and final result

The customer opens the hosted payment page and follows the voucher, payment location or network, amount, and deadline shown there to complete the cash payment. Use the voucher and payment locations provided on that page. Opening a voucher or completing the offline steps does not by itself confirm that Onerway has received the payment result.

Opening the payment page or returning to your website does not establish that payment succeeded. The customer may leave before completing payment; keep the order awaiting confirmation until your server obtains the result.

Process the verified [Payment Result notification](/payments/versions/v2/api-reference/webhooks/payment-result) on your server. If a notification is missing or the result needs checking, use the saved `paymentId` with [Query payments](/payments/versions/v2/api-reference/endpoints/query-payments). Fulfil the order only after server-side confirmation of success. See [Webhooks](/payments/versions/v2/get-started/webhooks) for signature verification, acknowledgement, idempotency, and query fallback.

## Refunds and disputes

Confirm the refund capabilities, restrictions, and dispute process applicable to your merchant with Onerway. If refunds are enabled, follow [Refunds](/payments/versions/v2/online-payments/scenarios/refunds).

## Testing and go-live

Confirm the test environment and available Baloto test procedure with Onerway, then use [Sandbox testing](/payments/versions/v2/get-started/testing) to verify:

1. Use the order currency and customer details described above. Confirm that the first `redirectUrl` opens Checkout, that Baloto is available, and that the customer can continue to the expected payment flow with the prepared billing details.
2. Check the displayed order details, complete the agreed payment test, and confirm the result on your server. Reaching the payment page or return URL alone does not pass payment acceptance.
3. Test leaving before payment, unsuccessful payment, and returning before the final result is known. Test query fallback for a missing notification and idempotent handling of duplicate notifications.
4. For go-live acceptance, retain the notification and acknowledgement for the same order and query it to check that the results agree. Verify production enablement, notification and return URLs, limits, and expiry. Test refunds separately if enabled.
