Introduction
Embedded pay allows you to embed the Onsi pay experience into your application, allowing you to perform withdrawals on behalf of your members.Embedded pay is an additional feature that can be enabled on your account. Please contact us to enable this feature.
Withdrawal Journey
The withdrawal process for a member is as follows:1
Allow your members to start withdrawal
Show a member their available balance from the Get Member Balance endpoint,
present them the option to input the amount they would like to withdraw.
2
Create a new Withdrawal Intent with Onsi API
Create a withdrawal intent using the Create Withdrawal Intent
endpoint, this returns any associated fees which will be deducted (if applicable), make sure to present this
information to the user so they may confirm.
3
Confirm the withdrawal if member is happy
If the member confirms the withdrawal, call the Confirm Withdrawal
endpoint to complete the withdrawal.