Skip to content
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

Update readme and align example returnUrl #315

Merged
merged 3 commits into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,20 @@ release a new version when we need to.
4. [Set up your webhooks](https://docs.adyen.com/development-resources/webhooks/) to get the payment
outcome.

Required versions:
## Requirements:

* [Checkout API v71](https://docs.adyen.com/api-explorer/Checkout/71/overview) or later.
* [iOS 12](https://support.apple.com/en-us/118387) or later.
* [Android 5.0](https://www.android.com/versions/lollipop-5-0/) or later with compileSdk set to 34.
Google will
change [target API level requirements](https://support.google.com/googleplay/android-developer/answer/11926878?hl=en)
for Google Play apps starting August 31 2024.

#### Android
* [Android 5.0](https://www.android.com/versions/lollipop-5-0/) (API 21) or later.
* [Kotlin 1.8](https://kotlinlang.org/docs/releases.html) or later.
* Requires the usage of a `FlutterFragmentActivity` instead of the default `FlutterActivity` in the MainActivity of your [native Android](https://github.com/Adyen/adyen-flutter/blob/main/example/android/app/src/main/kotlin/com/adyen/checkout/flutter/example/MainActivity.kt) layer.

#### iOS
* [iOS 12](https://support.apple.com/en-us/118387) or later.
* Add the return URL handler to your AppDelegate in your [native iOS](https://github.com/Adyen/adyen-flutter/blob/5301abab34773e820c4fd38be54d3bf4bb247fd6/example/ios/Runner/AppDelegate.swift#L18) layer.
* Add a custom [URL scheme](https://developer.apple.com/documentation/xcode/defining-a-custom-url-scheme-for-your-app) that matches the returnUrl you use.


## Integration

Expand Down
2 changes: 1 addition & 1 deletion example/ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<string>com.adyen.adyen_checkout_example</string>
<key>CFBundleURLSchemes</key>
<array>
<string>flutter-ui-host</string>
<string>adyencheckout</string>
</array>
</dict>
</array>
Expand Down
2 changes: 1 addition & 1 deletion example/lib/config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Config {
static const Environment environment = Environment.test;
static const String baseUrl = "checkout-test.adyen.com";
static const String apiVersion = "v71";
static const String iOSReturnUrl = "flutter-ui-host://payments";
static const String iOSReturnUrl = "adyencheckout://com.adyen.adyen_checkout_example";
static const GooglePayEnvironment googlePayEnvironment =
GooglePayEnvironment.test;

Expand Down