# Checkout URL

Xendbridge provides a checkout portal feature that individuals and businesses can use to quickly integrate into their applications with minimum api calls.&#x20;

<figure><img src="https://541477069-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEJfjUFckB6ClQLv1UxYC%2Fuploads%2FCusi46hGMtSl1sUZiIT2%2Fimage.png?alt=media&#x26;token=4e52a60a-b53c-4769-9b52-5e520cd1a8f9" alt=""><figcaption></figcaption></figure>

<figure><img src="https://541477069-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEJfjUFckB6ClQLv1UxYC%2Fuploads%2FcRM3eHmwgOMiZwL0iMwN%2Fimage.png?alt=media&#x26;token=e203c449-3bab-42f6-82c2-e2dfd868ae5c" alt=""><figcaption></figcaption></figure>

#### How it works

First, you would need to sign up on the [website](https://xendbridge.com) and get access to the sandbox environment. On your new dashboard, create an app and provide a logo.

Next, provide your app with supported currencies and payment methods of your choosing.

Then, enable access to the checkout portal on your dashboard.

Below are the endpoints that are necessary for implementing

* [Buy](https://doc.xendbridge.com/xendbridge-portal/checkout-url/buy-order)
* [Sell](https://doc.xendbridge.com/xendbridge-portal/checkout-url/sell-order)
* [Swap](https://doc.xendbridge.com/xendbridge-portal/checkout-url/swap-order)
* [Rate](https://doc.xendbridge.com/xendbridge-portal/checkout-url/rate) (optional)
* [RateBounds](https://doc.xendbridge.com/xendbridge-portal/checkout-url/rate-bounds) (optional)
* [Supported Currencies](https://doc.xendbridge.com/xendbridge-portal/checkout-url/supported-currencies) (optional)
* [Payment Methods](https://doc.xendbridge.com/xendbridge-portal/checkout-url/payment-methods) (optional)

### Authorization

Once a Buy, Sell, or Swap order is initiated successfully, a ***checkout*** url is returned and can be used to redirect your customer to complete the order. In order to proceed with the payment two ways have been provided for the customer to be authorized to continue payment.

<figure><img src="https://541477069-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEJfjUFckB6ClQLv1UxYC%2Fuploads%2Foqe46CtoUg1mGrSaNdBf%2Fimage.png?alt=media&#x26;token=309c39a6-ccbc-4b1a-8f69-b02166525566" alt=""><figcaption></figcaption></figure>

#### Email OTP

Once redirected the customer would need to provide an OTP which we'll send to the customer's email when this option is clicked before getting access to the order details.

OR

**Order Access Code**

This is the code returned in the response as `accessToken` after a successful order initiation. The third party can decide whether to show the token to its customers or not, to proceed with the order completion when this option is selected.

### LP Simulation (Liquidity Provider)

In order to test the integration end-to-end, please make use of the LP simulation endpoints to process payments and complete orders.

{% content-ref url="../api-method-calls/lp-simulation" %}
[lp-simulation](https://doc.xendbridge.com/api-method-calls/lp-simulation)
{% endcontent-ref %}

## Environments

We have two base urls available to third parties, namely **sandbox** and **live** urls.

**Sandbox Base Url**

```uri
https://checkout-api-sandbox.xendbridge.com
```

**Live Base Url**

```uri
https://checkout.xendbridge.com
```
