> For the complete documentation index, see [llms.txt](https://docs.tendar.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tendar.co/documentation/buy-now-pay-later/bnpl-sdk.md). Agents can also search and read this documentation through its [MCP server](https://docs.tendar.co/~gitbook/mcp).

# BNPL SDK

The BNPL SDK is Tendar's hosted checkout. When a merchant [creates an order](https://docs.tendar.co/documentation/buy-now-pay-later/orders.md), it sends the customer to the order's `checkout_url`. There the customer signs in, gets verified, picks a repayment plan and makes the first payment. Nothing to build: your settings decide what the customer is asked.

### Before you begin

***

* An [order](https://docs.tendar.co/documentation/buy-now-pay-later/orders.md) and its `checkout_url`.
* Your [BNPL settings](https://app.tendar.co/services/bnpl-configuration?bnpl-level=settings), which shape the checkout (see [Your settings](#your-settings)).
* Your [repayment plans](https://docs.tendar.co/documentation/disbursement/repayment.md#set-your-options) — the customer can only pick from these.

### The checkout, step by step

***

{% stepper %}
{% step %}

#### Open the checkout

Redirect the customer to `checkout_url`. They see the products, the merchant and your company.

<figure><img src="https://507281907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLA8XKSWAGBBYnbNhZCxp%2Fuploads%2FA2SekHSl2aVKWO2hyldf%2FSDK%20Checkout_Timeline-12.png?alt=media&amp;token=ba72efce-5e2b-405e-93dc-0bcd03267b99" alt="The BNPL checkout"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Sign in

The customer enters their email and gets a sign-in code by email. A customer who's new to your company is signed up on the way, with the email the merchant sent.

<div><figure><img src="https://507281907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLA8XKSWAGBBYnbNhZCxp%2Fuploads%2FjUS5suzreKAr4YW6SuqZ%2FSDK%20Checkout_Timeline.png?alt=media&amp;token=b77f2c79-2d2f-4621-a78a-a8e264e948c6" alt="Sign in"><figcaption></figcaption></figure> <figure><img src="https://507281907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLA8XKSWAGBBYnbNhZCxp%2Fuploads%2FEOXch0GetYblOXMqIxAy%2FSDK%20Checkout_Timeline-1.png?alt=media&amp;token=b340adb2-29c9-4dde-a50a-c7a4a37c09de" alt="Enter the code"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

#### Get verified

The customer completes the steps you ask for. A returning customer skips the ones they've done.

| Step               | What the customer gives                                                                                                                                                                                                     |
| ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Profile**        | Name, date of birth, phone, gender and address.                                                                                                                                                                             |
| **Identity**       | Their BVN, an ID document (NIN slip, passport or driver's licence) and a utility bill. With BVN verification on, the BVN must match the profile, and the customer confirms it with a code sent to the BVN's phone or email. |
| **Liveness check** | Selfies from the front and the sides. The front one becomes their picture.                                                                                                                                                  |
| **Employment**     | Employment type, employer, office address, monthly salary and start date.                                                                                                                                                   |
| **Bank statement** | Their salary account, checked with the bank, and the statement.                                                                                                                                                             |
| **Your forms**     | Any extra forms you added in your settings.                                                                                                                                                                                 |

<figure><img src="https://507281907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLA8XKSWAGBBYnbNhZCxp%2Fuploads%2F7A7djeiZ7MgbgXLcZPfj%2FSDK%20Checkout_Timeline.png?alt=media&amp;token=14df4025-9376-4a76-b336-5f5c81ed5e6d" alt="Profile"><figcaption></figcaption></figure>

<figure><img src="https://507281907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLA8XKSWAGBBYnbNhZCxp%2Fuploads%2FdVXCBOh4yyHUIkh24R35%2FSDK%20Checkout_Timeline-2.png?alt=media&amp;token=1f698ec1-2199-4cdb-8a1a-359875936ee2" alt="Identity"><figcaption></figcaption></figure>

<div><figure><img src="https://507281907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLA8XKSWAGBBYnbNhZCxp%2Fuploads%2FvQKhYrAwvdoJGF1zBp2P%2FSDK%20Checkout_Timeline-4.png?alt=media&amp;token=d9305823-e65c-48ba-9263-17ab71be694c" alt="Liveness check"><figcaption></figcaption></figure> <figure><img src="https://507281907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLA8XKSWAGBBYnbNhZCxp%2Fuploads%2FCvmtNmYeihD4ItWdLpWv%2FSDK%20Checkout_Timeline-5.png?alt=media&amp;token=166222fb-383b-4252-beb8-b47d1089a84e" alt="Liveness check"><figcaption></figcaption></figure></div>

<figure><img src="https://507281907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLA8XKSWAGBBYnbNhZCxp%2Fuploads%2F4sNvRfbhizfHSqAQ1eZB%2FSDK%20Checkout_Timeline-3.png?alt=media&amp;token=fdab8078-7ea3-453d-81e3-7001d7949d6b" alt="Employment"><figcaption></figcaption></figure>

<figure><img src="https://507281907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLA8XKSWAGBBYnbNhZCxp%2Fuploads%2FvlWxHdTmD5DbV9KYjJ6Y%2FSDK%20Checkout_Timeline-8.png?alt=media&amp;token=57c8325e-48be-48fe-8afe-f73427096320" alt="Bank statement"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Pick a repayment plan

The customer sees the plans you offer for this amount: the interest, how long, how often, any down payment, and what each installment costs. With the [eligibility check](https://docs.tendar.co/documentation/credit-scoring/eligibility.md) on, their credit is checked first; a declined customer can't continue.

They pick one and see the full schedule, then accept it.

<figure><img src="https://507281907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLA8XKSWAGBBYnbNhZCxp%2Fuploads%2FiVfMAyzHseJ6Q1zAUgo4%2Fbnpl.tendar.co_transaction_transactionId%3D69cb15e919757e5466ee85e7%20(1).png?alt=media&amp;token=9dc4f1c8-3d42-4012-a2f5-8aef5fe3b542" alt="Repayment plans"><figcaption></figcaption></figure>

<figure><img src="https://507281907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLA8XKSWAGBBYnbNhZCxp%2Fuploads%2Fl7JBOaz3j0BMrkb42olU%2Fbnpl.tendar.co_transaction_transactionId%3D69cb15e919757e5466ee85e7%20(2).png?alt=media&amp;token=44b911f0-abcd-405f-b461-7e1ed5fcf7e6" alt="The schedule"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Wait for approval

With automatic approval on, the purchase is approved at once. Otherwise it's `awaiting_approval`: you're emailed, and the customer is told to wait. When you [approve](https://docs.tendar.co/documentation/buy-now-pay-later/transactions.md#approve-a-transaction) it with `send_payment_link`, the customer is emailed the link to pay; the merchant's site can also send them back to `checkout_url`.
{% endstep %}

{% step %}

#### Make the first payment

The customer pays the first installment (the down payment, if their plan has one), plus the service charge and any delivery cost, on a secure payment page.

<figure><img src="https://507281907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLA8XKSWAGBBYnbNhZCxp%2Fuploads%2FeoZf3oMaLY10nYUBT44y%2Fbnpl.tendar.co_review_transactionId%3D69cb15e919757e5466ee85e7%20(1).png?alt=media&amp;token=2c6d611b-af94-42c6-ac71-f10d4b9726ef" alt="Review and pay"><figcaption></figcaption></figure>

<figure><img src="https://507281907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLA8XKSWAGBBYnbNhZCxp%2Fuploads%2F5r0kUeZzaU4ilUjYPa3Y%2Fcheckout.paystack.com_i3zl7asrnjrwcny.png?alt=media&amp;token=ee2413b2-f781-4a37-bad3-c2693d4662f3" alt="The payment page"><figcaption></figcaption></figure>

| Part              | Amount                               |
| ----------------- | ------------------------------------ |
| First installment | From the customer's plan.            |
| Service charge    | 5% of the purchase, at most ₦3,000.  |
| Delivery          | The order's `delivery_cost`, if any. |

For a ₦250,000 TV on 3 monthly installments with a 20% down payment: ₦50,000 + ₦3,000 + ₦3,500 delivery = **₦56,500** today.
{% endstep %}

{% step %}

#### Set up repayment

The customer sets up how the remaining installments are collected, as your settings ask:

* **Card** — they add a debit card. See [Card](https://docs.tendar.co/documentation/recollection/card.md).
* **Direct debit** — they set up a mandate on their bank account. See [Direct Debit](https://docs.tendar.co/documentation/recollection/direct-debit.md).
* **Collect** — they authorize a [Collect](https://docs.tendar.co/documentation/recollection/collect.md) mandate for the remaining installments. This needs their BVN.

<div><figure><img src="https://507281907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLA8XKSWAGBBYnbNhZCxp%2Fuploads%2FtjHKzLm1VSVStpPOAu5u%2FAdd%20bank_empty%20state-1.png?alt=media&amp;token=0cf5c388-6f14-4805-850c-72ee7ecc17f2" alt="Add a card"><figcaption></figcaption></figure> <figure><img src="https://507281907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLA8XKSWAGBBYnbNhZCxp%2Fuploads%2FGr0xV1Nn5SdyvbxLKR9N%2FCard%20added.png?alt=media&amp;token=6b5b36e0-28de-4d66-a67d-8e696a79301f" alt="Card added"><figcaption></figcaption></figure></div>

<div><figure><img src="https://507281907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLA8XKSWAGBBYnbNhZCxp%2Fuploads%2F9T0zs5JvxfVp24Ljl7pv%2FAdd%20bank_empty%20state.png?alt=media&amp;token=afa69a77-6249-48a7-98a5-b45fcb6b9c8b" alt="Add a bank account"><figcaption></figcaption></figure> <figure><img src="https://507281907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLA8XKSWAGBBYnbNhZCxp%2Fuploads%2FBFTCMmnz89WLYH81cw0Q%2FBank%20added.png?alt=media&amp;token=f236585d-a2a8-4b9a-9bb0-06956cf7ac6d" alt="Bank account added"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

#### Done

Tendar creates the loan, pays the merchant in full and starts collecting the installments. The customer is sent back to the merchant's `success_url`.

<figure><img src="https://507281907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLA8XKSWAGBBYnbNhZCxp%2Fuploads%2FjUS5suzreKAr4YW6SuqZ%2FSDK%20Checkout_Timeline.png?alt=media&amp;token=b77f2c79-2d2f-4621-a78a-a8e264e948c6" alt="Done"><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

### Your settings

***

Set these in your [BNPL settings](https://app.tendar.co/services/bnpl-configuration?bnpl-level=settings).

| Setting                | What it changes at checkout                                                            |
| ---------------------- | -------------------------------------------------------------------------------------- |
| **Verify BVN**         | The BVN is looked up, must match the customer's profile, and is confirmed with a code. |
| **Eligibility check**  | The customer's credit is checked before they see the plans.                            |
| **Automatic approval** | Purchases are approved as soon as the customer accepts a plan. Off: they wait for you. |
| **Onboarding forms**   | Your own forms, shown after the standard steps.                                        |
| **Repayment methods**  | Card, direct debit and/or Collect: each one you turn on, the customer must set up.     |
| **Notification email** | Where Tendar emails you about purchases waiting for approval.                          |

### Cancelling and abandoning

***

* A customer can **cancel** while checking out, with a reason (high interest, strict criteria, a long process, inconvenient repayments, or their own). The transaction becomes `cancelled`.
* A purchase with no progress for **7 days** is `abandoned`. Reminder emails go out before that.

### What you're told

***

You get a [webhook](https://docs.tendar.co/documentation/buy-now-pay-later/transactions.md#webhooks) at each step: `transaction.created`, `awaiting_approval`, `approved`, `success`, `disbursed`, and `cancelled`, `failed` or `abandoned` when it doesn't go through.

Along the way, the customer is emailed when their purchase is waiting for approval, when you send the link to pay, when it's declined or sent back for changes, and when it's complete. The merchant is emailed when it's paid.

### Next steps

***

* [Transactions](https://docs.tendar.co/documentation/buy-now-pay-later/transactions.md) — approve purchases and follow them.
* [Repayment](https://docs.tendar.co/documentation/disbursement/repayment.md) — the plans customers pick from.
