Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Sell crypto - Moonpay #1069

Merged
merged 22 commits into from
Mar 7, 2024

Conversation

Gamboster
Copy link
Collaborator

@Gamboster Gamboster commented Feb 23, 2024

Bitcore PR required for this: bitpay/bitcore#3700
Needs: yarn install to update BWC

To test this feature we can use an ETH test wallet.
Moonpay stopped supporting ETH Goerli, and started using ETH Sepolia.
Steps and workaround to test the complete flow in sandbox:

  1. Create an ETH Goerli wallet in bitpay app, add funds. You can use this faucet: https://goerli-faucet.pk910.de/

  2. For now we can use another wallet that allows ETH Sepolia like Metamask: Go to "Select a network" -> Choose "Sepolia Test Network" -> "Receive" and load some Sepolia funds. You can use this faucet: https://sepolia-faucet.pk910.de/

  3. In the app: Go to Sell Crypto -> Select the ETH Goerli wallet -> Debit card -> enter 0.1 ETH as the amount to sell. -> Continue

  4. The browser will direct you to the Moonpay checkout page, where you will create an account (for tests you can use a public email as a mailinator). Or you will log in if you already have an account.

  5. Accept the order -> Pay with Bitpay App -> You will be redirected to the app again.

  6. Once in the app, you will be redirected to Confirm view: Review the TX, pat the checkbox to accept Terms, and you will be able to send the 0.1 ETH Goerli. Then from Metamask, you can send 0.1 ETH Sepolia to the "Deposit Address" that is present in Confirm View.

  7. Once the funds have been sent you will see the "Success screen" and will be redirected to Moonpay's Sell history, where you can see the details of the order.

Things to keep in mind:
For US users, Moonpay works with fixed amounts so it can be expected that the amount to be received will be the one previously agreed on the Summary page.
For non-US users, Moonpay works with floating amounts so at the time of confirmation we ask for the most up-to-date quote.

@Gamboster Gamboster force-pushed the feat/sellCrypto-moonpay branch 3 times, most recently from 9c00e32 to f647ac5 Compare March 7, 2024 15:27
@Gamboster Gamboster force-pushed the feat/sellCrypto-moonpay branch from f647ac5 to e8ac4ab Compare March 7, 2024 20:16
@Gamboster Gamboster changed the title WIP: Feat: Sell crypto - Moonpay Feat: Sell crypto - Moonpay Mar 7, 2024
@JohnathanWhite JohnathanWhite merged commit 5b8eff5 into bitpay:master Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants