Skip to content

Commit

Permalink
RMET-2089 Payments Plugin - Add access token to backend endpoint call (
Browse files Browse the repository at this point in the history
…#22)

* feat: add accessToken parameter to function

References: https://outsystemsrd.atlassian.net/browse/RMET-2089

* feat: include new argument for accessToken

References: https://outsystemsrd.atlassian.net/browse/RMET-2089

* chore: update changelog

* chore: update payments lib version
  • Loading branch information
alexgerardojacinto authored and OS-ricardomoreirasilva committed Apr 10, 2024
1 parent 76a76ec commit 8d82244
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion src/android/com/outsystems/payments/OSPayments.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion src/android/com/outsystems/payments/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit 8d82244

Please sign in to comment.