Buy: Feat - MoonPay ApplePay-US embedded buy#2169
Open
Gamboster wants to merge 22 commits into
Open
Conversation
7964b81 to
5d5f20e
Compare
5d5f20e to
d9d56f5
Compare
0557c04 to
82389e8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related ticket: https://bitpayprod.atlassian.net/browse/RN-2668
Bitcore PR required: bitpay/bitcore#4170
In this PR:
Prioritize Moonpay as the preselected partner if embedded-buy is enabled and ApplePay is selected. Otherwise, the behavior remains within the "kayak flow".
The "embedded-buy flow" was implemented for cases where all of the following requirements are met:
Other notes:
A credentialManager was implemented to check when a user connection to Moonpay is required. If a connection is required, the connectOnboarding screen is displayed.
The option to "Unlink Account" has been added from the Connections menu.
The default pills for selecting the amount in buy/sell were increased to 50/100/300
Added the ability to disable embedded flow from BWS config:
buyCrypto?.moonpay?.config?.embeddedBuyDisabled = trueTo test these changes, a BWC bump is needed, and the new endpoints must be deployed in BWS.