Skip to content

Commit

Permalink
RMET-2120 Payments Plugin - Update dependency to Payments Lib (#21)
Browse files Browse the repository at this point in the history
* chore: update dependency to payments lib

* refactor: remove parameter from call

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

* chore: update changelog
  • Loading branch information
alexgerardojacinto authored and OS-ricardomoreirasilva committed Apr 10, 2024
1 parent cb9a3cf commit 76a76ec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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]

## 28-12-2022
Android - update dependency to PaymentsLib-Android (https://outsystemsrd.atlassian.net/browse/RMET-2120)

## 16-12-2022
Android - remove dependency to jcenter (https://outsystemsrd.atlassian.net/browse/RMET-2036)

Expand Down
5 changes: 1 addition & 4 deletions src/android/com/outsystems/payments/OSPayments.kt
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,7 @@ class OSPayments : CordovaImplementation() {
paymentDetails = buildPaymentDetails(args)

if(paymentDetails != null){
paymentsController.setDetailsAndTriggerPayment(getActivity(), paymentDetails!!
) {
sendPluginResult(null, Pair(formatErrorCode(it.code), it.description))
}
paymentsController.setDetailsAndTriggerPayment(getActivity(), paymentDetails!!)
}
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.3@aar")
implementation("com.github.outsystems:ospayments-android:1.0.6@aar")

implementation 'com.stripe:stripe-android:20.5.0'

Expand Down

0 comments on commit 76a76ec

Please sign in to comment.