torusresearch / torus-embed

Embeds the Torus Wallet directly in your application via torus-embed. Exposes a Web3 Provider.
https://demo-eth.tor.us
MIT License
84 stars 52 forks source link

Torus initiateTopup don't accept BRL as selectedCurrency but shows in provider currency list #548

Closed diegosano closed 1 year ago

diegosano commented 1 year ago

Describe the bug Call to method initiateTopup with BRL as selectedCurrency and, for example, mercuryo as the provider, I got Error {"selectedCurrency":"Unsupported currency"} but if I change to USD, in the provider exchange, the currency list has BRL to choose.

To Reproduce Steps to reproduce the behavior:

  1. Call method initiateTopup with mercuryo as provider, and selectedCurrency as BRL (initiateTopup("mercuryo", { sethe lectedCurrency: "BRL" }))
  2. See error

Expected behavior If the specified payment partner shows the currency, we should be able to use that on selectedCurrency parameter.

Screenshots Screenshot_23 image image

Desktop:

Additional context Test realized with next-app example inside torus-embed/examples https://github.com/torusresearch/torus-embed/tree/develop/examples/next-app

chaitanyapotti commented 1 year ago

Fixed in 2.0.1