@pcibooking/ewallet 1.0.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.
- package/README.md +164 -0
- package/package.json +33 -0
package/README.md
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
# PCI Booking eWallet Library
|
|
2
|
+
This is a TypeScript/JavaScript library that enables a single unified integration for collecting payments through PCI Booking.
|
|
3
|
+
|
|
4
|
+
# Getting Started
|
|
5
|
+
1. Installation process
|
|
6
|
+
Use: npm i @pcibooking/ewallet
|
|
7
|
+
|
|
8
|
+
2. Version history
|
|
9
|
+
1.0.1 - Including a pre-release for bank payments
|
|
10
|
+
1.0.1-beta.3
|
|
11
|
+
Added ApplePay version compatibility of Safari.
|
|
12
|
+
Initial BankPay implememtation.
|
|
13
|
+
|
|
14
|
+
1.0.1-beta.4
|
|
15
|
+
Change APPLE_JS_VERSION to 12.
|
|
16
|
+
|
|
17
|
+
1.0.1-beta.5
|
|
18
|
+
Initial support for bank paument: Europe open banking and USA ACH.
|
|
19
|
+
Expose the eWallet provider name used.
|
|
20
|
+
|
|
21
|
+
1.0.1-beta.6
|
|
22
|
+
Initial support for Credit card payments.
|
|
23
|
+
Fixes to Apple Pay.
|
|
24
|
+
|
|
25
|
+
1.0.1-beta.7
|
|
26
|
+
Complete support for Credit card payments.
|
|
27
|
+
Fixed tokenization results parsing.
|
|
28
|
+
|
|
29
|
+
1.0.1-beta.8
|
|
30
|
+
Support i18n.
|
|
31
|
+
|
|
32
|
+
1.0.1-beta.9
|
|
33
|
+
Support i18n fixes.
|
|
34
|
+
|
|
35
|
+
1.0.1-beta.10
|
|
36
|
+
Fix parsing results (Tokenization/Charge).
|
|
37
|
+
|
|
38
|
+
1.0.1-beta.11
|
|
39
|
+
Fix ApplePay session completion reporting.
|
|
40
|
+
|
|
41
|
+
1.0.1-beta.12
|
|
42
|
+
Packaging and publish revision.
|
|
43
|
+
Ignore ApplePay exception.
|
|
44
|
+
|
|
45
|
+
1.0.1-beta.13
|
|
46
|
+
Support 20 languages.
|
|
47
|
+
Support 3d secure in Card Pay.
|
|
48
|
+
|
|
49
|
+
1.0.1-beta.14
|
|
50
|
+
Support branding of popup windows.
|
|
51
|
+
|
|
52
|
+
1.0.1-beta.15
|
|
53
|
+
Expose 3ds data after tokenization.
|
|
54
|
+
|
|
55
|
+
1.0.2-beta.0
|
|
56
|
+
Support Charge + Tokenize.
|
|
57
|
+
Support unified result token.
|
|
58
|
+
|
|
59
|
+
1.0.2-beta.1
|
|
60
|
+
Accept 3ds results from CardEntry page
|
|
61
|
+
|
|
62
|
+
1.0.2-beta.2
|
|
63
|
+
Fixed bug in accepting 3ds results from CardEntry page
|
|
64
|
+
|
|
65
|
+
1.0.2-beta.3
|
|
66
|
+
Extended the returned model (EWalletResultData) with 2 additional properties, to include client-side errors.
|
|
67
|
+
/** Indicates whether client operation was successfu */
|
|
68
|
+
clientSuccess!: boolean;
|
|
69
|
+
|
|
70
|
+
/** In case client operation was unsuccessful */
|
|
71
|
+
clientErrorMessage: any;
|
|
72
|
+
|
|
73
|
+
The engine.parseResultToken supports the new structure.
|
|
74
|
+
|
|
75
|
+
1.0.2-beta.4
|
|
76
|
+
Fix ApplePay session validation returned data.
|
|
77
|
+
|
|
78
|
+
1.0.2-beta.5
|
|
79
|
+
Added logging in checkAvailability().
|
|
80
|
+
|
|
81
|
+
1.0.2-beta.6
|
|
82
|
+
Added logging in factory.
|
|
83
|
+
|
|
84
|
+
1.0.3-beta.0
|
|
85
|
+
Avoid usage of static class names, to allow minification.
|
|
86
|
+
|
|
87
|
+
1.0.3-beta.1
|
|
88
|
+
Bug fix in handling closed popup window returned message.
|
|
89
|
+
|
|
90
|
+
1.0.3-beta.2
|
|
91
|
+
Support PREAUTH_AND_TOKENIZE operation.
|
|
92
|
+
|
|
93
|
+
1.0.3-beta.3
|
|
94
|
+
Prevent popup window in card entry from closing in test mode.
|
|
95
|
+
Added exception handling in cardpay operation.
|
|
96
|
+
|
|
97
|
+
1.0.3-beta.4
|
|
98
|
+
Fix result token parsing.
|
|
99
|
+
|
|
100
|
+
1.0.3-beta.5
|
|
101
|
+
Disable popup window closing disablement from 1.0.3-beta.3.
|
|
102
|
+
|
|
103
|
+
1.0.3-beta.6
|
|
104
|
+
Fix popup window closing in CardPay.
|
|
105
|
+
|
|
106
|
+
1.0.3-beta.7
|
|
107
|
+
Added a formal status to ClientPaymentDataResults class.
|
|
108
|
+
Apple Pay user cancellation returned to caller.
|
|
109
|
+
|
|
110
|
+
1.0.4
|
|
111
|
+
Fix parsing of EWalletChargeResults.
|
|
112
|
+
|
|
113
|
+
1.0.5-beta.0
|
|
114
|
+
Update npm packages, including payTools-3ds with CyberSource support.
|
|
115
|
+
|
|
116
|
+
1.0.5-beta.1
|
|
117
|
+
Update payTools-3ds.
|
|
118
|
+
|
|
119
|
+
1.0.6-beta.0
|
|
120
|
+
Upi implementation.
|
|
121
|
+
|
|
122
|
+
1.0.6-beta.1
|
|
123
|
+
Otp implementation (Html).
|
|
124
|
+
|
|
125
|
+
3. Quick Guide
|
|
126
|
+
|
|
127
|
+
Initialize eWallet engine
|
|
128
|
+
-------------------------
|
|
129
|
+
const engine = new eWallet.Engine(eWalletToken, requiredAncillaryInfo, [language]);
|
|
130
|
+
|
|
131
|
+
Parameters
|
|
132
|
+
----------
|
|
133
|
+
sessionToken - Token obtained from the Orchestra or Shield service
|
|
134
|
+
requiredAncillaryInfo - billing/shipping address requirements (applicable on most eWallets)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
Detect available eWallets
|
|
138
|
+
-------------------------
|
|
139
|
+
const available = engine.checkAvailability();
|
|
140
|
+
Will obtain the list of eWallets available on the specific device and browser.
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
Start a payment session
|
|
144
|
+
-----------------------
|
|
145
|
+
engine.payBy(eWalletList, callback, buttonProperties);
|
|
146
|
+
Start payment process using specified list of eWallet providers and their respective button properties.
|
|
147
|
+
Parameters
|
|
148
|
+
----------
|
|
149
|
+
eWalletList list of requested eWallet providers and their respective button properties.
|
|
150
|
+
callback a callback handler that will be called once the payment operation is complete
|
|
151
|
+
buttonProperties [optional] Button properties
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
Obtaining results
|
|
155
|
+
-----------------
|
|
156
|
+
You may use the following methods in order to get data on the current session.
|
|
157
|
+
getSessionType();
|
|
158
|
+
parseResultToken();
|
|
159
|
+
getBillingInfo();
|
|
160
|
+
getShippingInfo();
|
|
161
|
+
|
|
162
|
+
# Build and Test
|
|
163
|
+
In order to use the library, you will need to have an account with PCI Booking. Use https://pcibooking.net/ to get an account.
|
|
164
|
+
Follow the API documentation at https://developers.pcibooking.net/ in order to obtain a session token.
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pcibooking/ewallet",
|
|
3
|
+
"version": "1.0.7",
|
|
4
|
+
"description": "PCI Booking library for eWallet payments (GooglePay, ApplePay, PayPal, Banks...)",
|
|
5
|
+
"scripts": {},
|
|
6
|
+
"files": [
|
|
7
|
+
"./dist/index.d.ts",
|
|
8
|
+
"./dist/index.js"
|
|
9
|
+
],
|
|
10
|
+
"keywords": [
|
|
11
|
+
"PCI Booking",
|
|
12
|
+
"Orchestra",
|
|
13
|
+
"BlueTime",
|
|
14
|
+
"3D Secure",
|
|
15
|
+
"3DS",
|
|
16
|
+
"Card authentication",
|
|
17
|
+
"Payment Orchestration",
|
|
18
|
+
"Google Pay",
|
|
19
|
+
"Apple Pay",
|
|
20
|
+
"PayPal",
|
|
21
|
+
"Bank transfer"
|
|
22
|
+
],
|
|
23
|
+
"author": "Yehuda Alon",
|
|
24
|
+
"license": "ISC",
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@paypal/paypal-js": "^8.2.0",
|
|
27
|
+
"@types/applepayjs": "^14.0.9",
|
|
28
|
+
"@types/googlepay": "^0.7.6",
|
|
29
|
+
"cross-fetch": "^4.1.0",
|
|
30
|
+
"deflate-js": "^0.2.3",
|
|
31
|
+
"paytools-3ds": "^3.2.0-beta.4"
|
|
32
|
+
}
|
|
33
|
+
}
|