react-native-payengine 2.0.8 → 2.0.10
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 +4 -3
- package/android/build.gradle +2 -2
- package/android/payment-sdk-debug-1.0.4.aar +0 -0
- package/android/payment-sdk-release-1.0.4.aar +0 -0
- package/android/src/main/java/com/reactnativepayengine/v2/RNPayEngineNative.kt +21 -0
- package/android/src/main/java/com/reactnativepayengine/v2/features/googlepay/RNPEGooglePayButton.kt +27 -42
- package/android/src/main/java/com/reactnativepayengine/v2/features/googlepay/RNPEPaymentRequest.kt +12 -0
- package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Headers/PayEngineSDK-Swift.h +2 -1
- package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Info.plist +0 -0
- package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios.abi.json +187 -38
- package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +1 -1
- package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios.private.swiftinterface-e +1 -1
- package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios.swiftinterface +1 -1
- package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios.swiftinterface-e +1 -1
- package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/PayEngineSDK +0 -0
- package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/VGSCollectSDK_VGSCollectSDK.bundle/Assets.car +0 -0
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Headers/PayEngineSDK-Swift.h +4 -2
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Info.plist +0 -0
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +187 -38
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +1 -1
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface-e +1 -1
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +1 -1
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface-e +1 -1
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +187 -38
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +1 -1
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface-e +1 -1
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +1 -1
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface-e +1 -1
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/PayEngineSDK +0 -0
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/VGSCollectSDK_VGSCollectSDK.bundle/Assets.car +0 -0
- package/ios/Sources/Classes/ApplePay/RNPEApplePayButton.swift +76 -9
- package/ios/Sources/Classes/ApplePay/RNPEApplePayPaymentRequest.swift +4 -4
- package/lib/commonjs/components/v2/ApplePay/PEApplePayButton.js +11 -1
- package/lib/commonjs/components/v2/ApplePay/PEApplePayButton.js.map +1 -1
- package/lib/commonjs/components/v2/ApplePay/PEApplePayContact.js +2 -0
- package/lib/commonjs/components/v2/ApplePay/PEApplePayContact.js.map +1 -0
- package/lib/commonjs/components/v2/GooglePay/PEGooglePayAddress.js +2 -0
- package/lib/commonjs/components/v2/GooglePay/PEGooglePayAddress.js.map +1 -0
- package/lib/commonjs/components/v2/GooglePay/PEGooglePayButton.js +9 -3
- package/lib/commonjs/components/v2/GooglePay/PEGooglePayButton.js.map +1 -1
- package/lib/commonjs/components/v2/PayEngineNative.js +19 -1
- package/lib/commonjs/components/v2/PayEngineNative.js.map +1 -1
- package/lib/commonjs/index.js +8 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/interfaces/index.js +12 -0
- package/lib/commonjs/interfaces/index.js.map +1 -1
- package/lib/module/components/v2/ApplePay/PEApplePayButton.js +11 -1
- package/lib/module/components/v2/ApplePay/PEApplePayButton.js.map +1 -1
- package/lib/module/components/v2/ApplePay/PEApplePayContact.js +2 -0
- package/lib/module/components/v2/ApplePay/PEApplePayContact.js.map +1 -0
- package/lib/module/components/v2/GooglePay/PEGooglePayAddress.js +2 -0
- package/lib/module/components/v2/GooglePay/PEGooglePayAddress.js.map +1 -0
- package/lib/module/components/v2/GooglePay/PEGooglePayButton.js +9 -3
- package/lib/module/components/v2/GooglePay/PEGooglePayButton.js.map +1 -1
- package/lib/module/components/v2/PayEngineNative.js +18 -1
- package/lib/module/components/v2/PayEngineNative.js.map +1 -1
- package/lib/module/index.js +2 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/interfaces/index.js +5 -0
- package/lib/module/interfaces/index.js.map +1 -1
- package/lib/typescript/components/v2/ApplePay/PEApplePayButton.d.ts +2 -1
- package/lib/typescript/components/v2/ApplePay/PEApplePayContact.d.ts +14 -0
- package/lib/typescript/components/v2/GooglePay/PEGooglePayAddress.d.ts +11 -0
- package/lib/typescript/components/v2/GooglePay/PEGooglePayButton.d.ts +2 -1
- package/lib/typescript/components/v2/PayEngineNative.d.ts +7 -0
- package/lib/typescript/index.d.ts +4 -1
- package/lib/typescript/interfaces/index.d.ts +4 -0
- package/package.json +1 -1
- package/src/components/v2/ApplePay/PEApplePayButton.tsx +13 -3
- package/src/components/v2/ApplePay/PEApplePayContact.ts +14 -0
- package/src/components/v2/GooglePay/PEGooglePayAddress.ts +11 -0
- package/src/components/v2/GooglePay/PEGooglePayButton.tsx +9 -4
- package/src/components/v2/PayEngineNative.tsx +16 -1
- package/src/index.tsx +6 -2
- package/src/interfaces/index.ts +5 -0
- package/android/payment-sdk-debug-1.0.3.aar +0 -0
- package/android/payment-sdk-release-1.0.3.aar +0 -0
|
@@ -14,6 +14,16 @@
|
|
|
14
14
|
"RawDocComment"
|
|
15
15
|
]
|
|
16
16
|
},
|
|
17
|
+
{
|
|
18
|
+
"kind": "Import",
|
|
19
|
+
"name": "Foundation",
|
|
20
|
+
"printedName": "Foundation",
|
|
21
|
+
"declKind": "Import",
|
|
22
|
+
"moduleName": "PayEngineSDK",
|
|
23
|
+
"declAttributes": [
|
|
24
|
+
"RawDocComment"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
17
27
|
{
|
|
18
28
|
"kind": "Import",
|
|
19
29
|
"name": "UIKit",
|
|
@@ -10200,7 +10210,7 @@
|
|
|
10200
10210
|
{
|
|
10201
10211
|
"kind": "Function",
|
|
10202
10212
|
"name": "paymentTokenDidReturn",
|
|
10203
|
-
"printedName": "paymentTokenDidReturn(token:completion:)",
|
|
10213
|
+
"printedName": "paymentTokenDidReturn(token:metadata:billingContact:shippingContact:completion:)",
|
|
10204
10214
|
"children": [
|
|
10205
10215
|
{
|
|
10206
10216
|
"kind": "TypeNominal",
|
|
@@ -10213,6 +10223,61 @@
|
|
|
10213
10223
|
"printedName": "Swift.String",
|
|
10214
10224
|
"usr": "s:SS"
|
|
10215
10225
|
},
|
|
10226
|
+
{
|
|
10227
|
+
"kind": "TypeNominal",
|
|
10228
|
+
"name": "Optional",
|
|
10229
|
+
"printedName": "[Swift.String : Any]?",
|
|
10230
|
+
"children": [
|
|
10231
|
+
{
|
|
10232
|
+
"kind": "TypeNominal",
|
|
10233
|
+
"name": "Dictionary",
|
|
10234
|
+
"printedName": "[Swift.String : Any]",
|
|
10235
|
+
"children": [
|
|
10236
|
+
{
|
|
10237
|
+
"kind": "TypeNominal",
|
|
10238
|
+
"name": "String",
|
|
10239
|
+
"printedName": "Swift.String",
|
|
10240
|
+
"usr": "s:SS"
|
|
10241
|
+
},
|
|
10242
|
+
{
|
|
10243
|
+
"kind": "TypeNominal",
|
|
10244
|
+
"name": "ProtocolComposition",
|
|
10245
|
+
"printedName": "Any"
|
|
10246
|
+
}
|
|
10247
|
+
],
|
|
10248
|
+
"usr": "s:SD"
|
|
10249
|
+
}
|
|
10250
|
+
],
|
|
10251
|
+
"usr": "s:Sq"
|
|
10252
|
+
},
|
|
10253
|
+
{
|
|
10254
|
+
"kind": "TypeNominal",
|
|
10255
|
+
"name": "Optional",
|
|
10256
|
+
"printedName": "PassKit.PKContact?",
|
|
10257
|
+
"children": [
|
|
10258
|
+
{
|
|
10259
|
+
"kind": "TypeNominal",
|
|
10260
|
+
"name": "PKContact",
|
|
10261
|
+
"printedName": "PassKit.PKContact",
|
|
10262
|
+
"usr": "c:objc(cs)PKContact"
|
|
10263
|
+
}
|
|
10264
|
+
],
|
|
10265
|
+
"usr": "s:Sq"
|
|
10266
|
+
},
|
|
10267
|
+
{
|
|
10268
|
+
"kind": "TypeNominal",
|
|
10269
|
+
"name": "Optional",
|
|
10270
|
+
"printedName": "PassKit.PKContact?",
|
|
10271
|
+
"children": [
|
|
10272
|
+
{
|
|
10273
|
+
"kind": "TypeNominal",
|
|
10274
|
+
"name": "PKContact",
|
|
10275
|
+
"printedName": "PassKit.PKContact",
|
|
10276
|
+
"usr": "c:objc(cs)PKContact"
|
|
10277
|
+
}
|
|
10278
|
+
],
|
|
10279
|
+
"usr": "s:Sq"
|
|
10280
|
+
},
|
|
10216
10281
|
{
|
|
10217
10282
|
"kind": "TypeFunc",
|
|
10218
10283
|
"name": "Function",
|
|
@@ -10233,8 +10298,8 @@
|
|
|
10233
10298
|
}
|
|
10234
10299
|
],
|
|
10235
10300
|
"declKind": "Func",
|
|
10236
|
-
"usr": "c:@M@PayEngineSDK@objc(pl)PEApplePayDelegate(im)paymentTokenDidReturnWithToken:completion:",
|
|
10237
|
-
"mangledName": "$
|
|
10301
|
+
"usr": "c:@M@PayEngineSDK@objc(pl)PEApplePayDelegate(im)paymentTokenDidReturnWithToken:metadata:billingContact:shippingContact:completion:",
|
|
10302
|
+
"mangledName": "$s12PayEngineSDK07PEAppleA8DelegateP21paymentTokenDidReturn5token8metadata14billingContact08shippingM010completionySS_SDySSypGSgSo9PKContactCSgANyAA0dA6ResultOctF",
|
|
10238
10303
|
"moduleName": "PayEngineSDK",
|
|
10239
10304
|
"genericSig": "<τ_0_0 where τ_0_0 : PayEngineSDK.PEApplePayDelegate>",
|
|
10240
10305
|
"sugared_genericSig": "<Self where Self : PayEngineSDK.PEApplePayDelegate>",
|
|
@@ -11243,6 +11308,83 @@
|
|
|
11243
11308
|
"json_format_version": 8
|
|
11244
11309
|
},
|
|
11245
11310
|
"ConstValues": [
|
|
11311
|
+
{
|
|
11312
|
+
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/JSONCodingKey.swift",
|
|
11313
|
+
"kind": "StringLiteral",
|
|
11314
|
+
"offset": 355,
|
|
11315
|
+
"length": 13,
|
|
11316
|
+
"value": "\"\""
|
|
11317
|
+
},
|
|
11318
|
+
{
|
|
11319
|
+
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/JSONCodingKey.swift",
|
|
11320
|
+
"kind": "StringLiteral",
|
|
11321
|
+
"offset": 367,
|
|
11322
|
+
"length": 2,
|
|
11323
|
+
"value": "\"\""
|
|
11324
|
+
},
|
|
11325
|
+
{
|
|
11326
|
+
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/JSONCodingKey.swift",
|
|
11327
|
+
"kind": "BooleanLiteral",
|
|
11328
|
+
"offset": 1911,
|
|
11329
|
+
"length": 4,
|
|
11330
|
+
"value": "true"
|
|
11331
|
+
},
|
|
11332
|
+
{
|
|
11333
|
+
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/JSONCodingKey.swift",
|
|
11334
|
+
"kind": "StringLiteral",
|
|
11335
|
+
"offset": 2111,
|
|
11336
|
+
"length": 24,
|
|
11337
|
+
"value": "\"Unable to decode value\""
|
|
11338
|
+
},
|
|
11339
|
+
{
|
|
11340
|
+
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/JSONCodingKey.swift",
|
|
11341
|
+
"kind": "Array",
|
|
11342
|
+
"offset": 2324,
|
|
11343
|
+
"length": 2,
|
|
11344
|
+
"value": "[]"
|
|
11345
|
+
},
|
|
11346
|
+
{
|
|
11347
|
+
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/JSONCodingKey.swift",
|
|
11348
|
+
"kind": "BooleanLiteral",
|
|
11349
|
+
"offset": 2361,
|
|
11350
|
+
"length": 5,
|
|
11351
|
+
"value": "false"
|
|
11352
|
+
},
|
|
11353
|
+
{
|
|
11354
|
+
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/JSONCodingKey.swift",
|
|
11355
|
+
"kind": "BooleanLiteral",
|
|
11356
|
+
"offset": 3061,
|
|
11357
|
+
"length": 4,
|
|
11358
|
+
"value": "true"
|
|
11359
|
+
},
|
|
11360
|
+
{
|
|
11361
|
+
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/JSONCodingKey.swift",
|
|
11362
|
+
"kind": "StringLiteral",
|
|
11363
|
+
"offset": 3259,
|
|
11364
|
+
"length": 24,
|
|
11365
|
+
"value": "\"Unable to decode value\""
|
|
11366
|
+
},
|
|
11367
|
+
{
|
|
11368
|
+
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/JSONCodingKey.swift",
|
|
11369
|
+
"kind": "StringLiteral",
|
|
11370
|
+
"offset": 4714,
|
|
11371
|
+
"length": 20,
|
|
11372
|
+
"value": "\"Invalid JSON value\""
|
|
11373
|
+
},
|
|
11374
|
+
{
|
|
11375
|
+
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/JSONCodingKey.swift",
|
|
11376
|
+
"kind": "Array",
|
|
11377
|
+
"offset": 6083,
|
|
11378
|
+
"length": 2,
|
|
11379
|
+
"value": "[]"
|
|
11380
|
+
},
|
|
11381
|
+
{
|
|
11382
|
+
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/JSONCodingKey.swift",
|
|
11383
|
+
"kind": "StringLiteral",
|
|
11384
|
+
"offset": 6213,
|
|
11385
|
+
"length": 20,
|
|
11386
|
+
"value": "\"Invalid JSON value\""
|
|
11387
|
+
},
|
|
11246
11388
|
{
|
|
11247
11389
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Components\/PEComponent.swift",
|
|
11248
11390
|
"kind": "BooleanLiteral",
|
|
@@ -11838,38 +11980,45 @@
|
|
|
11838
11980
|
"length": 4,
|
|
11839
11981
|
"value": "true"
|
|
11840
11982
|
},
|
|
11983
|
+
{
|
|
11984
|
+
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Features\/ApplePay\/PEApplePay.swift",
|
|
11985
|
+
"kind": "Dictionary",
|
|
11986
|
+
"offset": 11971,
|
|
11987
|
+
"length": 3,
|
|
11988
|
+
"value": "[]"
|
|
11989
|
+
},
|
|
11841
11990
|
{
|
|
11842
11991
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Features\/ApplePay\/PEApplePay.swift",
|
|
11843
11992
|
"kind": "StringLiteral",
|
|
11844
|
-
"offset":
|
|
11993
|
+
"offset": 12126,
|
|
11845
11994
|
"length": 16,
|
|
11846
11995
|
"value": "\"Error \""
|
|
11847
11996
|
},
|
|
11848
11997
|
{
|
|
11849
11998
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Features\/ApplePay\/PEApplePay.swift",
|
|
11850
11999
|
"kind": "StringLiteral",
|
|
11851
|
-
"offset":
|
|
12000
|
+
"offset": 12141,
|
|
11852
12001
|
"length": 2,
|
|
11853
12002
|
"value": "\"\""
|
|
11854
12003
|
},
|
|
11855
12004
|
{
|
|
11856
12005
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Features\/ApplePay\/PEApplePay.swift",
|
|
11857
12006
|
"kind": "StringLiteral",
|
|
11858
|
-
"offset":
|
|
12007
|
+
"offset": 13016,
|
|
11859
12008
|
"length": 16,
|
|
11860
12009
|
"value": "\"Error \""
|
|
11861
12010
|
},
|
|
11862
12011
|
{
|
|
11863
12012
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Features\/ApplePay\/PEApplePay.swift",
|
|
11864
12013
|
"kind": "StringLiteral",
|
|
11865
|
-
"offset":
|
|
12014
|
+
"offset": 13031,
|
|
11866
12015
|
"length": 2,
|
|
11867
12016
|
"value": "\"\""
|
|
11868
12017
|
},
|
|
11869
12018
|
{
|
|
11870
12019
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Features\/ApplePay\/PEApplePay.swift",
|
|
11871
12020
|
"kind": "StringLiteral",
|
|
11872
|
-
"offset":
|
|
12021
|
+
"offset": 13337,
|
|
11873
12022
|
"length": 29,
|
|
11874
12023
|
"value": "\"Token payment data is empty\""
|
|
11875
12024
|
},
|
|
@@ -14802,210 +14951,210 @@
|
|
|
14802
14951
|
{
|
|
14803
14952
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/Utils.swift",
|
|
14804
14953
|
"kind": "StringLiteral",
|
|
14805
|
-
"offset":
|
|
14954
|
+
"offset": 4369,
|
|
14806
14955
|
"length": 66,
|
|
14807
14956
|
"value": "\"\""
|
|
14808
14957
|
},
|
|
14809
14958
|
{
|
|
14810
14959
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/Utils.swift",
|
|
14811
14960
|
"kind": "StringLiteral",
|
|
14812
|
-
"offset":
|
|
14961
|
+
"offset": 4392,
|
|
14813
14962
|
"length": 1,
|
|
14814
14963
|
"value": "\"\/api\/merchant\/\""
|
|
14815
14964
|
},
|
|
14816
14965
|
{
|
|
14817
14966
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/Utils.swift",
|
|
14818
14967
|
"kind": "StringLiteral",
|
|
14819
|
-
"offset":
|
|
14968
|
+
"offset": 4419,
|
|
14820
14969
|
"length": 1,
|
|
14821
14970
|
"value": "\"\/applepay\/token\""
|
|
14822
14971
|
},
|
|
14823
14972
|
{
|
|
14824
14973
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/Utils.swift",
|
|
14825
14974
|
"kind": "StringLiteral",
|
|
14826
|
-
"offset":
|
|
14975
|
+
"offset": 4721,
|
|
14827
14976
|
"length": 6,
|
|
14828
14977
|
"value": "\"type\""
|
|
14829
14978
|
},
|
|
14830
14979
|
{
|
|
14831
14980
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/Utils.swift",
|
|
14832
14981
|
"kind": "StringLiteral",
|
|
14833
|
-
"offset":
|
|
14982
|
+
"offset": 4729,
|
|
14834
14983
|
"length": 5,
|
|
14835
14984
|
"value": "\"app\""
|
|
14836
14985
|
},
|
|
14837
14986
|
{
|
|
14838
14987
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/Utils.swift",
|
|
14839
14988
|
"kind": "StringLiteral",
|
|
14840
|
-
"offset":
|
|
14989
|
+
"offset": 4748,
|
|
14841
14990
|
"length": 13,
|
|
14842
14991
|
"value": "\"paymentData\""
|
|
14843
14992
|
},
|
|
14844
14993
|
{
|
|
14845
14994
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/Utils.swift",
|
|
14846
14995
|
"kind": "StringLiteral",
|
|
14847
|
-
"offset":
|
|
14996
|
+
"offset": 4788,
|
|
14848
14997
|
"length": 10,
|
|
14849
14998
|
"value": "\"metadata\""
|
|
14850
14999
|
},
|
|
14851
15000
|
{
|
|
14852
15001
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/Utils.swift",
|
|
14853
15002
|
"kind": "StringLiteral",
|
|
14854
|
-
"offset":
|
|
15003
|
+
"offset": 4818,
|
|
14855
15004
|
"length": 17,
|
|
14856
15005
|
"value": "\"shippingContact\""
|
|
14857
15006
|
},
|
|
14858
15007
|
{
|
|
14859
15008
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/Utils.swift",
|
|
14860
15009
|
"kind": "StringLiteral",
|
|
14861
|
-
"offset":
|
|
15010
|
+
"offset": 4910,
|
|
14862
15011
|
"length": 16,
|
|
14863
15012
|
"value": "\"billingContact\""
|
|
14864
15013
|
},
|
|
14865
15014
|
{
|
|
14866
15015
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/Utils.swift",
|
|
14867
15016
|
"kind": "StringLiteral",
|
|
14868
|
-
"offset":
|
|
15017
|
+
"offset": 5098,
|
|
14869
15018
|
"length": 6,
|
|
14870
15019
|
"value": "\"POST\""
|
|
14871
15020
|
},
|
|
14872
15021
|
{
|
|
14873
15022
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/Utils.swift",
|
|
14874
15023
|
"kind": "Array",
|
|
14875
|
-
"offset":
|
|
15024
|
+
"offset": 5197,
|
|
14876
15025
|
"length": 2,
|
|
14877
15026
|
"value": "[]"
|
|
14878
15027
|
},
|
|
14879
15028
|
{
|
|
14880
15029
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/Utils.swift",
|
|
14881
15030
|
"kind": "StringLiteral",
|
|
14882
|
-
"offset":
|
|
15031
|
+
"offset": 5226,
|
|
14883
15032
|
"length": 18,
|
|
14884
15033
|
"value": "\"application\/json\""
|
|
14885
15034
|
},
|
|
14886
15035
|
{
|
|
14887
15036
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/Utils.swift",
|
|
14888
15037
|
"kind": "StringLiteral",
|
|
14889
|
-
"offset":
|
|
15038
|
+
"offset": 5266,
|
|
14890
15039
|
"length": 14,
|
|
14891
15040
|
"value": "\"Content-Type\""
|
|
14892
15041
|
},
|
|
14893
15042
|
{
|
|
14894
15043
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/Utils.swift",
|
|
14895
15044
|
"kind": "StringLiteral",
|
|
14896
|
-
"offset":
|
|
15045
|
+
"offset": 5416,
|
|
14897
15046
|
"length": 15,
|
|
14898
15047
|
"value": "\"Authorization\""
|
|
14899
15048
|
},
|
|
14900
15049
|
{
|
|
14901
15050
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/Utils.swift",
|
|
14902
15051
|
"kind": "StringLiteral",
|
|
14903
|
-
"offset":
|
|
15052
|
+
"offset": 6065,
|
|
14904
15053
|
"length": 2,
|
|
14905
15054
|
"value": "\"\""
|
|
14906
15055
|
},
|
|
14907
15056
|
{
|
|
14908
15057
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/Utils.swift",
|
|
14909
15058
|
"kind": "StringLiteral",
|
|
14910
|
-
"offset":
|
|
15059
|
+
"offset": 6240,
|
|
14911
15060
|
"length": 2,
|
|
14912
15061
|
"value": "\"\""
|
|
14913
15062
|
},
|
|
14914
15063
|
{
|
|
14915
15064
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/Utils.swift",
|
|
14916
15065
|
"kind": "StringLiteral",
|
|
14917
|
-
"offset":
|
|
15066
|
+
"offset": 6268,
|
|
14918
15067
|
"length": 31,
|
|
14919
15068
|
"value": "\"\""
|
|
14920
15069
|
},
|
|
14921
15070
|
{
|
|
14922
15071
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/Utils.swift",
|
|
14923
15072
|
"kind": "StringLiteral",
|
|
14924
|
-
"offset":
|
|
15073
|
+
"offset": 6283,
|
|
14925
15074
|
"length": 1,
|
|
14926
15075
|
"value": "\":\/\/\""
|
|
14927
15076
|
},
|
|
14928
15077
|
{
|
|
14929
15078
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/Utils.swift",
|
|
14930
15079
|
"kind": "StringLiteral",
|
|
14931
|
-
"offset":
|
|
15080
|
+
"offset": 6298,
|
|
14932
15081
|
"length": 1,
|
|
14933
15082
|
"value": "\"\""
|
|
14934
15083
|
},
|
|
14935
15084
|
{
|
|
14936
15085
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/Utils.swift",
|
|
14937
15086
|
"kind": "StringLiteral",
|
|
14938
|
-
"offset":
|
|
15087
|
+
"offset": 6403,
|
|
14939
15088
|
"length": 15,
|
|
14940
15089
|
"value": "\"secure-fields\""
|
|
14941
15090
|
},
|
|
14942
15091
|
{
|
|
14943
15092
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/Utils.swift",
|
|
14944
15093
|
"kind": "StringLiteral",
|
|
14945
|
-
"offset":
|
|
15094
|
+
"offset": 6447,
|
|
14946
15095
|
"length": 98,
|
|
14947
15096
|
"value": "\"Signature key=\"\""
|
|
14948
15097
|
},
|
|
14949
15098
|
{
|
|
14950
15099
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/Utils.swift",
|
|
14951
15100
|
"kind": "StringLiteral",
|
|
14952
|
-
"offset":
|
|
15101
|
+
"offset": 6477,
|
|
14953
15102
|
"length": 13,
|
|
14954
15103
|
"value": "\"\",algorithm=\"hmac-sha256\",identifier=\"\""
|
|
14955
15104
|
},
|
|
14956
15105
|
{
|
|
14957
15106
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/Utils.swift",
|
|
14958
15107
|
"kind": "StringLiteral",
|
|
14959
|
-
"offset":
|
|
15108
|
+
"offset": 6529,
|
|
14960
15109
|
"length": 13,
|
|
14961
15110
|
"value": "\"\",signature=\"\"\""
|
|
14962
15111
|
},
|
|
14963
15112
|
{
|
|
14964
15113
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/Utils.swift",
|
|
14965
15114
|
"kind": "BooleanLiteral",
|
|
14966
|
-
"offset":
|
|
15115
|
+
"offset": 6738,
|
|
14967
15116
|
"length": 5,
|
|
14968
15117
|
"value": "false"
|
|
14969
15118
|
},
|
|
14970
15119
|
{
|
|
14971
15120
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/Utils.swift",
|
|
14972
15121
|
"kind": "IntegerLiteral",
|
|
14973
|
-
"offset":
|
|
15122
|
+
"offset": 6961,
|
|
14974
15123
|
"length": 2,
|
|
14975
15124
|
"value": "10"
|
|
14976
15125
|
},
|
|
14977
15126
|
{
|
|
14978
15127
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/Utils.swift",
|
|
14979
15128
|
"kind": "BooleanLiteral",
|
|
14980
|
-
"offset":
|
|
15129
|
+
"offset": 6984,
|
|
14981
15130
|
"length": 4,
|
|
14982
15131
|
"value": "true"
|
|
14983
15132
|
},
|
|
14984
15133
|
{
|
|
14985
15134
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/Utils.swift",
|
|
14986
15135
|
"kind": "IntegerLiteral",
|
|
14987
|
-
"offset":
|
|
15136
|
+
"offset": 7003,
|
|
14988
15137
|
"length": 2,
|
|
14989
15138
|
"value": "11"
|
|
14990
15139
|
},
|
|
14991
15140
|
{
|
|
14992
15141
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/Utils.swift",
|
|
14993
15142
|
"kind": "BooleanLiteral",
|
|
14994
|
-
"offset":
|
|
15143
|
+
"offset": 7033,
|
|
14995
15144
|
"length": 5,
|
|
14996
15145
|
"value": "false"
|
|
14997
15146
|
},
|
|
14998
15147
|
{
|
|
14999
15148
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/Utils.swift",
|
|
15000
15149
|
"kind": "BooleanLiteral",
|
|
15001
|
-
"offset":
|
|
15150
|
+
"offset": 7075,
|
|
15002
15151
|
"length": 5,
|
|
15003
15152
|
"value": "false"
|
|
15004
15153
|
},
|
|
15005
15154
|
{
|
|
15006
15155
|
"filePath": "\/Users\/tringuyen\/Workspace\/PayFactory\/Projects\/pf-payment-sdk-ios\/SDK\/PayEngineSDK\/src\/Helpers\/Utils.swift",
|
|
15007
15156
|
"kind": "StringLiteral",
|
|
15008
|
-
"offset":
|
|
15157
|
+
"offset": 7204,
|
|
15009
15158
|
"length": 5,
|
|
15010
15159
|
"value": "\"ssn\""
|
|
15011
15160
|
},
|
|
@@ -269,7 +269,7 @@ public enum PEKeyboardType {
|
|
|
269
269
|
@objc public protocol PEApplePayDelegate {
|
|
270
270
|
@objc func paymentError(error: any Swift.Error)
|
|
271
271
|
@objc func paymentSheetDidMDismiss()
|
|
272
|
-
@objc func paymentTokenDidReturn(token: Swift.String, completion: @escaping (PEApplePayResult) -> Swift.Void)
|
|
272
|
+
@objc func paymentTokenDidReturn(token: Swift.String, metadata: [Swift.String : Any]?, billingContact: PassKit.PKContact?, shippingContact: PassKit.PKContact?, completion: @escaping (PEApplePayResult) -> Swift.Void)
|
|
273
273
|
@objc func paymentTokenNotAvailable(error: (any Swift.Error)?)
|
|
274
274
|
}
|
|
275
275
|
extension UIKit.UIView {
|
|
@@ -269,7 +269,7 @@ public enum PEKeyboardType {
|
|
|
269
269
|
@objc public protocol PEApplePayDelegate {
|
|
270
270
|
@objc func paymentError(error: any Swift.Error)
|
|
271
271
|
@objc func paymentSheetDidMDismiss()
|
|
272
|
-
@objc func paymentTokenDidReturn(token: Swift.String, completion: @escaping (PayEngineSDK.PEApplePayResult) -> Swift.Void)
|
|
272
|
+
@objc func paymentTokenDidReturn(token: Swift.String, metadata: [Swift.String : Any]?, billingContact: PassKit.PKContact?, shippingContact: PassKit.PKContact?, completion: @escaping (PayEngineSDK.PEApplePayResult) -> Swift.Void)
|
|
273
273
|
@objc func paymentTokenNotAvailable(error: (any Swift.Error)?)
|
|
274
274
|
}
|
|
275
275
|
extension UIKit.UIView {
|
|
@@ -269,7 +269,7 @@ public enum PEKeyboardType {
|
|
|
269
269
|
@objc public protocol PEApplePayDelegate {
|
|
270
270
|
@objc func paymentError(error: any Swift.Error)
|
|
271
271
|
@objc func paymentSheetDidMDismiss()
|
|
272
|
-
@objc func paymentTokenDidReturn(token: Swift.String, completion: @escaping (PEApplePayResult) -> Swift.Void)
|
|
272
|
+
@objc func paymentTokenDidReturn(token: Swift.String, metadata: [Swift.String : Any]?, billingContact: PassKit.PKContact?, shippingContact: PassKit.PKContact?, completion: @escaping (PEApplePayResult) -> Swift.Void)
|
|
273
273
|
@objc func paymentTokenNotAvailable(error: (any Swift.Error)?)
|
|
274
274
|
}
|
|
275
275
|
extension UIKit.UIView {
|
|
@@ -269,7 +269,7 @@ public enum PEKeyboardType {
|
|
|
269
269
|
@objc public protocol PEApplePayDelegate {
|
|
270
270
|
@objc func paymentError(error: any Swift.Error)
|
|
271
271
|
@objc func paymentSheetDidMDismiss()
|
|
272
|
-
@objc func paymentTokenDidReturn(token: Swift.String, completion: @escaping (PayEngineSDK.PEApplePayResult) -> Swift.Void)
|
|
272
|
+
@objc func paymentTokenDidReturn(token: Swift.String, metadata: [Swift.String : Any]?, billingContact: PassKit.PKContact?, shippingContact: PassKit.PKContact?, completion: @escaping (PayEngineSDK.PEApplePayResult) -> Swift.Void)
|
|
273
273
|
@objc func paymentTokenNotAvailable(error: (any Swift.Error)?)
|
|
274
274
|
}
|
|
275
275
|
extension UIKit.UIView {
|
package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/PayEngineSDK
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import Foundation
|
|
9
9
|
import PayEngineSDK
|
|
10
|
+
import PassKit
|
|
10
11
|
|
|
11
12
|
@objc(RNPEApplePayButton)
|
|
12
13
|
class RNPEApplePayButton: UIView {
|
|
@@ -41,6 +42,7 @@ class RNPEApplePayButton: UIView {
|
|
|
41
42
|
debugPrint("Unable to render apple pay button: Missing payment request")
|
|
42
43
|
return
|
|
43
44
|
}
|
|
45
|
+
debugPrint("Payment request: \(paymentRequest)")
|
|
44
46
|
|
|
45
47
|
if let paymentRequest: RNPEApplePayPaymentRequest = try? JSONDecoder().decode(RNPEApplePayPaymentRequest.self, from: paymentRequest.data(using: .utf8)!) {
|
|
46
48
|
let pePaymentRequest = paymentRequest.toNative()
|
|
@@ -61,7 +63,81 @@ class RNPEApplePayButton: UIView {
|
|
|
61
63
|
|
|
62
64
|
}
|
|
63
65
|
|
|
66
|
+
func dictionaryToString(_ dictionary: [String: Any]) -> String? {
|
|
67
|
+
guard let jsonData = try? JSONSerialization.data(withJSONObject: dictionary, options: .prettyPrinted),
|
|
68
|
+
let jsonString = String(data: jsonData, encoding: .utf8) else {
|
|
69
|
+
return nil
|
|
70
|
+
}
|
|
71
|
+
return jsonString
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
func pkContactToJSONString(_ contact: PKContact) -> String? {
|
|
75
|
+
var contactDict: [String: Any] = [:]
|
|
76
|
+
|
|
77
|
+
if let name = contact.name {
|
|
78
|
+
contactDict["givenName"] = name.givenName
|
|
79
|
+
contactDict["familyName"] = name.familyName
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// Postal Address
|
|
83
|
+
if let postalAddress = contact.postalAddress {
|
|
84
|
+
var addressLines: [String] = []
|
|
85
|
+
|
|
86
|
+
addressLines.append(postalAddress.street)
|
|
87
|
+
contactDict["addressLines"] = addressLines
|
|
88
|
+
|
|
89
|
+
contactDict["locality"] = postalAddress.city
|
|
90
|
+
contactDict["administrativeArea"] = postalAddress.state
|
|
91
|
+
contactDict["postalCode"] = postalAddress.postalCode
|
|
92
|
+
contactDict["country"] = postalAddress.country
|
|
93
|
+
contactDict["countryCode"] = postalAddress.isoCountryCode
|
|
94
|
+
contactDict["subAdministrativeArea"] = postalAddress.subAdministrativeArea
|
|
95
|
+
contactDict["subLocality"] = postalAddress.subLocality
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// Email Address
|
|
99
|
+
if let emailAddress = contact.emailAddress {
|
|
100
|
+
contactDict["emailAddress"] = emailAddress
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// Phone Number
|
|
104
|
+
if let phoneNumber = contact.phoneNumber {
|
|
105
|
+
contactDict["phoneNumber"] = phoneNumber.stringValue
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// Convert dictionary to JSON string
|
|
109
|
+
guard let jsonData = try? JSONSerialization.data(withJSONObject: contactDict, options: .prettyPrinted),
|
|
110
|
+
let jsonString = String(data: jsonData, encoding: .utf8) else {
|
|
111
|
+
return nil
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return jsonString
|
|
115
|
+
}
|
|
116
|
+
|
|
64
117
|
extension RNPEApplePayButton: PEApplePayDelegate {
|
|
118
|
+
|
|
119
|
+
func paymentTokenDidReturn(token: String, metadata: [String : Any]?, billingContact: PKContact?, shippingContact: PKContact?, completion: @escaping (PayEngineSDK.PEApplePayResult) -> Void) {
|
|
120
|
+
|
|
121
|
+
var data = [
|
|
122
|
+
"token": token
|
|
123
|
+
]
|
|
124
|
+
|
|
125
|
+
if (metadata != nil) {
|
|
126
|
+
data["metadata"] = dictionaryToString(metadata!)
|
|
127
|
+
}
|
|
128
|
+
if (billingContact != nil) {
|
|
129
|
+
data["billingContact"] = pkContactToJSONString(billingContact!)
|
|
130
|
+
}
|
|
131
|
+
if (shippingContact != nil) {
|
|
132
|
+
data["shippingContact"] = pkContactToJSONString(shippingContact!)
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
if self.onPmTokenDidReturn != nil {
|
|
136
|
+
self.onPmTokenDidReturn!(data)
|
|
137
|
+
}
|
|
138
|
+
completion(.success)
|
|
139
|
+
}
|
|
140
|
+
|
|
65
141
|
func paymentTokenNotAvailable(error: (Error)?) {
|
|
66
142
|
debugPrint("paymentTokenNotAvailable")
|
|
67
143
|
if self.onPmError != nil {
|
|
@@ -83,15 +159,6 @@ extension RNPEApplePayButton: PEApplePayDelegate {
|
|
|
83
159
|
}
|
|
84
160
|
}
|
|
85
161
|
|
|
86
|
-
func paymentTokenDidReturn(token: String, completion: @escaping (PayEngineSDK.PEApplePayResult) -> Void) {
|
|
87
|
-
debugPrint("Token returned \(token)")
|
|
88
|
-
if self.onPmTokenDidReturn != nil {
|
|
89
|
-
self.onPmTokenDidReturn!(["token": token])
|
|
90
|
-
}
|
|
91
|
-
completion(.success)
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
|
|
95
162
|
}
|
|
96
163
|
|
|
97
164
|
|