OnRamper Integration - Not Working

Hi guys, I’ve set up integration with Onramper, everything seems to be correct but I’m getting an error from their side and I cannot go through.
I also have tried with a hardcoded address and the problem was the same.

Implementation:


Errors:


Hey @glad

Done!!!

Following discussions from Discord, the wallet address seems to be put in fine from the plugin “receiver” parameter and it shows up in the widget after verifying via email. Seems to be a problem on the Onramper / MoonPay side.

Have you tested with their example widget?

1 Like

Hey @glad, just following up with you here… I was speaking with Onramper the past week about this problem and it seems to be the URL generated by Moralis.

Would you guys be able to change to
https://widget.onramper.com/?apiKey={API_KEY}&onlyCryptos=BNB&wallets=BNB:{ADDRESS}

where should this change be made? what is current url form?

1 Like

The response.data returns the URL here.

ok, so it is returned by plugin directly, can you paste current form of the url that is returned?

to see what is the difference compared to https://widget.onramper.com/?apiKey={API_KEY}&onlyCryptos=BNB&wallets=BNB:{ADDRESS}

1 Like

Sure,
here it is:
https://widget.onramper.com/?onlyCryptos=bnb&apiKey={PROD_KEY}&wallets=bnb:0x71C7656EC7ab88b098defB751B7401B5f6d8976F

1 Like

the difference is only BNB vs bnb?

1 Like

I’m not completely sure, maybe the order of the parameters as well! It works fine with this fix.

the order of parameters should not matter, those are standard parameters for a GET request

maybe you can set coin: 'BNB' in your code instead of coin: 'bnb'

1 Like

I will try it here! Thanks @cryptokid

1 Like