From 802f849e64ccb1be0ab7a873ff6fffae4d597253 Mon Sep 17 00:00:00 2001 From: Alexandre Jacinto Date: Wed, 4 Jan 2023 09:46:44 +0000 Subject: [PATCH 1/4] feat: add accessToken parameter to function References: https://outsystemsrd.atlassian.net/browse/RMET-2089 --- www/OSPayments.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/OSPayments.js b/www/OSPayments.js index 32a9187..c4a7f42 100644 --- a/www/OSPayments.js +++ b/www/OSPayments.js @@ -8,6 +8,6 @@ exports.checkWalletSetup = function(success, error) { exec(success, error, 'OSPayments', 'checkWalletSetup'); }; -exports.setDetails = function(paymentDetails, success, error) { - exec(success, error, 'OSPayments', 'setDetails', [paymentDetails]); +exports.setDetails = function(paymentDetails, accessToken, success, error) { + exec(success, error, 'OSPayments', 'setDetails', [paymentDetails, accessToken]); } \ No newline at end of file From 128abba990a7cce64f7edb0d044ba7ab48a60040 Mon Sep 17 00:00:00 2001 From: Alexandre Jacinto Date: Wed, 4 Jan 2023 12:56:23 +0000 Subject: [PATCH 2/4] feat: include new argument for accessToken References: https://outsystemsrd.atlassian.net/browse/RMET-2089 --- src/android/com/outsystems/payments/OSPayments.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/android/com/outsystems/payments/OSPayments.kt b/src/android/com/outsystems/payments/OSPayments.kt index 5f9dbda..a4a812d 100644 --- a/src/android/com/outsystems/payments/OSPayments.kt +++ b/src/android/com/outsystems/payments/OSPayments.kt @@ -100,7 +100,7 @@ class OSPayments : CordovaImplementation() { paymentDetails = buildPaymentDetails(args) if(paymentDetails != null){ - paymentsController.setDetailsAndTriggerPayment(getActivity(), paymentDetails!!) + paymentsController.setDetailsAndTriggerPayment(getActivity(), paymentDetails!!, args.getString(1)) } else{ sendPluginResult(null, Pair(formatErrorCode(OSPMTError.INVALID_PAYMENT_DETAILS.code), OSPMTError.INVALID_PAYMENT_DETAILS.description)) From ced6bf8759aa8dce36b3e0959b06edf439707784 Mon Sep 17 00:00:00 2001 From: Alexandre Jacinto Date: Wed, 4 Jan 2023 12:59:14 +0000 Subject: [PATCH 3/4] chore: update changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9567b9e..56d8171 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ The changes documented here do not include those from the original repository. ## [Unreleased] +## 04-01-2023 +Android - Add extra parameter for accessToken (https://outsystemsrd.atlassian.net/browse/RMET-2089) + ## 28-12-2022 Android - update dependency to PaymentsLib-Android (https://outsystemsrd.atlassian.net/browse/RMET-2120) From ebde7504ddd71afa4fdde7c6ead558750e11e54a Mon Sep 17 00:00:00 2001 From: Alexandre Jacinto Date: Wed, 4 Jan 2023 13:13:10 +0000 Subject: [PATCH 4/4] chore: update payments lib version --- src/android/com/outsystems/payments/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/android/com/outsystems/payments/build.gradle b/src/android/com/outsystems/payments/build.gradle index 74123c1..205803d 100644 --- a/src/android/com/outsystems/payments/build.gradle +++ b/src/android/com/outsystems/payments/build.gradle @@ -29,7 +29,7 @@ apply plugin: 'kotlin-kapt' dependencies { implementation("com.github.outsystems:oscore-android:1.1.0@aar") implementation("com.github.outsystems:oscordova-android:1.1.0@aar") - implementation("com.github.outsystems:ospayments-android:1.0.6@aar") + implementation("com.github.outsystems:ospayments-android:1.0.7@aar") implementation 'com.stripe:stripe-android:20.5.0'