@tap-payments/apple-pay-button 0.0.81-development → 0.0.83-development

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.
Files changed (43) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +240 -240
  3. package/build/@types/ApplePayButtonProps.d.ts +129 -129
  4. package/build/@types/ApplePayButtonProps.js +1 -1
  5. package/build/@types/charge.d.ts +57 -57
  6. package/build/@types/charge.js +1 -1
  7. package/build/@types/checkoutProfile.d.ts +216 -195
  8. package/build/@types/checkoutProfile.js +1 -1
  9. package/build/@types/enums.d.ts +65 -65
  10. package/build/@types/enums.js +76 -76
  11. package/build/@types/index.d.ts +6 -6
  12. package/build/@types/index.js +6 -6
  13. package/build/@types/tapLocalisation.d.ts +193 -193
  14. package/build/@types/tapLocalisation.js +1 -1
  15. package/build/@types/tapTheme.d.ts +842 -842
  16. package/build/@types/tapTheme.js +1 -1
  17. package/build/api.d.ts +29 -29
  18. package/build/api.js +244 -244
  19. package/build/constants/index.d.ts +3 -3
  20. package/build/constants/index.js +3 -3
  21. package/build/features/ApplePayButton/ApplePayButton.d.ts +4 -4
  22. package/build/features/ApplePayButton/ApplePayButton.js +49 -49
  23. package/build/features/ApplePayButton/index.d.ts +3 -3
  24. package/build/features/ApplePayButton/index.js +2 -2
  25. package/build/hooks/index.d.ts +1 -1
  26. package/build/hooks/index.js +1 -1
  27. package/build/hooks/useApplePay.d.ts +93 -93
  28. package/build/hooks/useApplePay.js +447 -441
  29. package/build/hooks/useMerchantApplePay.d.ts +20 -20
  30. package/build/hooks/useMerchantApplePay.js +176 -176
  31. package/build/index.d.ts +4 -4
  32. package/build/index.js +13 -13
  33. package/build/utils/config.d.ts +14 -14
  34. package/build/utils/config.js +65 -65
  35. package/build/utils/defaultValues.d.ts +2 -2
  36. package/build/utils/defaultValues.js +27 -27
  37. package/build/utils/html.d.ts +1 -1
  38. package/build/utils/html.js +9 -9
  39. package/build/utils/index.d.ts +4 -4
  40. package/build/utils/index.js +4 -4
  41. package/build/utils/theme.d.ts +12 -12
  42. package/build/utils/theme.js +61 -61
  43. package/package.json +109 -109
@@ -1,76 +1,76 @@
1
- export var Locale;
2
- (function (Locale) {
3
- Locale["EN"] = "en";
4
- Locale["AR"] = "ar";
5
- Locale["DYNAMIC"] = "dynamic";
6
- })(Locale || (Locale = {}));
7
- export var ThemeMode;
8
- (function (ThemeMode) {
9
- ThemeMode["DARK"] = "dark";
10
- ThemeMode["LIGHT"] = "light";
11
- ThemeMode["DYNAMIC"] = "dynamic";
12
- })(ThemeMode || (ThemeMode = {}));
13
- export var Edges;
14
- (function (Edges) {
15
- Edges["STRAIGHT"] = "straight";
16
- Edges["CURVED"] = "curved";
17
- Edges["CIRCULAR"] = "circular";
18
- })(Edges || (Edges = {}));
19
- export var ColorStyle;
20
- (function (ColorStyle) {
21
- ColorStyle["COLORED"] = "colored";
22
- ColorStyle["MONOCHROME"] = "monochrome";
23
- })(ColorStyle || (ColorStyle = {}));
24
- export var Scope;
25
- (function (Scope) {
26
- Scope["CHARGE"] = "charge";
27
- Scope["AUTHORIZE"] = "authorize";
28
- Scope["TAP_TOKEN"] = "taptoken";
29
- Scope["APPLE_PAY_TOKEN"] = "applepaytoken";
30
- })(Scope || (Scope = {}));
31
- export var ButtonStyle;
32
- (function (ButtonStyle) {
33
- ButtonStyle["Black"] = "black";
34
- ButtonStyle["White"] = "white";
35
- ButtonStyle["WhiteOutline"] = "white-outline";
36
- })(ButtonStyle || (ButtonStyle = {}));
37
- export var FullThemeMode;
38
- (function (FullThemeMode) {
39
- FullThemeMode["DARK"] = "dark";
40
- FullThemeMode["LIGHT"] = "light";
41
- FullThemeMode["LIGHT_MONO"] = "light_mono";
42
- FullThemeMode["DARK_COLORED"] = "dark_colored";
43
- })(FullThemeMode || (FullThemeMode = {}));
44
- export var ButtonType;
45
- (function (ButtonType) {
46
- ButtonType["BOOK"] = "book";
47
- ButtonType["BUY"] = "buy";
48
- ButtonType["CHECK_OUT"] = "check-out";
49
- ButtonType["PAY"] = "pay";
50
- ButtonType["PLAIN"] = "plain";
51
- ButtonType["SUBSCRIBE"] = "subscribe";
52
- })(ButtonType || (ButtonType = {}));
53
- export var CHARGE_CODE;
54
- (function (CHARGE_CODE) {
55
- CHARGE_CODE["SUCCESS"] = "000";
56
- CHARGE_CODE["AUTHORIZED"] = "001";
57
- CHARGE_CODE["IN_PROGRESS"] = "200";
58
- })(CHARGE_CODE || (CHARGE_CODE = {}));
59
- export var MerchantCapabilities;
60
- (function (MerchantCapabilities) {
61
- MerchantCapabilities["Supports3DS"] = "supports3DS";
62
- MerchantCapabilities["SupportsCredit"] = "supportsCredit";
63
- MerchantCapabilities["SupportsDebit"] = "supportsDebit";
64
- })(MerchantCapabilities || (MerchantCapabilities = {}));
65
- export var SupportedNetworks;
66
- (function (SupportedNetworks) {
67
- SupportedNetworks["Amex"] = "amex";
68
- SupportedNetworks["Mada"] = "mada";
69
- SupportedNetworks["MasterCard"] = "masterCard";
70
- SupportedNetworks["Visa"] = "visa";
71
- SupportedNetworks["ChinaUnionPay"] = "chinaUnionPay";
72
- SupportedNetworks["Discover"] = "discover";
73
- SupportedNetworks["Electron"] = "electron";
74
- SupportedNetworks["Jcb"] = "jcb";
75
- SupportedNetworks["Maestro"] = "maestro";
76
- })(SupportedNetworks || (SupportedNetworks = {}));
1
+ export var Locale;
2
+ (function (Locale) {
3
+ Locale["EN"] = "en";
4
+ Locale["AR"] = "ar";
5
+ Locale["DYNAMIC"] = "dynamic";
6
+ })(Locale || (Locale = {}));
7
+ export var ThemeMode;
8
+ (function (ThemeMode) {
9
+ ThemeMode["DARK"] = "dark";
10
+ ThemeMode["LIGHT"] = "light";
11
+ ThemeMode["DYNAMIC"] = "dynamic";
12
+ })(ThemeMode || (ThemeMode = {}));
13
+ export var Edges;
14
+ (function (Edges) {
15
+ Edges["STRAIGHT"] = "straight";
16
+ Edges["CURVED"] = "curved";
17
+ Edges["CIRCULAR"] = "circular";
18
+ })(Edges || (Edges = {}));
19
+ export var ColorStyle;
20
+ (function (ColorStyle) {
21
+ ColorStyle["COLORED"] = "colored";
22
+ ColorStyle["MONOCHROME"] = "monochrome";
23
+ })(ColorStyle || (ColorStyle = {}));
24
+ export var Scope;
25
+ (function (Scope) {
26
+ Scope["CHARGE"] = "charge";
27
+ Scope["AUTHORIZE"] = "authorize";
28
+ Scope["TAP_TOKEN"] = "taptoken";
29
+ Scope["APPLE_PAY_TOKEN"] = "applepaytoken";
30
+ })(Scope || (Scope = {}));
31
+ export var ButtonStyle;
32
+ (function (ButtonStyle) {
33
+ ButtonStyle["Black"] = "black";
34
+ ButtonStyle["White"] = "white";
35
+ ButtonStyle["WhiteOutline"] = "white-outline";
36
+ })(ButtonStyle || (ButtonStyle = {}));
37
+ export var FullThemeMode;
38
+ (function (FullThemeMode) {
39
+ FullThemeMode["DARK"] = "dark";
40
+ FullThemeMode["LIGHT"] = "light";
41
+ FullThemeMode["LIGHT_MONO"] = "light_mono";
42
+ FullThemeMode["DARK_COLORED"] = "dark_colored";
43
+ })(FullThemeMode || (FullThemeMode = {}));
44
+ export var ButtonType;
45
+ (function (ButtonType) {
46
+ ButtonType["BOOK"] = "book";
47
+ ButtonType["BUY"] = "buy";
48
+ ButtonType["CHECK_OUT"] = "check-out";
49
+ ButtonType["PAY"] = "pay";
50
+ ButtonType["PLAIN"] = "plain";
51
+ ButtonType["SUBSCRIBE"] = "subscribe";
52
+ })(ButtonType || (ButtonType = {}));
53
+ export var CHARGE_CODE;
54
+ (function (CHARGE_CODE) {
55
+ CHARGE_CODE["SUCCESS"] = "000";
56
+ CHARGE_CODE["AUTHORIZED"] = "001";
57
+ CHARGE_CODE["IN_PROGRESS"] = "200";
58
+ })(CHARGE_CODE || (CHARGE_CODE = {}));
59
+ export var MerchantCapabilities;
60
+ (function (MerchantCapabilities) {
61
+ MerchantCapabilities["Supports3DS"] = "supports3DS";
62
+ MerchantCapabilities["SupportsCredit"] = "supportsCredit";
63
+ MerchantCapabilities["SupportsDebit"] = "supportsDebit";
64
+ })(MerchantCapabilities || (MerchantCapabilities = {}));
65
+ export var SupportedNetworks;
66
+ (function (SupportedNetworks) {
67
+ SupportedNetworks["Amex"] = "amex";
68
+ SupportedNetworks["Mada"] = "mada";
69
+ SupportedNetworks["MasterCard"] = "masterCard";
70
+ SupportedNetworks["Visa"] = "visa";
71
+ SupportedNetworks["ChinaUnionPay"] = "chinaUnionPay";
72
+ SupportedNetworks["Discover"] = "discover";
73
+ SupportedNetworks["Electron"] = "electron";
74
+ SupportedNetworks["Jcb"] = "jcb";
75
+ SupportedNetworks["Maestro"] = "maestro";
76
+ })(SupportedNetworks || (SupportedNetworks = {}));
@@ -1,6 +1,6 @@
1
- export * from './charge';
2
- export * from './checkoutProfile';
3
- export * from './ApplePayButtonProps';
4
- export * from './enums';
5
- export * from './tapLocalisation';
6
- export * from './tapTheme';
1
+ export * from './charge';
2
+ export * from './checkoutProfile';
3
+ export * from './ApplePayButtonProps';
4
+ export * from './enums';
5
+ export * from './tapLocalisation';
6
+ export * from './tapTheme';
@@ -1,6 +1,6 @@
1
- export * from './charge';
2
- export * from './checkoutProfile';
3
- export * from './ApplePayButtonProps';
4
- export * from './enums';
5
- export * from './tapLocalisation';
6
- export * from './tapTheme';
1
+ export * from './charge';
2
+ export * from './checkoutProfile';
3
+ export * from './ApplePayButtonProps';
4
+ export * from './enums';
5
+ export * from './tapLocalisation';
6
+ export * from './tapTheme';
@@ -1,193 +1,193 @@
1
- export type TapLocalizationResponse = Record<string, TapLocalization>;
2
- export interface TapLocalization {
3
- ActionButton: ActionButton;
4
- Common: Common;
5
- CurrencyChangeWidget: CurrencyChangeWidget;
6
- DeleteCard: DeleteCard;
7
- ExtraFees: DeleteCard;
8
- GoPay: GoPay;
9
- Hints: Hints;
10
- HorizontalHeaders: HorizontalHeaders;
11
- ItemList: ItemList;
12
- NFC: NFC;
13
- TapAsyncSection: TapAsyncSection;
14
- TapCardInputKit: TapCardInputKit;
15
- TapLoyaltySection: TapLoyaltySection;
16
- TapMerchantSection: TapMerchantSection;
17
- TapOtpView: TapOtpView;
18
- TapSwitchView: TapSwitchView;
19
- }
20
- interface TapSwitchView {
21
- goPay: GoPay2;
22
- mainCards: MainCards;
23
- mainTelecom: MainCards;
24
- merchant: GoPay2;
25
- }
26
- interface MainCards {
27
- notes: string;
28
- subtitle: string;
29
- titleEmpty: string;
30
- titleValid: string;
31
- }
32
- interface GoPay2 {
33
- notes: string;
34
- subtitle: string;
35
- title: string;
36
- }
37
- interface TapOtpView {
38
- Message: Message;
39
- }
40
- interface Message {
41
- Expired: string;
42
- Invalid: string;
43
- Ready: string;
44
- }
45
- interface TapMerchantSection {
46
- paymentFor: string;
47
- }
48
- interface TapLoyaltySection {
49
- amountView: AmountView;
50
- footerView: FooterView;
51
- headerView: HeaderView;
52
- hintView: HintView;
53
- }
54
- interface HintView {
55
- minimumWarning: string;
56
- }
57
- interface HeaderView {
58
- balance: string;
59
- lessThanMinimum: string;
60
- redeem: string;
61
- tc: string;
62
- }
63
- interface FooterView {
64
- amount: string;
65
- points: string;
66
- }
67
- interface AmountView {
68
- title: string;
69
- }
70
- interface TapCardInputKit {
71
- additionalLinePlaceHolder: string;
72
- cardCVVPlaceHolder: string;
73
- cardExpiryPlaceHolder: string;
74
- cardNamePlaceHolder: string;
75
- cardNumberPlaceHolder: string;
76
- cardSaveForTapInfoMessage: string;
77
- cardSaveForTapInfoTitle: string;
78
- cardSaveForTapLabel: string;
79
- cardSaveLabel: string;
80
- cardSectionTitle: string;
81
- cardSectionTitleOr: string;
82
- cityPlaceHolder: string;
83
- emailPlaceHolder: string;
84
- flatPlaceHolder: string;
85
- savedCardSectionTitle: string;
86
- weSupport: string;
87
- }
88
- interface TapAsyncSection {
89
- paymentCodeTitleLabel: string;
90
- paymentExpiryTitleLabel: string;
91
- paymentProgressLabel: string;
92
- paymentRecieptEmail: string;
93
- paymentRecieptLabel: string;
94
- paymentRecieptSms: string;
95
- paymentReferenceTitleLabel: string;
96
- paymentVisitBranchesLabel: string;
97
- }
98
- interface NFC {
99
- disabledNFC: string;
100
- enableNFC: string;
101
- nfcDescription: string;
102
- nfcUnsupported: string;
103
- scan: string;
104
- scanSuccess: string;
105
- }
106
- interface ItemList {
107
- Discount: string;
108
- hideDesc: string;
109
- showDesc: string;
110
- }
111
- interface HorizontalHeaders {
112
- GatewayHeader: GatewayHeader;
113
- SaveCardHeader: SaveCardHeader;
114
- }
115
- interface SaveCardHeader {
116
- contactCountryPickerHeader: string;
117
- contactDetailsSectionTitle: string;
118
- shippingSectionTitle: string;
119
- }
120
- interface GatewayHeader {
121
- leftTitle: string;
122
- rightTitle: string;
123
- webViewTitle: string;
124
- }
125
- interface Hints {
126
- Default: Default;
127
- Error: Error;
128
- GoPayLogin: GoPayLogin;
129
- Scanned: Scanned;
130
- Warning: Warning;
131
- }
132
- interface Warning {
133
- missingCVV: string;
134
- missingExpiryCVV: string;
135
- missingName: string;
136
- }
137
- interface Scanned {
138
- successFullScan: string;
139
- }
140
- interface GoPayLogin {
141
- otp: string;
142
- password: string;
143
- }
144
- interface Error {
145
- wrongCardNumber: string;
146
- }
147
- interface Default {
148
- scan: string;
149
- }
150
- interface GoPay {
151
- HintLabel: string;
152
- }
153
- interface DeleteCard {
154
- cancel: string;
155
- confirm: string;
156
- message: string;
157
- title: string;
158
- }
159
- interface CurrencyChangeWidget {
160
- confirmButton: string;
161
- enabledHeader: string;
162
- header: string;
163
- }
164
- interface Common {
165
- availableInOtherCurrencies: string;
166
- back: string;
167
- cancel: string;
168
- change: string;
169
- close: string;
170
- confirm: string;
171
- currencyAlert: string;
172
- done: string;
173
- edit: string;
174
- email: string;
175
- item: string;
176
- items: string;
177
- next: string;
178
- password: string;
179
- phone: string;
180
- previous: string;
181
- recent: string;
182
- }
183
- interface ActionButton {
184
- cancel: string;
185
- close: string;
186
- confirm: string;
187
- next: string;
188
- now: string;
189
- pay: string;
190
- resend: string;
191
- signin: string;
192
- }
193
- export {};
1
+ export type TapLocalizationResponse = Record<string, TapLocalization>;
2
+ export interface TapLocalization {
3
+ ActionButton: ActionButton;
4
+ Common: Common;
5
+ CurrencyChangeWidget: CurrencyChangeWidget;
6
+ DeleteCard: DeleteCard;
7
+ ExtraFees: DeleteCard;
8
+ GoPay: GoPay;
9
+ Hints: Hints;
10
+ HorizontalHeaders: HorizontalHeaders;
11
+ ItemList: ItemList;
12
+ NFC: NFC;
13
+ TapAsyncSection: TapAsyncSection;
14
+ TapCardInputKit: TapCardInputKit;
15
+ TapLoyaltySection: TapLoyaltySection;
16
+ TapMerchantSection: TapMerchantSection;
17
+ TapOtpView: TapOtpView;
18
+ TapSwitchView: TapSwitchView;
19
+ }
20
+ interface TapSwitchView {
21
+ goPay: GoPay2;
22
+ mainCards: MainCards;
23
+ mainTelecom: MainCards;
24
+ merchant: GoPay2;
25
+ }
26
+ interface MainCards {
27
+ notes: string;
28
+ subtitle: string;
29
+ titleEmpty: string;
30
+ titleValid: string;
31
+ }
32
+ interface GoPay2 {
33
+ notes: string;
34
+ subtitle: string;
35
+ title: string;
36
+ }
37
+ interface TapOtpView {
38
+ Message: Message;
39
+ }
40
+ interface Message {
41
+ Expired: string;
42
+ Invalid: string;
43
+ Ready: string;
44
+ }
45
+ interface TapMerchantSection {
46
+ paymentFor: string;
47
+ }
48
+ interface TapLoyaltySection {
49
+ amountView: AmountView;
50
+ footerView: FooterView;
51
+ headerView: HeaderView;
52
+ hintView: HintView;
53
+ }
54
+ interface HintView {
55
+ minimumWarning: string;
56
+ }
57
+ interface HeaderView {
58
+ balance: string;
59
+ lessThanMinimum: string;
60
+ redeem: string;
61
+ tc: string;
62
+ }
63
+ interface FooterView {
64
+ amount: string;
65
+ points: string;
66
+ }
67
+ interface AmountView {
68
+ title: string;
69
+ }
70
+ interface TapCardInputKit {
71
+ additionalLinePlaceHolder: string;
72
+ cardCVVPlaceHolder: string;
73
+ cardExpiryPlaceHolder: string;
74
+ cardNamePlaceHolder: string;
75
+ cardNumberPlaceHolder: string;
76
+ cardSaveForTapInfoMessage: string;
77
+ cardSaveForTapInfoTitle: string;
78
+ cardSaveForTapLabel: string;
79
+ cardSaveLabel: string;
80
+ cardSectionTitle: string;
81
+ cardSectionTitleOr: string;
82
+ cityPlaceHolder: string;
83
+ emailPlaceHolder: string;
84
+ flatPlaceHolder: string;
85
+ savedCardSectionTitle: string;
86
+ weSupport: string;
87
+ }
88
+ interface TapAsyncSection {
89
+ paymentCodeTitleLabel: string;
90
+ paymentExpiryTitleLabel: string;
91
+ paymentProgressLabel: string;
92
+ paymentRecieptEmail: string;
93
+ paymentRecieptLabel: string;
94
+ paymentRecieptSms: string;
95
+ paymentReferenceTitleLabel: string;
96
+ paymentVisitBranchesLabel: string;
97
+ }
98
+ interface NFC {
99
+ disabledNFC: string;
100
+ enableNFC: string;
101
+ nfcDescription: string;
102
+ nfcUnsupported: string;
103
+ scan: string;
104
+ scanSuccess: string;
105
+ }
106
+ interface ItemList {
107
+ Discount: string;
108
+ hideDesc: string;
109
+ showDesc: string;
110
+ }
111
+ interface HorizontalHeaders {
112
+ GatewayHeader: GatewayHeader;
113
+ SaveCardHeader: SaveCardHeader;
114
+ }
115
+ interface SaveCardHeader {
116
+ contactCountryPickerHeader: string;
117
+ contactDetailsSectionTitle: string;
118
+ shippingSectionTitle: string;
119
+ }
120
+ interface GatewayHeader {
121
+ leftTitle: string;
122
+ rightTitle: string;
123
+ webViewTitle: string;
124
+ }
125
+ interface Hints {
126
+ Default: Default;
127
+ Error: Error;
128
+ GoPayLogin: GoPayLogin;
129
+ Scanned: Scanned;
130
+ Warning: Warning;
131
+ }
132
+ interface Warning {
133
+ missingCVV: string;
134
+ missingExpiryCVV: string;
135
+ missingName: string;
136
+ }
137
+ interface Scanned {
138
+ successFullScan: string;
139
+ }
140
+ interface GoPayLogin {
141
+ otp: string;
142
+ password: string;
143
+ }
144
+ interface Error {
145
+ wrongCardNumber: string;
146
+ }
147
+ interface Default {
148
+ scan: string;
149
+ }
150
+ interface GoPay {
151
+ HintLabel: string;
152
+ }
153
+ interface DeleteCard {
154
+ cancel: string;
155
+ confirm: string;
156
+ message: string;
157
+ title: string;
158
+ }
159
+ interface CurrencyChangeWidget {
160
+ confirmButton: string;
161
+ enabledHeader: string;
162
+ header: string;
163
+ }
164
+ interface Common {
165
+ availableInOtherCurrencies: string;
166
+ back: string;
167
+ cancel: string;
168
+ change: string;
169
+ close: string;
170
+ confirm: string;
171
+ currencyAlert: string;
172
+ done: string;
173
+ edit: string;
174
+ email: string;
175
+ item: string;
176
+ items: string;
177
+ next: string;
178
+ password: string;
179
+ phone: string;
180
+ previous: string;
181
+ recent: string;
182
+ }
183
+ interface ActionButton {
184
+ cancel: string;
185
+ close: string;
186
+ confirm: string;
187
+ next: string;
188
+ now: string;
189
+ pay: string;
190
+ resend: string;
191
+ signin: string;
192
+ }
193
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};