@rnw-community/react-native-payments 0.81.0 → 0.82.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/ios/Payments.mm +9 -9
- package/package.json +3 -3
package/ios/Payments.mm
CHANGED
|
@@ -79,7 +79,7 @@ RCT_EXPORT_METHOD(show:(NSString *)methodDataString
|
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
|
|
82
|
+
|
|
83
83
|
NSMutableArray *requiredShippingContactFields = [NSMutableArray array];
|
|
84
84
|
for (NSString *requiredShippingContactField in methodData[@"requiredShippingContactFields"]) {
|
|
85
85
|
PKContactField contactField = [self contactFieldFromString:requiredShippingContactField];
|
|
@@ -90,7 +90,7 @@ RCT_EXPORT_METHOD(show:(NSString *)methodDataString
|
|
|
90
90
|
return;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
|
|
93
|
+
|
|
94
94
|
|
|
95
95
|
// https://developer.apple.com/documentation/passkit/pkpaymentrequest/1619257-merchantcapabilities?language=objc
|
|
96
96
|
NSArray *merchantCapabilitiesArray = methodData[@"merchantCapabilities"];
|
|
@@ -231,7 +231,7 @@ RCT_EXPORT_METHOD(canMakePayments: (NSString *)methodDataString
|
|
|
231
231
|
postalAddressDict[@"state"] = postalAddress.state;
|
|
232
232
|
postalAddressDict[@"postalCode"] = postalAddress.postalCode;
|
|
233
233
|
postalAddressDict[@"country"] = postalAddress.country;
|
|
234
|
-
postalAddressDict[@"
|
|
234
|
+
postalAddressDict[@"ISOCountryCode"] = postalAddress.ISOCountryCode;
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
billingContactDict[@"postalAddress"] = postalAddressDict;
|
|
@@ -257,7 +257,7 @@ RCT_EXPORT_METHOD(canMakePayments: (NSString *)methodDataString
|
|
|
257
257
|
postalAddressDict[@"state"] = postalAddress.state;
|
|
258
258
|
postalAddressDict[@"postalCode"] = postalAddress.postalCode;
|
|
259
259
|
postalAddressDict[@"country"] = postalAddress.country;
|
|
260
|
-
postalAddressDict[@"
|
|
260
|
+
postalAddressDict[@"ISOCountryCode"] = postalAddress.ISOCountryCode;
|
|
261
261
|
}
|
|
262
262
|
shippingContactDict[@"postalAddress"] = postalAddressDict;
|
|
263
263
|
|
|
@@ -344,26 +344,26 @@ RCT_EXPORT_METHOD(canMakePayments: (NSString *)methodDataString
|
|
|
344
344
|
@"PKPaymentNetworkElectron": PKPaymentNetworkElectron,
|
|
345
345
|
@"PKPaymentNetworkElo": PKPaymentNetworkElo
|
|
346
346
|
};
|
|
347
|
-
|
|
347
|
+
|
|
348
348
|
if (@available(iOS 16.0, *)) {
|
|
349
349
|
NSMutableDictionary *mutablePaymentNetworks = [paymentNetworks mutableCopy];
|
|
350
350
|
mutablePaymentNetworks[@"PKPaymentNetworkBancontact"] = PKPaymentNetworkBancontact;
|
|
351
351
|
paymentNetworks = [mutablePaymentNetworks copy];
|
|
352
352
|
}
|
|
353
|
-
|
|
353
|
+
|
|
354
354
|
if (@available(iOS 15.1, *)) {
|
|
355
355
|
NSMutableDictionary *mutablePaymentNetworks = [paymentNetworks mutableCopy];
|
|
356
356
|
mutablePaymentNetworks[@"PKPaymentNetworkDankort"] = PKPaymentNetworkDankort;
|
|
357
357
|
paymentNetworks = [mutablePaymentNetworks copy];
|
|
358
358
|
}
|
|
359
|
-
|
|
359
|
+
|
|
360
360
|
if (@available(iOS 14.5, *)) {
|
|
361
361
|
NSMutableDictionary *mutablePaymentNetworks = [paymentNetworks mutableCopy];
|
|
362
362
|
// HINT: You should never work
|
|
363
363
|
mutablePaymentNetworks[@"PKPaymentNetworkMIR"] = PKPaymentNetworkMir;
|
|
364
364
|
paymentNetworks = [mutablePaymentNetworks copy];
|
|
365
365
|
}
|
|
366
|
-
|
|
366
|
+
|
|
367
367
|
if (@available(iOS 14.0, *)) {
|
|
368
368
|
NSMutableDictionary *mutablePaymentNetworks = [paymentNetworks mutableCopy];
|
|
369
369
|
mutablePaymentNetworks[@"PKPaymentNetworkGirocard"] = PKPaymentNetworkGirocard;
|
|
@@ -409,7 +409,7 @@ RCT_EXPORT_METHOD(canMakePayments: (NSString *)methodDataString
|
|
|
409
409
|
};
|
|
410
410
|
|
|
411
411
|
PKContactField field = contactFieldMapping[inputString];
|
|
412
|
-
|
|
412
|
+
|
|
413
413
|
return field;
|
|
414
414
|
}
|
|
415
415
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rnw-community/react-native-payments",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.82.0",
|
|
4
4
|
"description": "React Native Payments",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -79,10 +79,10 @@
|
|
|
79
79
|
"build:android": "cd example/android && ./gradlew assembleDebug --no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a",
|
|
80
80
|
"build:ios": "cd example/ios && xcodebuild -workspace PaymentsExample.xcworkspace -scheme PaymentsExample -configuration Debug -sdk iphonesimulator CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "1be4a4d3d594e3f517543c357f6f0ef59a8ac510",
|
|
83
83
|
"dependencies": {
|
|
84
84
|
"@expo/config-plugins": "8.0.10",
|
|
85
|
-
"@rnw-community/shared": "0.
|
|
85
|
+
"@rnw-community/shared": "0.82.0",
|
|
86
86
|
"react-native-uuid": "^2.0.1",
|
|
87
87
|
"validator": "^13.9.0"
|
|
88
88
|
},
|