# Connect wallet flow

One-Click-Payment

{% stepper %}
{% step %}
**Customer selects “Connect Wallet” option**

The wallet connection widget opens.

&#x20;![](/files/qeA1DZ1OcdsseVhyeg1F)
{% endstep %}

{% step %}
**Wallet connection**

Customer connects and signs (if required by the wallet). The widget automatically detects  the following:

* Connected address
* Current blockchain networks
* Token balances on all supported chains

&#x20;![](/files/QJQfWR6me6xw3wp1fnPG)
{% endstep %}

{% step %}
**Network selection**

The customer selects the desired network (e.g., Celo, Base) and the asset they wish to pay with. Balances are shown in real time.

&#x20;![](/files/eqYBvYaJ9x0OCyiQUyVr)
{% endstep %}

{% step %}
**Payment details confirmation**

Upon selecting an asset, the system instantly calls the settlement endpoint and retrieves the following :

* Exact crypto amount to send
* Destination address
* Current exchange rate

&#x20;![](/files/jHxdn1gFg1jtaDy9HgHN)![](/files/Hu2sleDSe3xmJ6CK9cCE)

{% endstep %}

{% step %}
**Payment processing**

After the customer has reviewed the payment details and taps Pay, the wallet prompts the customer to confirm the transaction. Once confirmed, the transaction is broadcast and the widget shows “Processing…”.

&#x20;![](/files/xaQDPeHykfLWALdZuny7)

{% endstep %}

{% step %}
**Payment confirmation**

As soon as the transaction is confirmed on-chain, the customer sees “Payment Successful” and is redirected to the merchant’s success/callback URL.

&#x20;![](/files/UrlEca0RAOjIer4IvnQY)
{% endstep %}

{% step %}
**Disbursement of funds to the merchant**

Clients pay using stablecoins, while merchants receive their funds in local currency. On the merchant dashboard, they can choose to enable **automatic settlements**, allowing funds to be disbursed automatically to their respective mobile money or bank accounts.&#x20;

<figure><img src="/files/f8e6SaRjlpzCFtBaHeHA" alt=""><figcaption></figcaption></figure>

Alternatively, merchants may opt for **manual settlements**, where they can manually withdraw funds to their respective mobile money or bank accounts.

<figure><img src="/files/s2GAnTHAVBqdOak4l9Yd" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.checkout.pretium.africa/reference/connect-wallet-flow.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
