> For the complete documentation index, see [llms.txt](https://6dot50.gitbook.io/6dot50-apis/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://6dot50.gitbook.io/6dot50-apis/user-payment-pages/payment-confirmation.md).

# Payment Confirmation

After authentication, the user is required to verify and confirm their payment:

<figure><img src="https://2606220576-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTdDjvFBwnl5Ifi5LqyPG%2Fuploads%2FH5W1GtzWAamCjNpCLSke%2Fimage.png?alt=media&amp;token=be29df96-7633-440d-8b8f-b07bb9492f5d" alt=""><figcaption></figcaption></figure>

Similar to login, Cancel will immediately cancel the payment and redirect the user back to the supplied `returnUrl`.

When the user presses Confirm, the system will initiate the payment instruction and deduct the appropriate vouchers from the user’s 6DOT50 account and transfer the amount to the nominated `accountId` supplied in [Initiate Payment](/6dot50-apis/initiate-payment.md).

{% hint style="info" %}
Should the user have insufficient funds to process the payment, the payment will be **cancelled**, and the user will be redirected to the `returnUrl`. Upon querying the status of the payment: `statusCode` will be `2` (cancelled) and `errorCode` will be `1` (insufficient funds).
{% endhint %}

{% hint style="info" %}
Should any other error occur during the payment process, the payment will be **cancelled**, and the user will be redirected to the `returnUrl`. Be sure to query the status of the payment on return, particularly reviewing `statusCode` and `errorCode` and display an appropriate message to the user.
{% endhint %}
