How redirects work
Starting with new mobile SDK versions (2.3.0-alpha01 for Android and 1.6.x for iOS), a new workflow is used. It is based on redirects to external Yandex apps that support the mobile Yandex Pay.
Note
This workflow is relevant for online store integration.
How it works
Warning
It is not allowed to integrate Yandex Pay in WebView, when enabling it in mobile apps. This is not safe.
- The user taps Pay and runs the mobile Yandex Pay SDK.
- The SDK receives a payment link and selects the optimal strategy.
- If the user has the most recent versions of Yandex apps that support internal Yandex Pay integration, the SDK runs the mobile Native SDK.
- If the user has no Yandex apps installed, the SDK selects a strategy via the Chrome tab for Android, or Safari View Controller, or browser and launches the Web SDK order payment form.
- The user makes a payment based on the selected strategy.
- Next, the user returns to the store app and gets the payment result.
- The store app receives the final results of SDK operation.
List of Yandex apps that support the redirect-based workflow
Android
App | Starting with version |
---|---|
Yandex Pay | 0.113 |
Yandex Browser | 24.4.0 |
Yandex Start | 24.4.0 |
Yandex with Alice | 24.4.0 |
Yandex Browser. Beta | 24.4.0 |
Yandex Start. Beta | 24.4.0 |
iOS
App | Starting with version |
---|---|
Yandex Pay | 0.122.5 |
Yandex Browser | 24.1.9 |
Yandex with Alice | 24.1.9 |