Onmeta Widget Integration
Widget Creation

Steps to integrate custodial wallet (Offramp)

9min

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

Select token and enter amount to get sell quote
Select token and enter amount to get sell quote


2.Complete KYC check

Complete kyc details
Complete kyc details


3. Fetch Bank Details



Document image


4.OTP API

Onmeta will send below request body to client's otp-api endpoint to send otp to user email. Client has to expose otp endpoint for onmeta.

JSON


5. User enters OTP (stores it locally)

Document image


6. Select bank account

Document image


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.

JSON


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.

JSON


Below is the expected reponse for failure case of transfer API. Set your error inside code filed to show in widget.

JSON

Document image

Document image