judokit-react-native 3.4.6 → 3.4.7
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.
|
@@ -435,9 +435,25 @@ static NSString *const kCardSchemeAMEX = @"amex";
|
|
|
435
435
|
result = @1;
|
|
436
436
|
}
|
|
437
437
|
|
|
438
|
+
NSNumber *type = @0;
|
|
439
|
+
|
|
440
|
+
switch (response.type) {
|
|
441
|
+
case JPTransactionTypePreAuth:
|
|
442
|
+
type = @1;
|
|
443
|
+
break;
|
|
444
|
+
case JPTransactionTypeCheckCard:
|
|
445
|
+
type = @3;
|
|
446
|
+
break;
|
|
447
|
+
case JPTransactionTypeSaveCard:
|
|
448
|
+
type = @4;
|
|
449
|
+
break;
|
|
450
|
+
default:
|
|
451
|
+
break;
|
|
452
|
+
}
|
|
453
|
+
|
|
438
454
|
[mappedResponse setValue:response.receiptId forKey:@"receiptId"];
|
|
439
455
|
[mappedResponse setValue:response.paymentReference forKey:@"yourPaymentReference"];
|
|
440
|
-
[mappedResponse setValue
|
|
456
|
+
[mappedResponse setValue:type forKey:@"type"];
|
|
441
457
|
[mappedResponse setValue:response.createdAt forKey:@"createdAt"];
|
|
442
458
|
[mappedResponse setValue:result forKey:@"result"];
|
|
443
459
|
[mappedResponse setValue:response.message forKey:@"message"];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "judokit-react-native",
|
|
3
3
|
"title": "Judopay React Native Module",
|
|
4
|
-
"version": "3.4.
|
|
4
|
+
"version": "3.4.7",
|
|
5
5
|
"description": "A React Native module for the Judopay native SDKs to take payments on iOS and Android.",
|
|
6
6
|
"main": "JudoPay.tsx",
|
|
7
7
|
"scripts": {
|