@aptos-scp/scp-component-rn-device-services 0.0.2 → 0.0.4-hm
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/android/src/main/java/com/aptos/scp/paymentterminal/adyen/AdyenPaymentTerminal.java +69 -0
- package/ios/AurusEnterpriseSDK.framework/AurusEnterpriseSDK +0 -0
- package/ios/AurusEnterpriseSDK.framework/Headers/AurusEnterpriseSDK.h +97 -95
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit +0 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit.bundle/Info.plist +0 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit.bundle/adyentoolkit.momd/VersionInfo.plist +0 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit.bundle/adyentoolkit.momd/adyentoolkit v1.10.2.mom +0 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit.bundle/adyentoolkit.momd/adyentoolkit v1.10.3.mom +0 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit.bundle/adyentoolkit.momd/adyentoolkit v1.10.4.mom +0 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit.bundle/adyentoolkit.momd/adyentoolkit v1.10.4.omo +0 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit.bundle/adyentoolkit.momd/adyentoolkit v1.10.mom +0 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit.bundle/adyentoolkit.momd/adyentoolkit v1.8.6.mom +0 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit.bundle/adyentoolkit.momd/adyentoolkit v1.9.mom +0 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit.bundle/adyentoolkit.momd/adyentoolkit.mom +0 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYAccountData.h +26 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYAdditionalDataRequest.h +38 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYAmount.h +16 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYAppData.h +26 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYBalance.h +13 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYCashTransactionRequest.h +35 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYConstants.h +688 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYCurrency.h +33 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYDevice.h +308 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYDeviceData.h +52 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYDeviceManagerDelegate.h +66 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYDeviceRegistry.h +125 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYDynamicCurrencyConversionData.h +22 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYErrors.h +153 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCard.h +41 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCardBalanceRequest.h +50 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCardBalanceResponse.h +38 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCardLoadRequest.h +78 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCardLoadRequestDelegate.h +25 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCardLoadResponse.h +31 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCardMask.h +31 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCardRequest.h +13 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYLocationManager.h +14 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYLoginDelegate.h +80 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYPrintReceiptRequest.h +57 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYReceipt.h +33 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYReceiptLine.h +92 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYReferralRequest.h +16 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYRefundData.h +54 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYServerSynchronization.h +18 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYSignatureRequest.h +117 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYSpecialTransactionRequest.h +63 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYToneGenerator.h +45 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYTransactionData.h +416 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYTransactionDetails.h +45 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYTransactionProcessorDelegate.h +279 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYTransactionRequest.h +108 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYUIKit.h +30 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/Adyen.h +591 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/AdyenToolkit-umbrella.h +59 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/AdyenToolkit.h +79 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/NSData+ADY.h +31 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/NSString+ADY.h +19 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/adylog.h +176 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Info.plist +0 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Modules/module.modulemap +6 -0
- package/ios/SCPRNDeviceServices/Adyen/AdyenConstants.h +40 -0
- package/ios/SCPRNDeviceServices/Adyen/AdyenConstants.m +28 -0
- package/ios/SCPRNDeviceServices/Adyen/AdyenDelegate.h +23 -0
- package/ios/SCPRNDeviceServices/Adyen/AdyenDelegate.m +15 -0
- package/ios/SCPRNDeviceServices/Adyen/AdyenDeviceManagerDelegate.h +19 -0
- package/ios/SCPRNDeviceServices/Adyen/AdyenDeviceManagerDelegate.m +31 -0
- package/ios/SCPRNDeviceServices/Adyen/AdyenLoginDelegate.h +19 -0
- package/ios/SCPRNDeviceServices/Adyen/AdyenLoginDelegate.m +26 -0
- package/ios/SCPRNDeviceServices/Adyen/AdyenTransactionProcessorDelegate.h +26 -0
- package/ios/SCPRNDeviceServices/Adyen/AdyenTransactionProcessorDelegate.m +148 -0
- package/ios/SCPRNDeviceServices/AdyenPaymentTerminal.h +19 -0
- package/ios/SCPRNDeviceServices/AdyenPaymentTerminal.m +457 -22
- package/ios/SCPRNDeviceServices/AurusPaymentTerminal.m +96 -11
- package/ios/SCPRNDeviceServices/VendorPaymentTerminal.m +1 -1
- package/ios/SCPRNDeviceServices.xcodeproj/project.pbxproj +56 -0
- package/lib/AdyenDevice/AdyenDevice.d.ts +56 -0
- package/lib/AdyenDevice/AdyenDevice.js +349 -0
- package/lib/AdyenDevice/AdyenDevice.js.map +1 -0
- package/lib/AdyenDevice/constants.d.ts +12 -0
- package/lib/AdyenDevice/constants.js +228 -0
- package/lib/AdyenDevice/constants.js.map +1 -0
- package/lib/AdyenDevice/index.d.ts +1 -0
- package/lib/AdyenDevice/index.js +7 -0
- package/lib/AdyenDevice/index.js.map +1 -0
- package/lib/AdyenDevice/interfaces.d.ts +175 -0
- package/lib/AdyenDevice/interfaces.js +3 -0
- package/lib/AdyenDevice/interfaces.js.map +1 -0
- package/lib/AurusDevice/AurusDevice.d.ts +102 -0
- package/lib/AurusDevice/AurusDevice.js +730 -0
- package/lib/AurusDevice/AurusDevice.js.map +1 -0
- package/lib/AurusDevice/constants.d.ts +85 -33
- package/lib/AurusDevice/constants.js +115 -37
- package/lib/AurusDevice/constants.js.map +1 -1
- package/lib/AurusDevice/index.d.ts +1 -1
- package/lib/AurusDevice/index.js +1 -1
- package/lib/AurusDevice/index.js.map +1 -1
- package/lib/AurusDevice/sdk-interface/AESDKRegistration.d.ts +10 -9
- package/lib/AurusDevice/sdk-interface/AESDKRegistration.js +0 -6
- package/lib/AurusDevice/sdk-interface/AESDKRegistration.js.map +1 -1
- package/lib/AurusDevice/sdk-interface/AurusPaymentSupport.d.ts +5 -5
- package/lib/AurusDevice/sdk-interface/AurusPaymentSupport.js +143 -107
- package/lib/AurusDevice/sdk-interface/AurusPaymentSupport.js.map +1 -1
- package/lib/AurusDevice/sdk-interface/Barcode.d.ts +16 -0
- package/lib/AurusDevice/sdk-interface/Barcode.js +3 -0
- package/lib/AurusDevice/sdk-interface/Barcode.js.map +1 -0
- package/lib/AurusDevice/sdk-interface/ByPassScreen.d.ts +25 -0
- package/lib/AurusDevice/sdk-interface/ByPassScreen.js +9 -0
- package/lib/AurusDevice/sdk-interface/ByPassScreen.js.map +1 -0
- package/lib/AurusDevice/sdk-interface/CancelTransaction.d.ts +11 -10
- package/lib/AurusDevice/sdk-interface/CancelTransaction.js +0 -6
- package/lib/AurusDevice/sdk-interface/CancelTransaction.js.map +1 -1
- package/lib/AurusDevice/sdk-interface/GetCardBinRequest.d.ts +14 -12
- package/lib/AurusDevice/sdk-interface/PLCCApplication.d.ts +12 -11
- package/lib/AurusDevice/sdk-interface/PLCCApplication.js +0 -6
- package/lib/AurusDevice/sdk-interface/PLCCApplication.js.map +1 -1
- package/lib/AurusDevice/sdk-interface/TransactionRequest.d.ts +44 -48
- package/lib/AurusDevice/sdk-interface/TransactionRequest.js +0 -6
- package/lib/AurusDevice/sdk-interface/TransactionRequest.js.map +1 -1
- package/lib/AurusDevice/sdk-interface/Upgrade.d.ts +23 -0
- package/lib/AurusDevice/sdk-interface/Upgrade.js +9 -0
- package/lib/AurusDevice/sdk-interface/Upgrade.js.map +1 -0
- package/lib/AurusDevice/sdk-interface/XmlElementString.d.ts +3 -0
- package/lib/AurusDevice/sdk-interface/XmlElementString.js +3 -0
- package/lib/AurusDevice/sdk-interface/XmlElementString.js.map +1 -0
- package/lib/AurusDevice/sdk-interface/index.d.ts +3 -0
- package/lib/PaymentDeviceFactory.d.ts +5 -5
- package/lib/PaymentDeviceFactory.js +16 -22
- package/lib/PaymentDeviceFactory.js.map +1 -1
- package/lib/PaymentDeviceService.d.ts +13 -12
- package/lib/PaymentDeviceService.js +114 -71
- package/lib/PaymentDeviceService.js.map +1 -1
- package/lib/ScannerDeviceFactory.d.ts +11 -0
- package/lib/ScannerDeviceFactory.js +27 -0
- package/lib/ScannerDeviceFactory.js.map +1 -0
- package/lib/ScannerDeviceService.d.ts +13 -0
- package/lib/ScannerDeviceService.js +110 -0
- package/lib/ScannerDeviceService.js.map +1 -0
- package/lib/configs/inversify/inversify.config.d.ts +3 -0
- package/lib/configs/inversify/inversify.config.js +15 -0
- package/lib/configs/inversify/inversify.config.js.map +1 -0
- package/lib/constants/constants.d.ts +62 -38
- package/lib/constants/constants.js +64 -42
- package/lib/constants/constants.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/interfaces/IDeviceStatus.d.ts +1 -0
- package/lib/interfaces/index.d.ts +1 -0
- package/lib/interfaces/payment/IPayment.d.ts +17 -18
- package/lib/interfaces/payment/messages/requests.d.ts +2 -3
- package/lib/interfaces/payment/messages/responses.d.ts +13 -6
- package/lib/interfaces/scanner/IScanner.d.ts +23 -0
- package/lib/interfaces/scanner/IScanner.js +3 -0
- package/lib/interfaces/scanner/IScanner.js.map +1 -0
- package/lib/interfaces/scanner/index.d.ts +1 -0
- package/lib/interfaces/scanner/index.js +3 -0
- package/lib/interfaces/scanner/index.js.map +1 -0
- package/package.json +11 -9
- package/types/react-native-xml2js/index.d.ts +5 -0
- package/lib/AurusDevice/AurusPaymentDevice.d.ts +0 -77
- package/lib/AurusDevice/AurusPaymentDevice.js +0 -473
- package/lib/AurusDevice/AurusPaymentDevice.js.map +0 -1
- package/types/money-works/index.d.ts +0 -49
|
@@ -48,6 +48,75 @@ public class AdyenPaymentTerminal extends VendorPaymentTerminal {
|
|
|
48
48
|
final Map<String, Object> constants = new HashMap<>();
|
|
49
49
|
constants.put(native_exampleResponse1_name, native_exampleResponse1);
|
|
50
50
|
constants.put(native_exampleResponse2_name, native_exampleResponse2);
|
|
51
|
+
|
|
52
|
+
final Map<String, Object> adyenConstants = new HashMap<>();
|
|
53
|
+
final Map<String, Object> device = new HashMap<>();
|
|
54
|
+
device.put("Initializing", 0);
|
|
55
|
+
device.put("Initialized", 0);
|
|
56
|
+
device.put("NotBoarded", 0);
|
|
57
|
+
device.put("Error", 0);
|
|
58
|
+
device.put("Stopped", 0);
|
|
59
|
+
device.put("Gone", 0);
|
|
60
|
+
|
|
61
|
+
final Map<String, Object> login = new HashMap<>();
|
|
62
|
+
login.put("LoggedIn", 0);
|
|
63
|
+
login.put("LoggedOut", 0);
|
|
64
|
+
login.put("LoggingIn", 0);
|
|
65
|
+
login.put("LoggingOut", 0);
|
|
66
|
+
|
|
67
|
+
final Map<String, Object> retrieveDevice = new HashMap<>();
|
|
68
|
+
retrieveDevice.put("Failure", 0);
|
|
69
|
+
retrieveDevice.put("Success", 0);
|
|
70
|
+
|
|
71
|
+
final Map<String, Object> status = new HashMap<>();
|
|
72
|
+
status.put("Device", device);
|
|
73
|
+
status.put("Login", login);
|
|
74
|
+
status.put("RetrieveDevice", retrieveDevice);
|
|
75
|
+
|
|
76
|
+
adyenConstants.put("Status", status);
|
|
77
|
+
|
|
78
|
+
final Map<String, Object> transactionTypes = new HashMap<>();
|
|
79
|
+
transactionTypes.put("GoodsServices", 0);
|
|
80
|
+
transactionTypes.put("Refund", 0);
|
|
81
|
+
transactionTypes.put("Cash", 0);
|
|
82
|
+
|
|
83
|
+
adyenConstants.put("TransactionTypes", transactionTypes);
|
|
84
|
+
|
|
85
|
+
final Map<String, Object> finalTenderStates = new HashMap<>();
|
|
86
|
+
finalTenderStates.put("NotFinal", 0);
|
|
87
|
+
finalTenderStates.put("Approved", 0);
|
|
88
|
+
finalTenderStates.put("Declined", 0);
|
|
89
|
+
finalTenderStates.put("Cancelled", 0);
|
|
90
|
+
finalTenderStates.put("Error", 0);
|
|
91
|
+
finalTenderStates.put("Unknown", 0);
|
|
92
|
+
|
|
93
|
+
adyenConstants.put("FinalTenderStates", finalTenderStates);
|
|
94
|
+
|
|
95
|
+
final Map<String, Object> cardScheme = new HashMap<>();
|
|
96
|
+
cardScheme.put("Error", 0);
|
|
97
|
+
cardScheme.put("VisaVisa", 0);
|
|
98
|
+
cardScheme.put("VisaElectron", 0);
|
|
99
|
+
cardScheme.put("VisaVPay", 0);
|
|
100
|
+
cardScheme.put("VisaPlus", 0);
|
|
101
|
+
cardScheme.put("VisaDankort", 0);
|
|
102
|
+
cardScheme.put("MasterCardDebit", 0);
|
|
103
|
+
cardScheme.put("MasterCardMaestro", 0);
|
|
104
|
+
cardScheme.put("MasterCardMaestroUK", 0);
|
|
105
|
+
cardScheme.put("MasterCardMasterCard", 0);
|
|
106
|
+
cardScheme.put("AmericanExpress", 0);
|
|
107
|
+
cardScheme.put("JCB", 0);
|
|
108
|
+
cardScheme.put("DinersClub", 0);
|
|
109
|
+
cardScheme.put("Dankort", 0);
|
|
110
|
+
cardScheme.put("Discover", 0);
|
|
111
|
+
cardScheme.put("Laser", 0);
|
|
112
|
+
cardScheme.put("BCMC", 0);
|
|
113
|
+
cardScheme.put("Solo", 0);
|
|
114
|
+
cardScheme.put("Bijenkorf", 0);
|
|
115
|
+
cardScheme.put("CUP", 0);
|
|
116
|
+
|
|
117
|
+
adyenConstants.put("CardScheme", cardScheme);
|
|
118
|
+
constants.put("AdyenConstants", adyenConstants);
|
|
119
|
+
|
|
51
120
|
return constants;
|
|
52
121
|
}
|
|
53
122
|
}
|
|
Binary file
|
|
@@ -1,96 +1,98 @@
|
|
|
1
|
-
//
|
|
2
|
-
// AurusEnterpriseSDK.h
|
|
3
|
-
//
|
|
4
|
-
// Created by
|
|
5
|
-
// Copyright (c) 2016 Aurus. All rights reserved.
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
#import <Foundation/Foundation.h>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
//
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
1
|
+
//
|
|
2
|
+
// AurusEnterpriseSDK.h
|
|
3
|
+
//
|
|
4
|
+
// Created by Aurus on 18/3/16.
|
|
5
|
+
// Copyright (c) 2016 Aurus. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@protocol AESDKProtocols <NSObject>
|
|
12
|
+
|
|
13
|
+
-(void)onAESDKResponse:(NSString *)withResponse;
|
|
14
|
+
|
|
15
|
+
@optional
|
|
16
|
+
-(void)onAESDKLogResponse: (NSString *)withResponse;
|
|
17
|
+
|
|
18
|
+
@end
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
@interface AurusEnterpriseSDK : NSObject
|
|
22
|
+
|
|
23
|
+
typedef void(^onAESDKCompletionResponse)(NSString *xmlResponse);
|
|
24
|
+
@property (atomic,copy) void(^onAESDKCompletionResponse)(NSString *xmlResponse);
|
|
25
|
+
|
|
26
|
+
@property(nonatomic,retain)id setAESDKDelegateRefference;
|
|
27
|
+
|
|
28
|
+
//BY this Method Calling the Response of AESDK will get in onAESDKResponse Delegate Method
|
|
29
|
+
-(void)OnAESDKProcessRequest:(NSString *)xmlRequest;
|
|
30
|
+
|
|
31
|
+
//BY this Method Calling the Response of AESDK will get Completion Handler.
|
|
32
|
+
-(void)OnAESDKProcessRequest:(NSString *)xmlRequest onCompletion:(onAESDKCompletionResponse)completionBlock;
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
//BY this Method Calling the Response of AESDK will get in onAESDKLogResponse Delegate Method
|
|
36
|
+
-(void)OnAESDKLogProcessRequest;
|
|
37
|
+
|
|
38
|
+
///
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
#pragma mark- Utility Methods
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
Log file details
|
|
46
|
+
|
|
47
|
+
@return NSMutableDictionary log file details
|
|
48
|
+
*/
|
|
49
|
+
-(NSMutableDictionary *)getLogFileDetails;
|
|
50
|
+
|
|
51
|
+
typedef enum {
|
|
52
|
+
EventSwipeOrInsertOrTap = 501, // Notify when insert/swipe prompt on swiper device.
|
|
53
|
+
EventEnterManualCardEntry, // Notify Manual entry prompt on swiper device.
|
|
54
|
+
EventProcessing, // Notify
|
|
55
|
+
EventEnterPIN, // Notify when Pin prompt appears on Swiper device
|
|
56
|
+
EventEnterZIP, // Notify when Zip prompt appears on Swiper device
|
|
57
|
+
EventEnterSSN, // Notify when SSN prompt appears on Swiper device
|
|
58
|
+
EventEnterDOB,
|
|
59
|
+
EventEnterAnnualIncome,
|
|
60
|
+
EventEnterExpiryDate, // Notify when ExpiryDate prompt appears on Swiper device
|
|
61
|
+
EventEnterCVV, // Notify when CVV prompt appears on Swiper device
|
|
62
|
+
EventEnterTIP, // Notify when TIP prompt appears on Swiper device
|
|
63
|
+
EventConfirmation, // Notify when Confirmation prompt appears on Swiper device
|
|
64
|
+
EventProcessingTransaction, // Notify when Processing Transaction Request
|
|
65
|
+
|
|
66
|
+
//E355 Device Events
|
|
67
|
+
EventBarcodeInformation, // Notify when device reads barcode data
|
|
68
|
+
EventDeviceNotConnected, // Notify when device not connected
|
|
69
|
+
EventDeviceConnecting, // Notify when device is in connecting state but not connected yet
|
|
70
|
+
EventDeviceConnected, // Notify when device is connected
|
|
71
|
+
EventDeviceConfigurationStarted, // Notify when EMV Configuration started
|
|
72
|
+
EventDeviceConfigurationCompleted, // Notify when EMV Configuration Completed
|
|
73
|
+
EventDeviceConfigurationFailed, // Notify when EMV Configuration failed
|
|
74
|
+
EventDeviceAlreadyConfigured, // Notify when EMV Configuration already configured.
|
|
75
|
+
EventFileDownloadProgress, // Notify when File downloading is in progress.
|
|
76
|
+
EventFileDownloadFailed, // Notify when File downloading Failed.
|
|
77
|
+
EventFileDownloadRetry, // Notify when File download retrying.
|
|
78
|
+
EventFileUploadProgress, // Notify when File uploading is in progress.
|
|
79
|
+
EventFileUploadFailed, // Notify when File uploading Failed.
|
|
80
|
+
EventFileUploadRetry, // Notify when File upload retrying.
|
|
81
|
+
EventPEDFileUpgrade, // Notify when File upgrade process running on PED device.
|
|
82
|
+
EventPEDFileUpgradeFailed, // Notify when File upgrades/pushed failed.
|
|
83
|
+
EventPEDFileUpgradeCompleted, // Notify when File upgrades/pushed Completed.
|
|
84
|
+
EventPEDFileTransferInfo, // Notify with transfer details.
|
|
85
|
+
EventPEDFileTransferProgress, // Notify with file transfer progress
|
|
86
|
+
|
|
87
|
+
EventCaptureSignatureOnPOS,
|
|
88
|
+
EventNone = 0
|
|
89
|
+
|
|
90
|
+
}NotificationEvent;
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
typedef enum {
|
|
94
|
+
POSEventSignatureDetails = 401
|
|
95
|
+
|
|
96
|
+
}POSNotificationEvent;
|
|
97
|
+
|
|
96
98
|
@end
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ADYAccountData.h
|
|
3
|
+
// AdyenPOSLib
|
|
4
|
+
//
|
|
5
|
+
// Created by Jeroen Koops on 5/14/13.
|
|
6
|
+
//
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Class holding data about the account that is currently logged in.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
@interface ADYAccountData : NSObject
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The merchant currently logged in.
|
|
19
|
+
*/
|
|
20
|
+
@property (nonatomic, readonly) NSString* merchant;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* The username currently logged in.
|
|
24
|
+
*/
|
|
25
|
+
@property (nonatomic, readonly) NSString* username;
|
|
26
|
+
@end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ADYAdditionalDataRequest.h
|
|
3
|
+
// AdyenPOSLib
|
|
4
|
+
//
|
|
5
|
+
// Created by Jeroen Koops on 4/11/13.
|
|
6
|
+
//
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
@class ADYTransactionProcessor;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Request-object used to inform the ADYTransactionProcessorDelegate that
|
|
15
|
+
* additional data is available.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
@interface ADYAdditionalDataRequest : NSObject
|
|
19
|
+
|
|
20
|
+
/** Merchant specific additional data. */
|
|
21
|
+
@property (readonly) NSDictionary *additionalData;
|
|
22
|
+
|
|
23
|
+
/** The original transaction amount, in minor currency units (e.g. cents). */
|
|
24
|
+
@property (readonly) NSNumber *transactionAmount;
|
|
25
|
+
|
|
26
|
+
/** The transaction currency. */
|
|
27
|
+
@property (readonly) NSString *transactionCurrency;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
Continue transaction-processing, either was an updated amount, or with the same amount.
|
|
31
|
+
|
|
32
|
+
@param amount The amount to continue the transaction with. May be `nil`, to continue with the current amount,
|
|
33
|
+
or an amount in minor currency units (e.g. cents) to continue with an updated amount.
|
|
34
|
+
*/
|
|
35
|
+
- (void)continueWithUpdatedAmount:(NSNumber *)amount;
|
|
36
|
+
- (void)continueWithUpdatedAmount:(NSNumber *)amount additionalData:(NSDictionary *)additionalData;
|
|
37
|
+
|
|
38
|
+
@end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Created by Sam on 8/2/12.
|
|
3
|
+
//
|
|
4
|
+
//
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
#import <Foundation/Foundation.h>
|
|
8
|
+
|
|
9
|
+
@interface ADYAmount : NSObject
|
|
10
|
+
|
|
11
|
+
@property(nonatomic, copy) NSString *currency;
|
|
12
|
+
@property(nonatomic, copy) NSString *value;
|
|
13
|
+
|
|
14
|
+
- (instancetype)initWithCurrency:(NSString *)currency value:(NSString *)value;
|
|
15
|
+
|
|
16
|
+
@end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ADYAppData.h
|
|
3
|
+
// AdyenToolkit
|
|
4
|
+
//
|
|
5
|
+
// Created by Jeroen Koops on 4/10/13.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
/** Class containing data about the app.
|
|
11
|
+
*/
|
|
12
|
+
@interface ADYAppData : NSObject
|
|
13
|
+
|
|
14
|
+
@property (nonatomic, strong, readonly) NSString *libImplementation;
|
|
15
|
+
@property (nonatomic, strong, readonly) NSString *devicePlatform;
|
|
16
|
+
@property (nonatomic, strong, readonly) NSString *deviceName;
|
|
17
|
+
@property (nonatomic, strong, readonly) NSString *deviceVersion;
|
|
18
|
+
@property (nonatomic, strong, readonly) NSString *applicationName;
|
|
19
|
+
@property (nonatomic, strong, readonly) NSString *AdyenLibraryVersion;
|
|
20
|
+
@property (nonatomic, strong, readonly) NSString *integratorName;
|
|
21
|
+
|
|
22
|
+
+ (ADYAppData *)shared;
|
|
23
|
+
|
|
24
|
+
- (NSDictionary *)dictionaryRepresentation;
|
|
25
|
+
|
|
26
|
+
@end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ADYCashTransactionRequest.h
|
|
3
|
+
// Pods
|
|
4
|
+
//
|
|
5
|
+
// Created by Oleg Lutsenko on 3/15/16.
|
|
6
|
+
//
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
@class ADYTransactionData;
|
|
12
|
+
|
|
13
|
+
@interface ADYCashTransactionRequest : NSObject
|
|
14
|
+
|
|
15
|
+
/** The currency to use on the transaction. */
|
|
16
|
+
@property (nonatomic, strong) NSString *currency;
|
|
17
|
+
|
|
18
|
+
/** The amount to process on the transaction in minor units (cents). */
|
|
19
|
+
@property (nonatomic, strong) NSNumber *amount;
|
|
20
|
+
|
|
21
|
+
/** The (merchant) reference for the transacion */
|
|
22
|
+
@property (nonatomic, strong) NSString *reference;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Starts the Cash transaction asynchronous request and invokes the `completion` block when finished.
|
|
26
|
+
*
|
|
27
|
+
* If something went wrong during the request, the error object will contain the details.
|
|
28
|
+
*
|
|
29
|
+
* If the `result` object is not nil, the request was successfull. The `finalState` will indicate
|
|
30
|
+
* whether the transaction was APPROVED, DECLINED or ERROR. Check the `declineInfo` and `errorInfo` properties
|
|
31
|
+
* for more info.
|
|
32
|
+
*/
|
|
33
|
+
- (void)startWithCompletion:(void (^)(ADYTransactionData *result, NSError *error))completion;
|
|
34
|
+
|
|
35
|
+
@end
|