react-native-payengine 2.0.10 → 2.0.12

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/README.md CHANGED
@@ -8,6 +8,27 @@ The new version of the PayEngine React Native SDK is designed to provide develop
8
8
 
9
9
  ### Prerequisites
10
10
 
11
+ #### Add PayEngine Registry to your project
12
+
13
+ ```
14
+ allprojects {
15
+ repositories {
16
+ ...your repositories
17
+
18
+ maven { url 'https://www.jitpack.io' }
19
+ maven {
20
+ name = "pe-maven"
21
+ url = uri("https://maven.payengine.co/payengine")
22
+ credentials {
23
+ username = "<username>"
24
+ password = "<password>"
25
+ }
26
+ }
27
+ }
28
+ }
29
+ ```
30
+ Please contact PayEngine support for username and password
31
+
11
32
  #### Install Package
12
33
 
13
34
  ```bash
@@ -156,7 +177,8 @@ import {
156
177
  PEPaymentRequest,
157
178
  PayEngineNative,
158
179
  PayEngineUtils,
159
- RNPEContactField
180
+ RNPEContactField,
181
+ PayProvider
160
182
  } from 'react-native-payengine';
161
183
  import axios from 'axios';
162
184
 
@@ -167,7 +189,7 @@ const ApplePayScreen = () => {
167
189
  React.useEffect(() => {
168
190
  const checkSupport = async () => {
169
191
  try {
170
- const isSupported = await PayEngineNative.isPlatformPaySupported(
192
+ const isSupported = await PayEngineNative.userCanPay(PayProvider.applePay,
171
193
  MERCHANT_ID
172
194
  );
173
195
  console.log('isSupported', isSupported);
@@ -249,6 +271,7 @@ import {
249
271
  PEGooglePayButton,
250
272
  PEPaymentRequest,
251
273
  PayEngineNative,
274
+ PayProvider
252
275
  } from 'react-native-payengine';
253
276
 
254
277
  const GooglePayScreen = () => {
@@ -258,7 +281,7 @@ const GooglePayScreen = () => {
258
281
  React.useEffect(() => {
259
282
  const checkSupport = async () => {
260
283
  try {
261
- const isSupported = await PayEngineNative.isPlatformPaySupported(
284
+ const isSupported = await PayEngineNative.userCanPay(PayProvider.googlePay,
262
285
  MERCHANT_ID
263
286
  );
264
287
  console.log('isSupported', isSupported);
@@ -158,18 +158,22 @@ dependencies {
158
158
  implementation "com.google.android.material:material:1.6.1"
159
159
 
160
160
  }
161
- implementation("com.google.code.gson:gson:2.11.0")
162
-
163
- implementation "com.google.android.material:material:1.6.1"
164
-
165
- implementation files("./securefields-1.7.2-debug.aar")
166
-
167
- debugImplementation files("./payment-sdk-debug-1.0.4.aar")
168
- releaseImplementation files("./payment-sdk-debug-1.0.4.aar")
169
-
170
- api 'com.github.Kount:kount-android-sdk:v4.3.2'
171
- implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9'
172
- implementation "com.google.android.gms:play-services-wallet:19.2.1"
161
+ // implementation("com.google.code.gson:gson:2.11.0")
162
+ //
163
+ // implementation "com.google.android.material:material:1.6.1"
164
+ //
165
+ // implementation files("./securefields-1.7.2-debug.aar")
166
+ //
167
+ // debugImplementation files("./payment-sdk-debug-1.0.4.aar")
168
+ // releaseImplementation files("./payment-sdk-debug-1.0.4.aar")
169
+ //
170
+ // api 'com.github.Kount:kount-android-sdk:v4.3.2'
171
+ // implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9'
172
+ // implementation "com.google.android.gms:play-services-wallet:19.2.1"
173
+
174
+ debugApi("com.payengine.sdk:payment-sdk-release:1.0.5-beta-6")
175
+ releaseApi("com.payengine.sdk:payment-sdk-release:1.0.5-beta-6")
176
+ implementation("com.google.android.gms:play-services-wallet:19.2.1")
173
177
 
174
178
  // From node_modules
175
179
  }
@@ -9,9 +9,8 @@ import com.facebook.react.modules.core.DeviceEventManagerModule.RCTDeviceEventEm
9
9
  import com.facebook.react.uimanager.ThemedReactContext
10
10
  import com.google.gson.Gson
11
11
  import com.payengine.paymentsdk.features.googlepay.PEGooglePayDelegate
12
- import com.payengine.paymentsdk.features.googlepay.PEGooglePayStatus
13
- import com.payengine.paymentsdk.features.googlepay.nmi.GooglePayPaymentRequest
14
- import com.payengine.paymentsdk.features.googlepay.payengine.PEAddress
12
+ import com.payengine.paymentsdk.models.GooglePayPaymentRequest
13
+ import com.payengine.paymentsdk.models.PEAddress
15
14
  import com.reactnativepayengine.v2.RNPayEngineNative
16
15
  import com.reactnativepayengine.v2.securefields.RNPEEvents
17
16
 
@@ -1,6 +1,6 @@
1
1
  package com.reactnativepayengine.v2.features.googlepay
2
2
 
3
- import com.payengine.paymentsdk.features.googlepay.nmi.GooglePayPaymentRequest
3
+ import com.payengine.paymentsdk.models.GooglePayPaymentRequest
4
4
  import org.json.JSONObject
5
5
 
6
6
  data class RNPEPaymentItem(
@@ -8,7 +8,7 @@ import com.facebook.react.bridge.ReadableMap
8
8
  import com.facebook.react.modules.core.DeviceEventManagerModule.RCTDeviceEventEmitter
9
9
  import com.facebook.react.uimanager.ThemedReactContext
10
10
  import com.payengine.paymentsdk.components.PEBankAccountView
11
- import com.payengine.paymentsdk.components.PESizeChangeListener
11
+ import com.payengine.paymentsdk.models.interfaces.PESizeChangeListener
12
12
  import com.payengine.paymentsdk.models.responses.BankAccountResponse
13
13
  import com.reactnativepayengine.util.MetricsUtil
14
14
  import com.reactnativepayengine.v2.RNPayEngineNative
@@ -8,7 +8,7 @@ import com.facebook.react.bridge.ReadableMap
8
8
  import com.facebook.react.modules.core.DeviceEventManagerModule.RCTDeviceEventEmitter
9
9
  import com.facebook.react.uimanager.ThemedReactContext
10
10
  import com.payengine.paymentsdk.components.PEPaymentView
11
- import com.payengine.paymentsdk.components.PESizeChangeListener
11
+ import com.payengine.paymentsdk.models.interfaces.PESizeChangeListener
12
12
  import com.payengine.paymentsdk.models.responses.CardResponse
13
13
  import com.reactnativepayengine.util.MetricsUtil
14
14
  import com.reactnativepayengine.v2.RNPayEngineNative
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-payengine",
3
- "version": "2.0.10",
3
+ "version": "2.0.12",
4
4
  "description": "PayEngine SDK for React Native",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
Binary file