AlphaWallet / alpha-wallet-android

An advanced Ethereum mobile wallet
https://www.alphawallet.com
MIT License
584 stars 528 forks source link

Implement deep links for xDAI Fiat-on-Ramp on Ramp.network #1721

Open AW-STJ opened 3 years ago

AW-STJ commented 3 years ago

We would like to show a Buy xDAI button and then direct the users to Ramp.network's xDAI purchasing option.

All the relevant technical documents would be on their site https://docs.ramp.network/. Let me know if you need more information.

The scope of this work would be to

  1. Add the 'Buy xDAI' option to xDAI token's the kebab menu
  2. Take users to xDAI purchase site on Ramp.Network, on clicking this option.

image

colourfreak commented 3 years ago

From Paulina (Ramp.Network)

If you want to set up deep linking, you have to integrate in hosted mode https://docs.ramp.network/quick-start-hosted and set parameter swapAsset=xDai

AW-STJ commented 3 years ago

Also linking the iOS issue https://github.com/AlphaWallet/alpha-wallet-ios/issues/2507

hboon commented 3 years ago

James, here's the URL:

    private static let rampApiKey = "j5wr7oqktym7z69yyf84bb8a6cqb7qfu5ynmeyvn"
    static let buyXDaiWitRampUrl = "https://buy.ramp.network/?hostApiKey=\(rampApiKey)&hostLogoUrl=https%3A%2F%2Falphawallet.com%2Fwp-content%2Fthemes%2Falphawallet%2Fimg%2Falphawallet-logo.svg&hostAppName=AlphaWallet&swapAsset=xDai"

And append &userAddress=WALLET_ADDRESS

JamesSmartCell commented 3 years ago

@justindg can you let me know if you're starting on this? Next release will be in another 2 weeks, hopefully it can go into that.

justindg commented 3 years ago

@justindg can you let me know if you're starting on this? Next release will be in another 2 weeks, hopefully it can go into that.

@JamesSmartCell Working on it now 👍

cc @AW-STJ

AW-STJ commented 3 years ago

Let us extend the functionality to all the available tokens.

https://github.com/AlphaWallet/alpha-wallet-android/issues/1738