Steps to integrate custodial wallet (Offramp)
Client can integrate custodial wallets for offramp orders in Onmeta widget following the steps below :
Make sure you have set widget parameter metamask=disabled so that custodial wallet flow is triggered.
1.Generate Sell Quote by entering fiat amount

2.Complete KYC check

3. Fetch Bank Details

4.OTP API
Onmeta will send below request body to user's otp api endpoint to send otp to user email. Client has to expose otp endpoint for onmeta.
5. User enters OTP (stores it locally)

6. Select bank account

7. Create Order
On clicking the confirm button above order will be created.
8.Transfer API
To get the crypto in users wallet send below request body to users withdrawal endpoint, client has to expose transfer api endpoint for onmeta to make transfer request.
If you pass any metaData for widget initialisation that will forwarded to you from above body within orderDetails filed.
Below is the expected response for success case of transfer API.
Below is the expected reponse for failure case of transfer API. Set your error inside code filed to show in widget.

