WIP: Embedded Buy: Feat - Cards payment option added to Moonpay Embedded-buy - #2380
Draft
Gamboster wants to merge 11 commits into
Draft
WIP: Embedded Buy: Feat - Cards payment option added to Moonpay Embedded-buy#2380Gamboster wants to merge 11 commits into
Gamboster wants to merge 11 commits into
Conversation
Gamboster
marked this pull request as draft
September 8, 2026 18:45
…mount if needed in moonpayDetails
…eck-connection WebView
Gamboster
force-pushed
the
feat/moonpayEmbeddedCardsPaymentOpt
branch
from
September 8, 2026 18:47
e584dfa to
20220af
Compare
…effects and pass as param
…ired handled in BuyFrame
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.
Adds Cards as a payment option for the MoonPay embedded (headless) buy flow,
alongside the existing Apple Pay support. No SDK: the flow is built on the
MoonPay frames protocol, same as Apple Pay.
Flow:
(GET /platform/v1/payment-methods). If there are none, it opens the
add-card frame (/platform/v1/add-card) to collect the card.
paymentMethodId, so the amounts, fees and disclosures shown on screen come
from the same quote that will be charged.
signature. Challenges (3DS/SCA) reuse the existing challenge frame.
(expired/declined/blocked) are listed but not selectable.
Cards embedded only works through MoonPay's connect flow. If the customer
isn't connected, or another partner is selected, the flow falls back to the
standard (Kayak) MoonPay flow.
Config: embeddedBuyDisabled stays as the global kill switch for the embedded
flow. On top of it, each embedded payment method can now be disabled
independently via moonpay.config.paymentMethods.applePayEmbedded.disabled and
.cardEmbedded.disabled.
Also in this PR:
MoonPay supported countries except the UK, and Apple Pay's device support
check only gates Apple Pay instead of the whole flow.
actually charged) instead of fiat_base_amount, which matters for cards
because the final total can differ from the quoted one.