Onmeta Widget Integration
Widget Creation

Customizing widget

4min

Since widget has optional parameters that can be set during initialisation, let's see what are parameters that can be configured with it and how to enable OffRamp functionality as well.

By Default widget will be initialised with Onramp feature. And Default fiat is only INR , for PHP contact our sales team to enable it. and from widget initialize fiatType:php for PHP

1. Offramp only.

Offramp can be enabled by setting the flag to offRamp: "enabled" as shown in below example.

JS


2. OffRamp and OnRamp

Both on and off ramp can be enabled by setting respective flags to a value as enabled as shown below.

JS


3. To set default input type as crypto in offramp widget

JS