Skip to content

Commit

Permalink
v1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildManager-Nets committed Nov 10, 2021
1 parent c825c6e commit ae7374d
Show file tree
Hide file tree
Showing 59 changed files with 69 additions and 63 deletions.
2 changes: 1 addition & 1 deletion MiA-SDK-License.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion MiaSample/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
20 changes: 8 additions & 12 deletions MiaSample/app/gradle.properties
Original file line number Diff line number Diff line change
@@ -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"
Binary file modified MiaSample/app/src/main/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MiaSample/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MiaSample/app/src/main/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MiaSample/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MiaSample/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MiaSample/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MiaSample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MiaSample/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MiaSample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MiaSample/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -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) |
Expand All @@ -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.
Expand All @@ -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
/**
*
Expand Down
Empty file modified ReactNative/MiaSample/ios/Mia.framework/Assets.car
100755 → 100644
Empty file.
Empty file modified ReactNative/MiaSample/ios/Mia.framework/Headers/Mia.h
100755 → 100644
Empty file.
Empty file.
Empty file modified ReactNative/MiaSample/ios/Mia.framework/Headers/MiaSDK.h
100755 → 100644
Empty file.
Empty file modified ReactNative/MiaSample/ios/Mia.framework/Info.plist
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
14 changes: 7 additions & 7 deletions ReactNative/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 (<MiaSDK 1.3 `Mia.framework`), the following steps are required to complete the *iOS* integration.
In iOS, the `Mia.xcframework` supported starting *MiaSDK 1.6.0* allows for auto-linking using Xcode 12.3 and above version. If an older version of the SDK is used (<MiaSDK 1.6.0 `Mia.framework`), the following steps are required to complete the *iOS* integration.

* iOS manual steps: Open your application xcworkspace and add Mia.framework to the Libraries folder
- Right click on Libraries - Add Files to "Your project" and find Mia.framework in *react-native-rn-mia/ios* directory
Expand All @@ -51,8 +51,8 @@ import RNMia from 'react-native-rn-mia';

### Mia Checkout API

Present Mia checkout after obtaining a payment ID and payment URL from EASY `create payment` REST API.
See the [example](### Example - Create Payment with EASY) to create payment with order and merchant details.
Present Mia checkout after obtaining a payment ID and payment URL from Nets Easy `create payment` REST API.
See the [example](### Example - Create Payment with Nets Easy) to create payment with order and merchant details.

```js
// This example presents Mia SDK's checkout WebView and handles
Expand All @@ -68,15 +68,15 @@ RNMia.checkoutWithPaymentID(paymentID, paymentURL, redirectURL, cancelURL
```

Note: A redirect URL is used to identify navigation from Mia SDK back to the application.
Pass the same `redirectURL` when creating the payment with Easy API and
Pass the same `redirectURL` when creating the payment with Nets Easy API and
when presenting checkout with Mia SDK as shown above.

Callbacks:
- Success: The first callback is invoked with no `error` if payment was successful
- Failure: The first callback returns an `error` map object in case of error. User "Error" key to obtain error message.
- Cancellation: The second callback is invoked if the user cancelled the process. The callback does not contain any argument.

### Example (Create Payment with EASY)
### Example (Create Payment with Nets Easy)

Create the request body:

Expand Down Expand Up @@ -115,7 +115,7 @@ requestBody = {
}
```

Initiate payment using your merchant secret key to authorize with EASY
Initiate payment using your merchant secret key to authorize with Nets Easy

```js
// Test env. is used for this demo
Expand Down
10 changes: 5 additions & 5 deletions ReactNative/react-native-rn-mia/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import RNMia from 'react-native-rn-mia';

### Mia Checkout API

Present Mia checkout after obtaining a payment ID and payment URL from EASY `create payment` REST API.
See the [example](### Example - Create Payment with EASY) to create payment with order and merchant details.
Present Mia checkout after obtaining a payment ID and payment URL from Nets Easy `create payment` REST API.
See the [example](### Example - Create Payment with Nets Easy) to create payment with order and merchant details.

```js
// This example presents Mia SDK's checkout WebView and handles
Expand All @@ -40,15 +40,15 @@ RNMia.checkoutWithPaymentID(paymentID, paymentURL, redirectURL,
```

Note: A redirect URL is used to identify navigation from Mia SDK back to the application.
Pass the same `redirectURL` when creating the payment with Easy API and
Pass the same `redirectURL` when creating the payment with Nets Easy API and
when presenting checkout with Mia SDK as shown above.

Callbacks:
- Success: The first callback is invoked with no `error` if payment was successful
- Failure: The first callback returns an `error` map object in case of error. User "Error" key to obtain error message.
- Cancellation: The second callback is invoked if the user cancelled the process. The callback does not contain any argument.

### Example (Create Payment with EASY)
### Example (Create Payment with Nets Easy)

Create the request body:

Expand Down Expand Up @@ -87,7 +87,7 @@ requestBody = {
}
```

Initiate payment using your merchant secret key to authorize with EASY
Initiate payment using your merchant secret key to authorize with Nets Easy

```js
// Test env. is used for this demo
Expand Down
2 changes: 1 addition & 1 deletion ReactNative/react-native-rn-mia/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ dependencies {
implementation 'com.facebook.react:react-native:+' // From node_modules

// Mia SDK
implementation 'eu.nets.mia:mia-sdk:1.5.0'
implementation 'eu.nets.mia:mia-sdk:1.6.0'
}

def configureReactNativePom(def pom) {
Expand Down
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion ReactNative/react-native-rn-mia/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-native-rn-mia",
"title": "React Native Rn Mia",
"version": "1.2.0",
"version": "1.6.0",
"description": "A react native module that wraps and bridges Mia iOS and Android SDKs",
"main": "index.js",
"scripts": {
Expand Down
Binary file removed Xamarin/DLL Files/MiASDKBinding.dll
Binary file not shown.
Binary file removed apk/mia-sdk-android-release-sample-1.5.0.apk
Binary file not shown.
61 changes: 34 additions & 27 deletions documentation/Start - Overview of MiA Android SDK.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion documentation/eu.nets.mia/-mi-a-s-d-k/-init-.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h1>&lt;init&gt;</h1>
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:</p>
<p>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.</p>
<p>Software may only be used for commercial or production purpose together with
Easy services (as per https://tech.dibspayment.com/easy) provided from NETS, its subsidiaries or affiliates under common control.</p>
Nets Easy services (as per https://developers.nets.eu/nets-easy/en-EU/docs/) provided from NETS, its subsidiaries or affiliates under common control.</p>
<p>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,
Expand Down
2 changes: 1 addition & 1 deletion documentation/eu.nets.mia/-mi-a-s-d-k/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h1>MiASDK</h1>
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:</p>
<p>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.</p>
<p>Software may only be used for commercial or production purpose together with
Easy services (as per https://tech.dibspayment.com/easy) provided from NETS, its subsidiaries or affiliates under common control.</p>
Nets Easy services (as per https://developers.nets.eu/nets-easy/en-EU/docs/) provided from NETS, its subsidiaries or affiliates under common control.</p>
<p>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,
Expand Down
Binary file removed documentation/img/dibs_easy_flow.png
Binary file not shown.
Binary file added documentation/img/dibs_nets_easy_flow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed documentation/readme-files/NetsLogo.jpg
Binary file not shown.
Binary file added documentation/readme-files/NetsLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified documentation/readme-files/mia_macro_elements.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified documentation/readme-files/pay_with_saved_card.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed documentation/readme-files/sample_screenshots.jpg
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed readme-files/NetsLogo.jpg
Binary file not shown.
Binary file added readme-files/NetsLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified readme-files/mia_macro_elements.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified readme-files/pay_with_saved_card.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed readme-files/sample_screenshots.jpg
Binary file not shown.
Binary file added readme-files/sample_screenshots.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ae7374d

Please sign in to comment.