@paydock/client-sdk 1.104.3-beta → 1.104.7-beta
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 +729 -405
- package/bundles/index.cjs +29624 -8753
- package/bundles/index.cjs.d.ts +484 -381
- package/bundles/index.cjs.map +1 -1
- package/bundles/index.mjs +29624 -8753
- package/bundles/index.mjs.d.ts +484 -381
- package/bundles/index.mjs.map +1 -1
- package/bundles/types/api/api-base.d.ts +14 -6
- package/bundles/types/api/api-base.d.ts.map +1 -1
- package/bundles/types/api/api-service-internal.d.ts +2 -1
- package/bundles/types/api/api-service-internal.d.ts.map +1 -1
- package/bundles/types/api/api.d.ts +1 -1
- package/bundles/types/api/api.d.ts.map +1 -1
- package/bundles/types/canvas-3ds/canvas-3ds.d.ts +1 -1
- package/bundles/types/canvas-3ds/canvas-3ds.d.ts.map +1 -1
- package/bundles/types/canvas-3ds/services/gpayments-service.d.ts +3 -3
- package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +1 -1
- package/bundles/types/checkout-button/afterpay/afterpay-checkout-button.d.ts +1 -1
- package/bundles/types/checkout-button/afterpay/afterpay-checkout-button.d.ts.map +1 -1
- package/bundles/types/checkout-button/checkout-button.d.ts +1 -1
- package/bundles/types/checkout-button/checkout-button.d.ts.map +1 -1
- package/bundles/types/checkout-button/paypal/paypal-checkout-button.d.ts +1 -1
- package/bundles/types/checkout-button/paypal/paypal-checkout-button.d.ts.map +1 -1
- package/bundles/types/checkout-button/runner/popup.runner.d.ts +1 -1
- package/bundles/types/checkout-button/zipmoney/zipmoney-checkout-button.d.ts +1 -1
- package/bundles/types/checkout-button/zipmoney/zipmoney-checkout-button.d.ts.map +1 -1
- package/bundles/types/components/container.d.ts +1 -0
- package/bundles/types/components/container.d.ts.map +1 -1
- package/bundles/types/components/http-core.d.ts.map +1 -1
- package/bundles/types/components/iframe-event.d.ts +17 -11
- package/bundles/types/components/iframe-event.d.ts.map +1 -1
- package/bundles/types/components/link.d.ts +3 -2
- package/bundles/types/components/link.d.ts.map +1 -1
- package/bundles/types/components/param.d.ts +6 -8
- package/bundles/types/components/param.d.ts.map +1 -1
- package/bundles/types/components/wallet-background.d.ts +2 -1
- package/bundles/types/components/wallet-background.d.ts.map +1 -1
- package/bundles/types/configs/env/environment.cba.d.ts +1 -1
- package/bundles/types/configs/env/environment.cba.d.ts.map +1 -1
- package/bundles/types/configs/env/environment.paydock.d.ts +1 -1
- package/bundles/types/configs/env/environment.paydock.d.ts.map +1 -1
- package/bundles/types/constants/validators.d.ts +45 -0
- package/bundles/types/constants/validators.d.ts.map +1 -0
- package/bundles/types/payment-source-widget/html-payment-source-widget.d.ts +17 -13
- package/bundles/types/payment-source-widget/html-payment-source-widget.d.ts.map +1 -1
- package/bundles/types/payment-source-widget/payment-source-widget.d.ts +1 -1
- package/bundles/types/payment-source-widget/payment-source-widget.d.ts.map +1 -1
- package/bundles/types/secure-remote-commerce/index.d.ts +102 -1
- package/bundles/types/secure-remote-commerce/index.d.ts.map +1 -1
- package/bundles/types/secure-remote-commerce/interfaces.d.ts +109 -32
- package/bundles/types/secure-remote-commerce/interfaces.d.ts.map +1 -1
- package/bundles/types/secure-remote-commerce/mastercard-secure-remote-commerce.d.ts +31 -0
- package/bundles/types/secure-remote-commerce/mastercard-secure-remote-commerce.d.ts.map +1 -0
- package/bundles/types/secure-remote-commerce/providers/mastercard-src/index.d.ts +2 -0
- package/bundles/types/secure-remote-commerce/providers/mastercard-src/index.d.ts.map +1 -0
- package/bundles/types/secure-remote-commerce/providers/{visa-src/visa-src.d.ts → mastercard-src/mastercard-src.d.ts} +5 -8
- package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts.map +1 -0
- package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts +13 -91
- package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts.map +1 -1
- package/bundles/types/shared/http/http-request.d.ts +14 -0
- package/bundles/types/shared/http/http-request.d.ts.map +1 -0
- package/bundles/types/shared/http/index.d.ts +2 -0
- package/bundles/types/shared/http/index.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts +15 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts +66 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts +14 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts +15 -0
- package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts +23 -0
- package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts +15 -0
- package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/repositories/index.d.ts +4 -0
- package/bundles/types/shared/services/instrumentation/repositories/index.d.ts.map +1 -0
- package/bundles/types/vault-display-widget/vault-display-widget.d.ts +1 -1
- package/bundles/types/vault-display-widget/vault-display-widget.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/apple.wallet-service.d.ts +2 -0
- package/bundles/types/wallet-buttons/apple.wallet-service.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/flypay-v2.wallet-service.d.ts +8 -1
- package/bundles/types/wallet-buttons/flypay-v2.wallet-service.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/google.wallet-service.d.ts +7 -4
- package/bundles/types/wallet-buttons/google.wallet-service.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/helpers/flypay-v2.helper.d.ts +4 -0
- package/bundles/types/wallet-buttons/helpers/flypay-v2.helper.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/index.d.ts +126 -0
- package/bundles/types/wallet-buttons/index.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/interfaces.d.ts +3 -0
- package/bundles/types/wallet-buttons/interfaces.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/paypal.wallet-service.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/wallet-buttons.d.ts +63 -121
- package/bundles/types/wallet-buttons/wallet-buttons.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts +1 -1
- package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/wallet-service.d.ts +7 -0
- package/bundles/types/wallet-buttons/wallet-service.d.ts.map +1 -1
- package/bundles/types/widget/configuration.d.ts +1 -1
- package/bundles/types/widget/configuration.d.ts.map +1 -1
- package/bundles/types/widget/html-multi-widget.d.ts +147 -76
- package/bundles/types/widget/html-multi-widget.d.ts.map +1 -1
- package/bundles/types/widget/html-widget.d.ts +1 -1
- package/bundles/types/widget/html-widget.d.ts.map +1 -1
- package/bundles/types/widget/multi-widget.d.ts.map +1 -1
- package/bundles/widget.umd.js +29624 -8753
- package/bundles/widget.umd.js.d.ts +484 -381
- package/bundles/widget.umd.js.map +1 -1
- package/bundles/widget.umd.js.min.d.ts +484 -381
- package/bundles/widget.umd.min.js +62 -1
- package/bundles/widget.umd.min.js.map +1 -1
- package/docs/api-ps-widget.md +12 -12
- package/docs/api-widget.md +211 -156
- package/docs/license.md +1 -1
- package/docs/secure-remote-commerce-examples.md +75 -101
- package/docs/secure-remote-commerce.md +185 -114
- package/docs/wallet-buttons-examples.md +48 -19
- package/docs/wallet-buttons.md +197 -2
- package/examples/multi-html-widget/simple.html +2 -1
- package/package.json +18 -15
- package/slate.md +123 -120
- package/bundles/types/secure-remote-commerce/providers/visa-src/helper.d.ts +0 -8
- package/bundles/types/secure-remote-commerce/providers/visa-src/helper.d.ts.map +0 -1
- package/bundles/types/secure-remote-commerce/providers/visa-src/index.d.ts +0 -2
- package/bundles/types/secure-remote-commerce/providers/visa-src/index.d.ts.map +0 -1
- package/bundles/types/secure-remote-commerce/providers/visa-src/visa-src.d.ts.map +0 -1
- package/bundles/types/secure-remote-commerce/providers/visa-src/visa-src.styles.d.ts +0 -9
- package/bundles/types/secure-remote-commerce/providers/visa-src/visa-src.styles.d.ts.map +0 -1
package/docs/license.md
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
## License
|
|
2
|
-
Copyright (c)
|
|
2
|
+
Copyright (c) 2024 paydock
|
|
@@ -1,26 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
You can find description of all methods and parameters [here](https://www.npmjs.com/package/@paydock/client-sdk#SRC).
|
|
1
|
+
# Secure Remote Commerce
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
Integrate with Mastercard SRC using Paydock's Mastercard SRC widget.
|
|
6
|
+
For a full description of the methods and parameters, reference the [README file](https://www.npmjs.com/package/@paydock/client-sdk#SRC).
|
|
5
7
|
|
|
6
8
|
## SRC simple example
|
|
7
9
|
|
|
8
|
-
|
|
10
|
+
The following section provides an example use case and integration for the widget.
|
|
11
|
+
|
|
12
|
+
### Create a Container
|
|
13
|
+
|
|
14
|
+
To integrate the SRC checkout iFrame, create a container in your HTML code. This container serves as the placeholder for the iFrame.
|
|
9
15
|
|
|
10
16
|
```html
|
|
11
|
-
<div id="checkoutButton"></div>
|
|
12
17
|
<div id="checkoutIframe"></div>
|
|
13
18
|
```
|
|
14
19
|
|
|
15
|
-
|
|
20
|
+
### Initialize the Widget
|
|
16
21
|
|
|
22
|
+
Use the following code to initialize your widget:
|
|
17
23
|
|
|
18
|
-
### Initialization
|
|
19
24
|
```javascript
|
|
20
|
-
var src = new paydock.
|
|
21
|
-
"#checkoutButton",
|
|
25
|
+
var src = new paydock.MastercardSRCClickToPay(
|
|
22
26
|
"#checkoutIframe",
|
|
23
|
-
"
|
|
27
|
+
"service_id",
|
|
24
28
|
"paydock_public_key_or_access_token",
|
|
25
29
|
{}, // meta
|
|
26
30
|
);
|
|
@@ -29,23 +33,22 @@ src.load();
|
|
|
29
33
|
|
|
30
34
|
```javascript
|
|
31
35
|
// ES2015 | TypeScript
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
var src = new SRC(
|
|
36
|
-
"#checkoutButton",
|
|
36
|
+
import { MastercardSRCClickToPay } from '@paydock/client-sdk';
|
|
37
|
+
var src = new MastercardSRCClickToPay(
|
|
37
38
|
"#checkoutIframe",
|
|
38
|
-
"
|
|
39
|
+
"service_id",
|
|
39
40
|
"paydock_public_key_or_access_token",
|
|
40
41
|
{}, // meta
|
|
41
42
|
);
|
|
42
43
|
src.load();
|
|
43
44
|
```
|
|
44
45
|
|
|
45
|
-
*NOTE:*
|
|
46
|
+
*NOTE:* Paydock recommends that you use a Paydock Access Token instead of a public key for security reasons in production environments. When creating your access token, you must enable the `Secure Remote Commerce` and add a whitelist for the domain of your checkout screen.
|
|
46
47
|
|
|
47
48
|
### Full example
|
|
48
49
|
|
|
50
|
+
A full example of the container and the initialized widget is as follows:
|
|
51
|
+
|
|
49
52
|
```html
|
|
50
53
|
<!DOCTYPE html>
|
|
51
54
|
<html lang="en">
|
|
@@ -55,14 +58,12 @@ src.load();
|
|
|
55
58
|
<style>iframe {border: 0;width: 40%;height: 300px;}</style>
|
|
56
59
|
</head>
|
|
57
60
|
<body>
|
|
58
|
-
<div id="checkoutButton"></div>
|
|
59
61
|
<div id="checkoutIframe"></div>
|
|
60
62
|
<script src="https://widget.paydock.com/sdk/latest/widget.umd.min.js" ></script>
|
|
61
63
|
<script>
|
|
62
|
-
var src = new paydock.
|
|
63
|
-
"#checkoutButton",
|
|
64
|
+
var src = new paydock.MastercardSRCClickToPay(
|
|
64
65
|
"#checkoutIframe",
|
|
65
|
-
"
|
|
66
|
+
"service_id",
|
|
66
67
|
"paydock_public_key_or_access_token",
|
|
67
68
|
{},
|
|
68
69
|
);
|
|
@@ -72,50 +73,30 @@ src.load();
|
|
|
72
73
|
</html>
|
|
73
74
|
```
|
|
74
75
|
|
|
76
|
+
## Customize your SRC Checkout
|
|
75
77
|
|
|
76
|
-
|
|
78
|
+
The following is an advanced example that includes customization. You can use these methods to enhance your checkout experience.
|
|
77
79
|
|
|
78
80
|
### Settings
|
|
79
81
|
|
|
80
82
|
```javascript
|
|
81
|
-
|
|
82
|
-
src.setEnv('sandbox'); // set enviroment
|
|
83
|
-
|
|
84
|
-
src.hideButton(); // hide button
|
|
85
|
-
|
|
86
|
-
src.showButton(); // show button
|
|
87
|
-
|
|
83
|
+
src.setEnv('sandbox'); // set environment
|
|
88
84
|
src.hideCheckout(); // hide checkout iframe
|
|
89
|
-
|
|
90
85
|
src.showCheckout(); // show checkout iframe
|
|
91
|
-
|
|
92
|
-
src.on('checkoutButtonLoaded', () => {
|
|
93
|
-
console.log("Button loaded");
|
|
94
|
-
});
|
|
95
|
-
|
|
96
|
-
src.on('checkoutButtonClicked', () => {
|
|
97
|
-
console.log("Button clicked");
|
|
98
|
-
});
|
|
99
|
-
|
|
100
86
|
src.on('iframeLoaded', () => {
|
|
101
87
|
console.log("Initial iframe loaded");
|
|
102
88
|
});
|
|
103
|
-
|
|
104
89
|
src.on('checkoutReady', () => {
|
|
105
90
|
console.log("Checkout ready to be used");
|
|
106
91
|
});
|
|
107
|
-
|
|
108
92
|
src.on('checkoutCompleted', (token) => {
|
|
109
93
|
console.log(token);
|
|
110
94
|
});
|
|
111
|
-
|
|
112
95
|
src.on('checkoutError', (error) => {
|
|
113
96
|
console.log(error);
|
|
114
97
|
});
|
|
115
98
|
```
|
|
116
99
|
|
|
117
|
-
Here you can see how you can use this methods to customize your checkout experience
|
|
118
|
-
|
|
119
100
|
### Full example
|
|
120
101
|
|
|
121
102
|
```html
|
|
@@ -127,64 +108,73 @@ Here you can see how you can use this methods to customize your checkout experie
|
|
|
127
108
|
<style>iframe {border: 0;width: 40%;height: 450px;}</style>
|
|
128
109
|
</head>
|
|
129
110
|
<body>
|
|
130
|
-
<div id="checkoutButton"></div>
|
|
131
111
|
<div id="checkoutIframe"></div>
|
|
132
112
|
<script src="https://widget.paydock.com/sdk/latest/widget.umd.min.js" ></script>
|
|
133
113
|
<script>
|
|
134
|
-
var src = new paydock.
|
|
135
|
-
"#checkoutButton",
|
|
114
|
+
var src = new paydock.MastercardSRCClickToPay(
|
|
136
115
|
"#checkoutIframe",
|
|
137
|
-
"
|
|
116
|
+
"service_id",
|
|
138
117
|
"paydock_public_key_or_access_token",
|
|
139
118
|
{},
|
|
140
119
|
);
|
|
141
|
-
|
|
120
|
+
src.on('iframeLoaded', () => {
|
|
121
|
+
console.log("Initial iframe loaded");
|
|
122
|
+
});
|
|
142
123
|
src.on('checkoutReady', () => {
|
|
143
124
|
console.log("Checkout ready to be used");
|
|
144
125
|
});
|
|
145
|
-
|
|
146
126
|
src.on('checkoutCompleted', (token) => {
|
|
147
127
|
console.log(token);
|
|
148
128
|
});
|
|
129
|
+
src.on('checkoutError', (error) => {
|
|
130
|
+
console.log(error);
|
|
131
|
+
});
|
|
149
132
|
src.load();
|
|
150
133
|
</script>
|
|
151
134
|
</body>
|
|
152
135
|
</html>
|
|
153
136
|
```
|
|
154
137
|
|
|
155
|
-
##
|
|
156
|
-
### Shipping address:
|
|
138
|
+
## Customize your billing address fields
|
|
157
139
|
|
|
158
|
-
To customize
|
|
140
|
+
To customize your billing address experience, Paydock uses a flag that manages whether a customer's billing address is mandatory.
|
|
141
|
+
The options for this customization are NONE (default option), and POSTAL_COUNTRY or FULL.
|
|
159
142
|
|
|
160
143
|
```
|
|
161
|
-
var src = new paydock.
|
|
162
|
-
"#checkoutButton",
|
|
144
|
+
var src = new paydock.MastercardSRCClickToPay(
|
|
163
145
|
"#checkoutIframe",
|
|
164
|
-
"
|
|
146
|
+
"service_id",
|
|
165
147
|
"paydock_public_key_or_access_token",
|
|
166
148
|
{
|
|
167
149
|
"dpa_transaction_options": {
|
|
168
|
-
"
|
|
150
|
+
"dpa_billing_preference": "FULL"
|
|
169
151
|
}
|
|
170
152
|
},
|
|
171
153
|
);
|
|
172
154
|
```
|
|
173
155
|
|
|
174
|
-
|
|
156
|
+
The SRC checkout in the example requires the billing address from the customer, which is then returned as a part of the checkout data. The data is then stored and leveraged in the Paydock charge.
|
|
157
|
+
You can also provide the billing address at the time of creating the charge. For example, if you have a different method for collecting the billing address, such as outside of the SRC checkout, you can provide it alongside other information at the charge creation step:
|
|
175
158
|
|
|
176
|
-
|
|
159
|
+
1. Disable the billing address in Paydock's SRC widget.
|
|
160
|
+
2. Get your One Time Token from the SRC widget alongside other details that may have been collected outside the SRC checkout as the shipping address.
|
|
161
|
+
3. Send the billing address when creating the charge.
|
|
177
162
|
|
|
178
163
|
```
|
|
179
164
|
POST v1/charges
|
|
180
|
-
|
|
181
165
|
{
|
|
182
166
|
"amount": "10.00",
|
|
183
167
|
"currency": "AUD",
|
|
184
|
-
"token": "
|
|
168
|
+
"token": "one_time_token",
|
|
185
169
|
"customer": {
|
|
186
170
|
"payment_source": {
|
|
187
|
-
"gateway_id": "gateway_id"
|
|
171
|
+
"gateway_id": "gateway_id",
|
|
172
|
+
"address_line1": "address_line1",
|
|
173
|
+
"address_line2": "address_line2",
|
|
174
|
+
"address_city": "address_city",
|
|
175
|
+
"address_postcode": "address_postcode",
|
|
176
|
+
"address_state": "address_state",
|
|
177
|
+
"address_country": "address_country"
|
|
188
178
|
}
|
|
189
179
|
},
|
|
190
180
|
"shipping": {
|
|
@@ -199,60 +189,44 @@ POST v1/charges
|
|
|
199
189
|
}
|
|
200
190
|
```
|
|
201
191
|
|
|
202
|
-
|
|
192
|
+
## How to customize accepted cards
|
|
203
193
|
|
|
204
|
-
|
|
194
|
+
You can send a flag `unaccepted_card_type` to block the usage of a specific card type. The available options are 'DEBIT' and 'CREDIT'.
|
|
195
|
+
|
|
196
|
+
### Example code
|
|
197
|
+
|
|
198
|
+
The following example demonstrates how to block the card:
|
|
205
199
|
|
|
206
200
|
```
|
|
207
|
-
var src = new paydock.
|
|
208
|
-
"#checkoutButton",
|
|
201
|
+
var src = new paydock.MastercardSRCClickToPay(
|
|
209
202
|
"#checkoutIframe",
|
|
210
|
-
"
|
|
211
|
-
"
|
|
203
|
+
"service_id",
|
|
204
|
+
"paydock_public_key",
|
|
212
205
|
{
|
|
213
|
-
|
|
214
|
-
"email": "test@email.com",
|
|
215
|
-
"first_name": "Name",
|
|
216
|
-
"last_name": "Surname",
|
|
217
|
-
"phone": {
|
|
218
|
-
"country_code": "1",
|
|
219
|
-
"phone": "2124567890"
|
|
220
|
-
},
|
|
221
|
-
"payment_source": {
|
|
222
|
-
"address_line1": "Line 1",
|
|
223
|
-
"address_line2": "Line 2",
|
|
224
|
-
"address_city": "Miami",
|
|
225
|
-
"address_postcode": "33126",
|
|
226
|
-
"address_state": "FL",
|
|
227
|
-
"address_country": "US"
|
|
228
|
-
}
|
|
229
|
-
}
|
|
206
|
+
unaccepted_card_type: 'DEBIT'
|
|
230
207
|
},
|
|
231
208
|
);
|
|
232
209
|
```
|
|
233
210
|
|
|
234
|
-
##
|
|
211
|
+
## Personalize the Style
|
|
235
212
|
|
|
236
|
-
|
|
213
|
+
Customize the look and feel of your UI. The following example demonstrates changes in the styling of the buttons.
|
|
237
214
|
|
|
238
215
|
### Example code
|
|
239
216
|
|
|
240
217
|
```
|
|
241
|
-
var src = new paydock.
|
|
242
|
-
"#checkoutButton",
|
|
218
|
+
var src = new paydock.MastercardSRCClickToPay(
|
|
243
219
|
"#checkoutIframe",
|
|
244
|
-
"
|
|
220
|
+
"service_id",
|
|
245
221
|
"paydock_public_key",
|
|
222
|
+
{},
|
|
246
223
|
);
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
224
|
+
src.setStyles({
|
|
225
|
+
enable_src_popup: true,
|
|
226
|
+
primary_button_color: 'red',
|
|
227
|
+
secondary_button_color: 'red',
|
|
228
|
+
primary_button_text_color: 'red',
|
|
229
|
+
secondary_button_text_color: 'red',
|
|
230
|
+
font_family: 'Arial',
|
|
231
|
+
});
|
|
250
232
|
```
|
|
251
|
-
## Event and Values
|
|
252
|
-
|
|
253
|
-
| Event Value | Type | Description |
|
|
254
|
-
| ------------------- | ------------------- | -------------------------------------------------------------- |
|
|
255
|
-
| primary_color | <code>string</code> | HEX color for the principal buttons, example : #32a852 |
|
|
256
|
-
| button_text_color | <code>string</code> | HEX color for the text of the buttons, example : #32a852|
|
|
257
|
-
| font_family | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/font-family)|
|
|
258
|
-
| card_schemes | <code>[string] - array of string</code> | Possible values "visa", "mastercard", "amex" and "discover" - Default show all logos
|