react-native-payengine 2.0.10 → 2.0.11
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 +5 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -156,7 +156,8 @@ import {
|
|
|
156
156
|
PEPaymentRequest,
|
|
157
157
|
PayEngineNative,
|
|
158
158
|
PayEngineUtils,
|
|
159
|
-
RNPEContactField
|
|
159
|
+
RNPEContactField,
|
|
160
|
+
PayProvider
|
|
160
161
|
} from 'react-native-payengine';
|
|
161
162
|
import axios from 'axios';
|
|
162
163
|
|
|
@@ -167,7 +168,7 @@ const ApplePayScreen = () => {
|
|
|
167
168
|
React.useEffect(() => {
|
|
168
169
|
const checkSupport = async () => {
|
|
169
170
|
try {
|
|
170
|
-
const isSupported = await PayEngineNative.
|
|
171
|
+
const isSupported = await PayEngineNative.userCanPay(PayProvider.applePay,
|
|
171
172
|
MERCHANT_ID
|
|
172
173
|
);
|
|
173
174
|
console.log('isSupported', isSupported);
|
|
@@ -249,6 +250,7 @@ import {
|
|
|
249
250
|
PEGooglePayButton,
|
|
250
251
|
PEPaymentRequest,
|
|
251
252
|
PayEngineNative,
|
|
253
|
+
PayProvider
|
|
252
254
|
} from 'react-native-payengine';
|
|
253
255
|
|
|
254
256
|
const GooglePayScreen = () => {
|
|
@@ -258,7 +260,7 @@ const GooglePayScreen = () => {
|
|
|
258
260
|
React.useEffect(() => {
|
|
259
261
|
const checkSupport = async () => {
|
|
260
262
|
try {
|
|
261
|
-
const isSupported = await PayEngineNative.
|
|
263
|
+
const isSupported = await PayEngineNative.userCanPay(PayProvider.googlePay,
|
|
262
264
|
MERCHANT_ID
|
|
263
265
|
);
|
|
264
266
|
console.log('isSupported', isSupported);
|