Api issue with initiateTopup, Amount and Moonpay

Hello

There is a bug in the initiateTopup API for moonpay, when we call the below, the “amount” to buy is not specified in the moonpay page resulting to a default amount of 300 usd instead of the passed amount parameter:

await torusPlugin.initiateTopup(“moonpay”, {
selectedAddress: “wallet_address”,
selectedCurrency: “USD”, // Fiat currency
fiatValue: 100, // Fiat Value
selectedCryptoCurrency: “USDC_polygon”,
chainNetwork: “matic”, // Blockchain network
});

Looking at the link passed to moonpay ((MoonPay…), it is indeed missing the “baseCurrencyAmount=” parameter.

You should be able to reproduce easily.

Please advise.

Thanks

Hey @Jon,

Thank you for bringing this to our attention.

I am pleased to inform you that the issue has been resolved and the fix has been released. Could you kindly confirm if you are able to successfully pass the fiatValue?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.