diff --git a/MiA-SDK-License.md b/MiA-SDK-License.md index ab7c566..3e055c2 100644 --- a/MiA-SDK-License.md +++ b/MiA-SDK-License.md @@ -14,6 +14,6 @@ Permission is hereby granted, to any person obtaining a copy of this software an The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -Software may only be used for commercial or production purpose together with Easy services (as per https://developers.nets.eu/nets-easy/en-EU/docs) provided from NETS, its subsidiaries or affiliates under common control. +Software may only be used for commercial or production purpose together with Nets Easy services (as per https://developers.nets.eu/nets-easy/en-EU/docs) provided from NETS, its subsidiaries or affiliates under common control. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/MiaSample/app/build.gradle b/MiaSample/app/build.gradle index a30b226..1aef099 100644 --- a/MiaSample/app/build.gradle +++ b/MiaSample/app/build.gradle @@ -66,7 +66,7 @@ dependencies { implementation 'com.squareup.retrofit2:converter-gson:2.4.0' implementation 'org.nanohttpd:nanohttpd:2.3.1' - implementation('eu.nets.mia:mia-sdk:1.5.0@aar') { transitive = true; changing=true; } + implementation('eu.nets.mia:mia-sdk:1.6.0@aar') { transitive = true; changing=true; } } apply plugin: 'com.google.gms.google-services' diff --git a/MiaSample/app/gradle.properties b/MiaSample/app/gradle.properties index 4fd10c5..3288c52 100644 --- a/MiaSample/app/gradle.properties +++ b/MiaSample/app/gradle.properties @@ -1,18 +1,14 @@ -#Mon Aug 16 12:23:51 EEST 2021 -VERSION_NAME=1.5.0 -VERSION_CODE=36 - +#Fri Nov 05 07:32:09 EET 2021 PROD_BASE_URL="https\://api.dibspayment.eu/" -TEST_BASE_URL="https\://test.api.dibspayment.eu/" -PRE_PROD_BASE_URL="https\://pp-api.dibspayment.eu/" - +TEST_CHECKOUT_JS="https\://test.checkout.dibspayment.eu/v1/checkout.js?v\=1" +VERSION_NAME=1.6.0 +VERSION_CODE=38 +PRE_PROD_SECRET_KEY = "YOUR PRE PROD SECRET KEY HERE" PROD_CHECKOUT_KEY ="YOUR PROD CHECKOUT KEY HERE" +PRE_PROD_BASE_URL="https\://pp-api.dibspayment.eu/" TEST_CHECKOUT_KEY ="YOUR TEST CHECKOUT KEY HERE" PRE_PROD_CHECKOUT_KEY = "YOUR PRE PROD CHECKOUT KEY HERE" - PROD_CHECKOUT_JS="https\://checkout.dibspayment.eu/v1/checkout.js?v\=1" -TEST_CHECKOUT_JS="https\://test.checkout.dibspayment.eu/v1/checkout.js?v\=1" - -PROD_SECRET_KEY ="YOUR PROD SECRET KEY HERE" TEST_SECRET_KEY = "YOUR TEST SECRET KEY HERE" -PRE_PROD_SECRET_KEY = "YOUR PRE PROD SECRET KEY HERE" +TEST_BASE_URL="https\://test.api.dibspayment.eu/" +PROD_SECRET_KEY ="YOUR PROD SECRET KEY HERE" diff --git a/MiaSample/app/src/main/res/mipmap-hdpi/ic_launcher.png b/MiaSample/app/src/main/res/mipmap-hdpi/ic_launcher.png index 243984d..c699822 100644 Binary files a/MiaSample/app/src/main/res/mipmap-hdpi/ic_launcher.png and b/MiaSample/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/MiaSample/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/MiaSample/app/src/main/res/mipmap-hdpi/ic_launcher_round.png index 1295450..593de9c 100644 Binary files a/MiaSample/app/src/main/res/mipmap-hdpi/ic_launcher_round.png and b/MiaSample/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/MiaSample/app/src/main/res/mipmap-mdpi/ic_launcher.png b/MiaSample/app/src/main/res/mipmap-mdpi/ic_launcher.png index a1ab1b5..5c438d2 100644 Binary files a/MiaSample/app/src/main/res/mipmap-mdpi/ic_launcher.png and b/MiaSample/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/MiaSample/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/MiaSample/app/src/main/res/mipmap-mdpi/ic_launcher_round.png index d7ab1ff..a83efd5 100644 Binary files a/MiaSample/app/src/main/res/mipmap-mdpi/ic_launcher_round.png and b/MiaSample/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/MiaSample/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/MiaSample/app/src/main/res/mipmap-xhdpi/ic_launcher.png index 9c8683d..1bd0271 100644 Binary files a/MiaSample/app/src/main/res/mipmap-xhdpi/ic_launcher.png and b/MiaSample/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/MiaSample/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/MiaSample/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png index a242083..83b4b3a 100644 Binary files a/MiaSample/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png and b/MiaSample/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/MiaSample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/MiaSample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png index 8542a00..e479a02 100644 Binary files a/MiaSample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and b/MiaSample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/MiaSample/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/MiaSample/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png index da75553..7ec41c5 100644 Binary files a/MiaSample/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png and b/MiaSample/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/MiaSample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/MiaSample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png index 2a479a9..8470bdd 100644 Binary files a/MiaSample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and b/MiaSample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/MiaSample/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/MiaSample/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png index af83e5e..d282b14 100644 Binary files a/MiaSample/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png and b/MiaSample/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/README.md b/README.md index 730f5a7..d5afe91 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,15 @@ -# Easy - Android SDK v1.5.0 +# Nets Easy - Android SDK v1.6.0 ---- ![Logo](readme-files/NetsLogo.jpg) -MiA Easy Android SDK is a library which facilitates the Embedded DIBS Easy Checkout integration in your Android application +MiA Nets Easy Android SDK is a library which facilitates the Embedded DIBS Easy Checkout integration in your Android application + +Detailed documentation can be found +[here](https://htmlpreview.github.io/?https://github.com/Nets-eCom/Nets-Easy-Android-SDK/blob/master/documentation/Start%20-%20Overview%20of%20MiA%20Android%20SDK.html). + **Nets Easy** technical documentation can be found [here](https://developers.nets.eu/nets-easy/en-EU/docs/web-integration/integrate-easy-checkout-on-your-website-embedded/) + **Nets Easy API documentation** can be found [here](https://developers.nets.eu/nets-easy/en-EU/api) -+ **Easy - iOS SDK** can also be found [here](https://github.com/nets-ecom/Easy-iOS-SDK) ++ **Nets Easy - iOS SDK** can also be found [here](https://github.com/Nets-eCom/Nets-Easy-iOS-SDK) | ![](readme-files/pay_with_saved_card.gif) | @@ -17,7 +20,7 @@ MiA Easy Android SDK is a library which facilitates the Embedded DIBS Easy Check ---- In your `build.gradle` application level file, add: ```gradle -implementation('eu.nets.mia:mia-sdk:1.5.0') { transitive = true;} +implementation('eu.nets.mia:mia-sdk:1.6.0') { transitive = true;} ``` **Note:** the library is available through both `jcenter()` and `mavenCentral()` repositories. @@ -41,14 +44,14 @@ These permissions are handled inside the binary, and your integration won't requ ![](readme-files/sample_screenshots.jpg) We have provided a [Sample Application](MiaSample/) to help you understand the use cases of the SDK functionalities. All you need to do is checkout the project and run it. Check our [Overview Documentation](documentation/) for best-practices to keep in mind when you build your integration. -# High level architecture of the Easy SDK +# High level architecture of the Nets Easy SDK --- The below picture illustrates the SDK and its interactions with the macro components of the integration's environment. ![](readme-files/mia_macro_elements.png) # Usage ---- -Assuming you have already created your backend integration towards `Easy Payment APIs`, the SDK can be launched by simply calling: +Assuming you have already created your backend integration towards `Nets Easy Payment APIs`, the SDK can be launched by simply calling: ```kotlin /** * diff --git a/ReactNative/MiaSample/ios/Mia.framework/Assets.car b/ReactNative/MiaSample/ios/Mia.framework/Assets.car old mode 100755 new mode 100644 diff --git a/ReactNative/MiaSample/ios/Mia.framework/Headers/Mia.h b/ReactNative/MiaSample/ios/Mia.framework/Headers/Mia.h old mode 100755 new mode 100644 diff --git a/ReactNative/MiaSample/ios/Mia.framework/Headers/MiaCheckoutController.h b/ReactNative/MiaSample/ios/Mia.framework/Headers/MiaCheckoutController.h old mode 100755 new mode 100644 diff --git a/ReactNative/MiaSample/ios/Mia.framework/Headers/MiaSDK.h b/ReactNative/MiaSample/ios/Mia.framework/Headers/MiaSDK.h old mode 100755 new mode 100644 diff --git a/ReactNative/MiaSample/ios/Mia.framework/Info.plist b/ReactNative/MiaSample/ios/Mia.framework/Info.plist old mode 100755 new mode 100644 diff --git a/ReactNative/MiaSample/ios/Mia.framework/MIAMain.storyboardc/I7P-HK-2Dp-view-7yP-id-rFz.nib/objects-11.0+.nib b/ReactNative/MiaSample/ios/Mia.framework/MIAMain.storyboardc/I7P-HK-2Dp-view-7yP-id-rFz.nib/objects-11.0+.nib old mode 100755 new mode 100644 diff --git a/ReactNative/MiaSample/ios/Mia.framework/MIAMain.storyboardc/I7P-HK-2Dp-view-7yP-id-rFz.nib/runtime.nib b/ReactNative/MiaSample/ios/Mia.framework/MIAMain.storyboardc/I7P-HK-2Dp-view-7yP-id-rFz.nib/runtime.nib old mode 100755 new mode 100644 diff --git a/ReactNative/MiaSample/ios/Mia.framework/MIAMain.storyboardc/Info.plist b/ReactNative/MiaSample/ios/Mia.framework/MIAMain.storyboardc/Info.plist old mode 100755 new mode 100644 diff --git a/ReactNative/MiaSample/ios/Mia.framework/MIAMain.storyboardc/MIACheckoutController.nib/objects-11.0+.nib b/ReactNative/MiaSample/ios/Mia.framework/MIAMain.storyboardc/MIACheckoutController.nib/objects-11.0+.nib old mode 100755 new mode 100644 diff --git a/ReactNative/MiaSample/ios/Mia.framework/MIAMain.storyboardc/MIACheckoutController.nib/runtime.nib b/ReactNative/MiaSample/ios/Mia.framework/MIAMain.storyboardc/MIACheckoutController.nib/runtime.nib old mode 100755 new mode 100644 diff --git a/ReactNative/MiaSample/ios/Mia.framework/MIAMain.storyboardc/MIALoader.nib/objects-11.0+.nib b/ReactNative/MiaSample/ios/Mia.framework/MIAMain.storyboardc/MIALoader.nib/objects-11.0+.nib old mode 100755 new mode 100644 diff --git a/ReactNative/MiaSample/ios/Mia.framework/MIAMain.storyboardc/MIALoader.nib/runtime.nib b/ReactNative/MiaSample/ios/Mia.framework/MIAMain.storyboardc/MIALoader.nib/runtime.nib old mode 100755 new mode 100644 diff --git a/ReactNative/MiaSample/ios/Mia.framework/MIAMain.storyboardc/MiaSDK.nib/objects-11.0+.nib b/ReactNative/MiaSample/ios/Mia.framework/MIAMain.storyboardc/MiaSDK.nib/objects-11.0+.nib old mode 100755 new mode 100644 diff --git a/ReactNative/MiaSample/ios/Mia.framework/MIAMain.storyboardc/MiaSDK.nib/runtime.nib b/ReactNative/MiaSample/ios/Mia.framework/MIAMain.storyboardc/MiaSDK.nib/runtime.nib old mode 100755 new mode 100644 diff --git a/ReactNative/MiaSample/ios/Mia.framework/MIAMain.storyboardc/eNi-kD-5Au-view-3Iq-uj-DGA.nib/objects-11.0+.nib b/ReactNative/MiaSample/ios/Mia.framework/MIAMain.storyboardc/eNi-kD-5Au-view-3Iq-uj-DGA.nib/objects-11.0+.nib old mode 100755 new mode 100644 diff --git a/ReactNative/MiaSample/ios/Mia.framework/MIAMain.storyboardc/eNi-kD-5Au-view-3Iq-uj-DGA.nib/runtime.nib b/ReactNative/MiaSample/ios/Mia.framework/MIAMain.storyboardc/eNi-kD-5Au-view-3Iq-uj-DGA.nib/runtime.nib old mode 100755 new mode 100644 diff --git a/ReactNative/MiaSample/ios/Mia.framework/Modules/module.modulemap b/ReactNative/MiaSample/ios/Mia.framework/Modules/module.modulemap old mode 100755 new mode 100644 diff --git a/ReactNative/MiaSample/ios/Mia.framework/PrivateHeaders/MIAPaymentInfo.h b/ReactNative/MiaSample/ios/Mia.framework/PrivateHeaders/MIAPaymentInfo.h old mode 100755 new mode 100644 diff --git a/ReactNative/MiaSample/ios/Mia.xcframework/ios-arm64_armv7_armv7s/Mia.framework/Mia b/ReactNative/MiaSample/ios/Mia.xcframework/ios-arm64_armv7_armv7s/Mia.framework/Mia old mode 100644 new mode 100755 diff --git a/ReactNative/MiaSample/ios/Mia.xcframework/ios-arm64_i386_x86_64-simulator/Mia.framework/Mia b/ReactNative/MiaSample/ios/Mia.xcframework/ios-arm64_i386_x86_64-simulator/Mia.framework/Mia old mode 100644 new mode 100755 diff --git a/ReactNative/README.md b/ReactNative/README.md index 5ab85ee..3dd8781 100644 --- a/ReactNative/README.md +++ b/ReactNative/README.md @@ -6,7 +6,7 @@ This is a repository containing the react native wrapper for Mia iOS and Android - [Integration](#integration) - [Usage (Access Mia API)](#usage-(access-mia-api)) - [Mia Checkout API](#mia-checkout-api) -- [Example (Create Payment with EASY)](#example-(create-payment-with-easy)) +- [Example (Create Payment with Nets Easy)](#example-(create-payment-with-nets-easy)) ## Sample App @@ -36,7 +36,7 @@ In order to integrate this module in your project: This links the module in Android and iOS automatically. -In iOS, the `Mia.xcframework` supported starting *MiaSDK 1.3* allows for auto-linking using Xcode 12.3 and above version. If an older version of the SDK is used (MiA - EASY Android SDK v1.4.1 -

+

MiA - Nets Easy Android SDK v1.6.0

+

Start - Overview of MiA Android SDK.html -

MiA - Android SDK is a library which facilitates the integration of the Easy Checkout in your Android application.

+

MiA - Android SDK is a library which facilitates the integration of the Nets Easy Checkout in your Android application.

Additional resources:

  • Nets Easy technical documentation can be found here.
  • Nets Easy API documentation can be found here.
  • -
  • Easy - iOS SDK can be found here.
  • +
  • Nets Easy - iOS SDK can be found here.

  • Requirements:
    Minimum compatible Android API version is 21 - Android 5.0 Lollipop. @@ -33,11 +33,11 @@

    Terminology

    @@ -55,13 +55,13 @@

    Terminology

    Introduction


    -The Easy checkout provides a one-click checkout that handles payment methods, consumers shipping information, and stores this in a safe and secure manner. We have optimized the checkout to convert visitors to consumers by reducing the actions a potential buyer must do before completing a purchase. +The Nets Easy checkout provides a one-click checkout that handles payment methods, consumers shipping information, and stores this in a safe and secure manner. We have optimized the checkout to convert visitors to consumers by reducing the actions a potential buyer must do before completing a purchase.
    The checkout offers everything through one integration – get access to payment methods, consumers information and their stored payment methods through one fast integration.

    Consider the next sequence diagram to understand the flow for integration in mobile apps:

    -

    +

    @@ -71,36 +71,36 @@

    Installation

  • Please add the following line in your application's build.gradle file.
  • dependencies {
    -	implementation('eu.nets.mia:mia-sdk:1.5.0') { transitive = true;}
    +	implementation('eu.nets.mia:mia-sdk:1.6.0') { transitive = true;}
     

    Getting started


    An integration towards Nets Easy requires having the paymentId(transactionID) created before the checkout is initialized. Your mobile application can use one of the available integration types, based on your business requirements:

      -
    1. Easy Hosted Payment Window (recommended): the Easy checkout page is hosted by Easy and will handle all checkout initialization. This is the suggested approach if your business has only mobile commerce integration.
    2. +
    3. Nets Easy Hosted Payment Window (recommended): the Nets Easy checkout page is hosted by Nets Easy and will handle all checkout initialization. This is the suggested approach if your business has only mobile commerce integration.
    4. Merchant Hosted Payment Window (not recommended) : The checkout page will be hosted by you, and also all the checkout initialization and JavaScript callback handling. This approach is not recommended as it can cause issues when paying with mobile wallets such as Swish, Vipps or MobilePay.

    Your application must follow the next flow: