react-native-hyperpay-sdk 0.32.0 → 0.33.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.
- package/android/.gradle/7.4.2/checksums/checksums.lock +0 -0
- package/android/.gradle/7.4.2/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/7.4.2/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/7.4.2/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.4.2/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.4.2/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.4.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.4.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.4.2/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/src/main/java/com/reactnativehyperpay/HyperPayModule.java +8 -0
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
File without changes
|
|
@@ -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);
|