archanova / react-wyre

React component for the Wyre widget
MIT License
8 stars 4 forks source link

Fortmatic/General Web3 Integration #1

Open LuisOsta opened 5 years ago

LuisOsta commented 5 years ago

Is there a way to create functionality to allow for a custom web3 provider for Wyre? I.E the way that truffle-hd-wallet and the web3 library works?

I'm currently trying to implement Fortmatic as a Wallet Provider and would like to use Wyre for payment integration. Would you have an idea of how to go about that?

miguelmota commented 5 years ago

@LuisOsta The wyre widget allows the user to purchase ether using standard card payment and the ether goes to the dest address value configured in the settings. You can read the defaultAccount from the web3 provider, which is using the fortmatic provider url, to set as the destination value. The wyre widget doesn't require a web3 provider. In your UI you trigger the wyre widget to open up by setting the open prop to true and configure the settings like described

LuisOsta commented 5 years ago

@miguelmota Is there a way to add fortmatic to the UI list for wyre in this way: image