-
Notifications
You must be signed in to change notification settings - Fork 136
[WOOMOB-1647] Migrate payments to single-call processPaymentIntent API #15050
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
[WOOMOB-1647] Migrate payments to single-call processPaymentIntent API #15050
Conversation
🤖 Generated with [Claude Code](https://claude.com/claude-code)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
|
|
📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.
|
🤖 Test Failure AnalysisYour tests failed. Claude has analyzed the failures - check the annotation for details. |
🤖 Generated with [Claude Code](https://claude.com/claude-code)
malinajirka
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @kidinov ! The changes look good to me. I tested various errors as well as successful payments. I have not tested TTP since it require a release build - I can do a more thorough test on the final PR before we merge all these changes.
ed57320
into
woomob-1647-update-stripe-sdk-to-500
WOOMOB-1647
Description
This PR migrates the payment flow from the deprecated two-step API (
collectPaymentMethod()+confirmPaymentIntent()) to the new single-callprocessPaymentIntent()API in Stripe Terminal SDK 5.0.Changes:
ProcessPaymentIntentActionfor the new single-call payment APIPaymentManagerto useprocessPaymentIntentinstead of separate collect and confirm stepsCollectingPaymentstatus since collection and processing are now combinedCollectingPaymentUI states intoProcessingPaymentCollectPaymentActionandProcessPaymentActionclassesThis is PR 4 of the Stripe SDK 5.0.0 migration series and depends on PR 3 (refund migration).
Test Steps
RELEASE-NOTES.txtif necessary. Use the "[Internal]" label for non-user-facing changes.