Closed thorsten-stripe closed 3 years ago
Hello, thank-you for granting us access to this project. I'm just starting to familiarise myself with it.
Alipay support (that launches the Alipay app if installed, instead of a website) is very import to our customers. We will be keen to implement this when it is available.
Previously with tipsi-stripe we found ourselves forking the library to incorporate the Alipay SDK (which was a requirement to communicate directly with their app). Is anyone able to comment on whether this could be built in by default, or perhaps just made possible a bit more easily?
Cheers
Is anyone able to comment on whether this could be built in by default, or perhaps just made possible a bit more easily?
Yes, the plan is to make native app-to-app redirect as easy as possible 👍
@cinnabarcaracal for the time being we have decided not to bundle the Android Alipay SDK by default, so the current implementation relies on deep-linking for app to app redirect. So as long as the customer's Android version supports deep linking and they have the Alipay app installed, it will open the app for them via the webview. This should be sufficient for most customers.
The separate alipaySDK for Android is only required for Android versions that don't support deep linking, and we're planning to support this via a separate package at a later point in time. We're tracking this workstream here: https://github.com/stripe/stripe-react-native/issues/126
@thorsten-stripe thank-you for keeping us posted. It has been a while (a couple of years?) since we originally switched to using the AlipaySDK. At the time our end users reported that basic linking wasn't ever launching the Alipay app, but it is completely possible that support has arrived/increased since then.
By "deep linking" are you referring to
1) universal links that will fallback to the alipay website if the app is not present on the device / does not claim universal link support 2) using an app specific scheme ('alipay://') 3) using some other native linking mechanism (I'll be honest, I don't write a lot of native code so I'm not sure exactly what is possible on each platform)
We have begun backend development to support payment intents which will free us up to start development on switching tostripe-react-native
. At which time we will hopefully be a bit more helpful with feedback
The webview will try to open the alipay app scheme
And if I can't it will present a screen in the webview where the customer can download the app or proceed with web payment
Translation:
If the Alipay APP is not installed, please click here to download the Alipay APP and complete the installation, and then click "Use Alipay APP to pay";
If you cannot open the Alipay APP, please click "Continue to browser payment";
If you have already To complete the payment, please click "Payment Completed";
React Native bindings & docs for this guide: https://stripe.com/docs/payments/alipay/accept-a-payment
Add a guide for Alipay payments handling, including outlining how to handle the deep-linking redirect back to the app. Example: https://stripe.com/docs/payments/alipay/accept-a-payment#ios-redirect