feat: add Apple Pay support to Checkout Components (ACC-6923)#374
Closed
OnurVar wants to merge 2 commits into
Closed
feat: add Apple Pay support to Checkout Components (ACC-6923)#374OnurVar wants to merge 2 commits into
OnurVar wants to merge 2 commits into
Conversation
Merged
5 tasks
2827fb2 to
427bd77
Compare
8373640 to
977e7c7
Compare
3 tasks
427bd77 to
99b5845
Compare
99b5845 to
f158619
Compare
7bf9224 to
11780ee
Compare
f158619 to
bfa1508
Compare
11780ee to
6416d4c
Compare
13c6404 to
67e4ba4
Compare
55a7105 to
5444ed8
Compare
4 tasks
5444ed8 to
a3e37a7
Compare
67e4ba4 to
0b10a55
Compare
a3e37a7 to
bc561f2
Compare
0b10a55 to
163c626
Compare
This was referenced Jun 23, 2026
4 tasks
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.
Summary
Apple Pay flows through the generic
usePrimerPaymentMethod('APPLE_PAY')— no bespokeuseApplePayhook. It rides the samenativeUipath as Google Pay: the prebuilt method row (or your own button) callsstart(), the native Headless SDK presents the sheet, and the outcome arrives on the sharedpaymentOutcome. Second step of the APM hook unification (after Google Pay, #376).isAvailableisfalseon Android even if the SDK listsAPPLE_PAY— the one Apple-Pay-specific rule, ininternal/applePay.ts(mirror ofinternal/googlePay.ts).startNativeUI('APPLE_PAY')rejects when unavailable (e.g. on Android), so a custom layout that skips theisAvailablecheck still fails safely instead of making a native call.NATIVE_UIpath already drives Apple Pay. Apple Pay renders as a standard method row (no dedicated native button).Breaking change
useApplePayand theApplePayController/ApplePayAvailabilityErrortypes are removed — useusePrimerPaymentMethod('APPLE_PAY')and narrow onkind: 'nativeUi'.Base
ov/feat/ACC-6923-google-pay-component(#376) — the generic-hook foundation.Jira
ACC-6923
Test plan
yarn typecheck/yarn lint— cleanyarn jest— green; newusePrimerPaymentMethodApple Pay cases cover iOS availability + start, and the Android guard (unavailable +start()rejects, no native call)onCheckoutComplete(sandbox payment succeeded)