react-native-hyperpay-sdk 0.32.0 → 0.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
File without changes
@@ -0,0 +1,2 @@
1
+ #Sun Jan 22 19:00:03 EET 2023
2
+ gradle.version=7.4.2
File without changes
@@ -56,12 +56,12 @@ repositories {
56
56
  dependencies {
57
57
 
58
58
  if (project.gradle.startParameter.taskNames.any { it.toLowerCase().contains('release') }) {
59
- compileOnly files('libs/ipworks3ds_sdk_deploy.aar')
59
+ implementation files('libs/ipworks3ds_sdk_deploy.aar')
60
60
  }
61
61
  else {
62
- compileOnly files('libs/ipworks3ds_sdk.aar')
62
+ implementation files('libs/ipworks3ds_sdk.aar')
63
63
  }
64
- compileOnly files('libs/oppwa.mobile-4.9.0-release.aar')
64
+ implementation files('libs/oppwa.mobile-4.9.0-release.aar')
65
65
  implementation "androidx.appcompat:appcompat:1.4.2"
66
66
  implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
67
67
  implementation "androidx.browser:browser:1.4.0"
@@ -1,5 +1,6 @@
1
1
  package com.reactnativehyperpay;
2
2
 
3
+ import android.app.Activity;
3
4
  import android.content.Context;
4
5
  import android.util.Log;
5
6
  import androidx.annotation.NonNull;
@@ -22,6 +23,7 @@ import com.oppwa.mobile.connect.payment.card.CardPaymentParams;
22
23
  import com.oppwa.mobile.connect.provider.Connect;
23
24
  import com.oppwa.mobile.connect.provider.ITransactionListener;
24
25
  import com.oppwa.mobile.connect.provider.OppPaymentProvider;
26
+ import com.oppwa.mobile.connect.provider.ThreeDSWorkflowListener;
25
27
  import com.oppwa.mobile.connect.provider.Transaction;
26
28
  import com.oppwa.mobile.connect.provider.TransactionType;
27
29
 
@@ -87,6 +89,12 @@ public class HyperPayModule extends ReactContextBaseJavaModule implements ITrans
87
89
 
88
90
  try {
89
91
  OppPaymentProvider paymentProvider = new OppPaymentProvider(appContext, Connect.ProviderMode.TEST);
92
+ paymentProvider.setThreeDSWorkflowListener(new ThreeDSWorkflowListener() {
93
+ @Override
94
+ public Activity onThreeDSChallengeRequired() {
95
+ return getCurrentActivity();
96
+ }
97
+ });
90
98
 
91
99
  if (mode.equals("LiveMode")) {
92
100
  paymentProvider.setProviderMode(Connect.ProviderMode.LIVE);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-hyperpay-sdk",
3
- "version": "0.32.0",
3
+ "version": "0.34.0",
4
4
  "description": "hyperpay",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",