Onmeta Widget Integration
Widget Creation

Checkout flow - Onramp

4min

To open payment page directly with widget and to skip the quotation page, follow below steps.

  1. Create order via api and keep the orderID which you have received in api response.
  2. Initialize widget with orderID received in step 2.

Step 1:

JS


Note: you need to have auth token to call create order api as above else you will receive 401 Unauthorized error.



Response :

JS


Step 2:

JS


once you pass orderID to widget Initialisation params, it will fetch order details and load the widget with prefilled data and take user directly to payment page.