-
Notifications
You must be signed in to change notification settings - Fork 658
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
Fix Alipay integration #5554
Fix Alipay integration #5554
Conversation
Diffuse output:
APK
DEX
|
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.
LGTM
# Conflicts: # CHANGELOG.md
updateStatus("\n\nUser canceled confirmation") | ||
else -> | ||
updateStatus( | ||
"\n\nPayment failed or canceled." + |
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.
It seems last time I checked, an in-app web browser would be opened if we cancel the native flow, seems that's no longer happening with the recording, could you elaborate a bit why that happened?
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.
I removed line 32 here, and have a PR updating the documentation.
When the user completes the payment in the Alipay app, the PI status will be Suceeded
. If they cancel, it will be RequiresAction
.
Calling Stripe.handleNextActionForPayment
would try to confirm again, using a webview. That's not what we want, since the user just canceled. The docs are also not showing how to handle the result of that call, which is handled in onActivityResult
.
Summary
Fix Alipay integration when using the Alipay SDK.
We were trying to parse the response of the call to
nextActionData.authCompleteUrl
to a JSON object, when the response is not necessarily in JSON format.Add example activities to test the native and web integrations.
Motivation
RUN_APAC_PAYMENT_METHODS-6838
Testing
alipay.mp4