feat: add PayPal to Checkout Components native-UI payments (ORC-6513)#385
feat: add PayPal to Checkout Components native-UI payments (ORC-6513)#385OnurVar wants to merge 1 commit into
Conversation
Generated by 🚫 Danger Swift against bad5150 |
|
There was a problem hiding this comment.
✅ No issues found
About Unblocked
Unblocked has been set up to automatically review your team's pull requests to identify genuine bugs and issues.
📖 Documentation — Learn more in our docs.
💬 Ask questions — Mention @unblocked to request a review or summary, or ask follow-up questions.
👍 Give feedback — React to comments with 👍 or 👎 to help us improve.
⚙️ Customize — Adjust settings in your preferences.
Generated by 🚫 Danger Kotlin against bad5150 |
67e4ba4 to
0b10a55
Compare
0b10a55 to
163c626
Compare
bad5150 to
92f5e9c
Compare
Summary
PayPal flows through the generic
usePrimerPaymentMethod('PAYPAL')— no bespokeusePayPalhook. Third step of the APM hook unification (after Google Pay #376, Apple Pay #374).Because PayPal is a both-platform
NATIVE_UImethod with plain list-membership availability, it needs zero method-specific code — the foundation's generic hook +startNativeUIalready drive it. So this PR is the unification paying off: the bespokeusePayPalis removed and PayPal rides the same path as every other native-UI method. The diff is just the test coverage proving it.usePrimerPaymentMethod('PAYPAL')→kind: 'nativeUi';start()→startNativeUI('PAYPAL')→ the native Headless SDK opens the PayPal approval browser; outcome arrives on the sharedpaymentOutcome.Breaking change
usePayPaland thePayPalController/PayPalAvailabilityErrortypes are removed — useusePrimerPaymentMethod('PAYPAL')and narrow onkind: 'nativeUi'.Base
ov/feat/ACC-6923-apple-pay-component(#374).Jira
ORC-6513
Test plan
yarn typecheck/yarn lint— cleanyarn jest— green; newusePrimerPaymentMethodPayPal cases (routes tonativeUi; available on both platforms when listed;start()configures/showsPAYPAL)onCheckoutComplete(sandbox payment succeeded)onCheckoutComplete(sandbox payment succeeded)