@odus/checkout 0.15.0 → 0.16.0
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 +0 -4
- package/dist/checkout.d.ts +22 -3
- package/dist/checkout.es.js +1230 -1239
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -93,7 +93,6 @@ import { OdusCheckout, CheckoutConfig, CheckoutInstance, Locale } from '@odus/ch
|
|
|
93
93
|
// Now you can use these types in your code
|
|
94
94
|
const config: CheckoutConfig = {
|
|
95
95
|
apiKey: 'your_api_key',
|
|
96
|
-
profileId: 'your_profile_id',
|
|
97
96
|
paymentId: 'your_payment_id',
|
|
98
97
|
checkoutKey: 'your_unique_checkout_key',
|
|
99
98
|
returnUrl: 'https://your-website.com/payment-complete',
|
|
@@ -119,7 +118,6 @@ import '@odus/checkout/styles';
|
|
|
119
118
|
// Initialize the checkout
|
|
120
119
|
const checkout = new OdusCheckout({
|
|
121
120
|
apiKey: 'your_api_key',
|
|
122
|
-
profileId: 'your_profile_id',
|
|
123
121
|
paymentId: 'your_payment_id',
|
|
124
122
|
checkoutKey: 'your_unique_checkout_key',
|
|
125
123
|
returnUrl: 'https://your-website.com/payment-complete',
|
|
@@ -164,7 +162,6 @@ When initializing the Odus Checkout, you can configure various options:
|
|
|
164
162
|
| Option | Type | Required | Description |
|
|
165
163
|
| ---------------------- | ------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
166
164
|
| `apiKey` | string | ✅ | Your Odus API key obtained from the dashboard's API Keys page |
|
|
167
|
-
| `profileId` | string | ✅ | Your Odus checkout profile ID obtained from the dashboard's Checkout Builder page |
|
|
168
165
|
| `checkoutKey` | string | ✅ | Unique checkout key for this payment session |
|
|
169
166
|
| `paymentId` | string | ✅ | The ID of the payment being processed |
|
|
170
167
|
| `environment` | string | ✅ | API environment to use - either 'test' or 'live' |
|
|
@@ -320,7 +317,6 @@ class OdusCheckout {
|
|
|
320
317
|
type CheckoutConfig = {
|
|
321
318
|
apiKey: string;
|
|
322
319
|
returnUrl: string;
|
|
323
|
-
profileId: string;
|
|
324
320
|
checkoutKey: string;
|
|
325
321
|
paymentId: string;
|
|
326
322
|
environment: 'test' | 'live';
|
package/dist/checkout.d.ts
CHANGED
|
@@ -3,11 +3,13 @@ declare type Appearance = {
|
|
|
3
3
|
paypal?: {
|
|
4
4
|
enabled: boolean;
|
|
5
5
|
order: number;
|
|
6
|
+
countries?: string[];
|
|
6
7
|
};
|
|
7
8
|
applePay?: {
|
|
8
9
|
enabled: boolean;
|
|
9
10
|
order: number;
|
|
10
11
|
displayName?: string;
|
|
12
|
+
countries?: string[];
|
|
11
13
|
};
|
|
12
14
|
};
|
|
13
15
|
styles?: {
|
|
@@ -36,7 +38,6 @@ declare type CheckoutCallbacks = {
|
|
|
36
38
|
export declare type CheckoutConfig = {
|
|
37
39
|
apiKey: string;
|
|
38
40
|
returnUrl: string;
|
|
39
|
-
profileId: string;
|
|
40
41
|
environment: Environment;
|
|
41
42
|
callbacks?: CheckoutCallbacks;
|
|
42
43
|
locale?: Locale;
|
|
@@ -73,6 +74,8 @@ export declare const deLocale: {
|
|
|
73
74
|
"validation": {
|
|
74
75
|
"emailSuggestion": "Meinten Sie {{email}}?",
|
|
75
76
|
"emailInvalid": "Ihre E-Mail-Adresse ist nicht korrekt",
|
|
77
|
+
"emailRequired": "E-Mail-Adresse ist erforderlich",
|
|
78
|
+
"cardNumberRequired": "Kartennummer ist erforderlich",
|
|
76
79
|
"cardExpiryInvalid": "Das Ablaufdatum Ihrer Karte liegt in der Vergangenheit",
|
|
77
80
|
"cardExpiryFormat": "Das Ablaufdatum Ihrer Karte ist unvollständig",
|
|
78
81
|
"cardSecurityFormat": "Der Sicherheitscode Ihrer Karte ist unvollständig",
|
|
@@ -100,12 +103,15 @@ export declare const enLocale: {
|
|
|
100
103
|
},
|
|
101
104
|
"validation": {
|
|
102
105
|
"emailSuggestion": "Did you mean {{email}}?",
|
|
103
|
-
"emailInvalid": "Your email is
|
|
106
|
+
"emailInvalid": "Your email is incomplete",
|
|
107
|
+
"emailRequired": "Email is required",
|
|
108
|
+
"cardNumberRequired": "Card number is required",
|
|
104
109
|
"cardExpiryInvalid": "Your card's expiration date is in the past",
|
|
105
110
|
"cardExpiryFormat": "Your card’s expiration date is incomplete",
|
|
106
111
|
"cardSecurityFormat": "Your card’s security code is incomplete",
|
|
107
112
|
"nameRequired": "Please enter the name as it appears on your card",
|
|
108
|
-
|
|
113
|
+
|
|
114
|
+
"cardNumberInvalid": "Your card number is incomplete",
|
|
109
115
|
"invalid-checkout": "Failed to initialize checkout"
|
|
110
116
|
}
|
|
111
117
|
};
|
|
@@ -131,6 +137,8 @@ export declare const esLocale: {
|
|
|
131
137
|
"validation": {
|
|
132
138
|
"emailSuggestion": "¿Quisiste decir {{email}}?",
|
|
133
139
|
"emailInvalid": "Su correo electrónico no es válido",
|
|
140
|
+
"emailRequired": "El correo electrónico es obligatorio",
|
|
141
|
+
"cardNumberRequired": "El número de tarjeta es obligatorio",
|
|
134
142
|
"cardExpiryInvalid": "La fecha de vencimiento de la tarjeta ya pasó",
|
|
135
143
|
"cardExpiryFormat": "La fecha de vencimiento de su tarjeta está incompleta",
|
|
136
144
|
"cardSecurityFormat": "El código de seguridad de su tarjeta está incompleto",
|
|
@@ -159,10 +167,13 @@ export declare const frLocale: {
|
|
|
159
167
|
"validation": {
|
|
160
168
|
"emailSuggestion": "Vouliez-vous dire {{email}}?",
|
|
161
169
|
"emailInvalid": "Votre adresse e-mail n’est pas valide",
|
|
170
|
+
"emailRequired": "L’adresse e-mail est requise",
|
|
171
|
+
"cardNumberRequired": "Le numéro de carte est requis",
|
|
162
172
|
"cardExpiryInvalid": "La date d'expiration de votre carte est dans le passé",
|
|
163
173
|
"cardExpiryFormat": "La date d’expiration de votre carte est incomplète",
|
|
164
174
|
"cardSecurityFormat": "Le code de sécurité de votre carte est incomplet",
|
|
165
175
|
"nameRequired": "Veuillez saisir le nom tel qu’il figure sur votre carte",
|
|
176
|
+
|
|
166
177
|
"cardNumberInvalid": "Votre numéro de carte est invalide",
|
|
167
178
|
"invalid-checkout": "Échec de l'initialisation du checkout"
|
|
168
179
|
}
|
|
@@ -187,6 +198,8 @@ export declare const itLocale: {
|
|
|
187
198
|
"validation": {
|
|
188
199
|
"emailSuggestion": "Intendevi {{email}}?",
|
|
189
200
|
"emailInvalid": "La tua email non è corretta",
|
|
201
|
+
"emailRequired": "L'indirizzo email è obbligatorio",
|
|
202
|
+
"cardNumberRequired": "Il numero della carta è obbligatorio",
|
|
190
203
|
"cardExpiryInvalid": "La data di scadenza della tua carta è nel passato",
|
|
191
204
|
"cardExpiryFormat": "La data di scadenza della tua carta è incompleta",
|
|
192
205
|
"cardSecurityFormat": "Il codice di sicurezza della tua carta è incompleto",
|
|
@@ -235,6 +248,8 @@ export declare const plLocale: {
|
|
|
235
248
|
"validation": {
|
|
236
249
|
"emailSuggestion": "Czy chodziło Ci o {{email}}?",
|
|
237
250
|
"emailInvalid": "Państwa adres e-mail jest nieprawidłowy",
|
|
251
|
+
"emailRequired": "Adres e-mail jest wymagany",
|
|
252
|
+
"cardNumberRequired": "Numer karty jest wymagany",
|
|
238
253
|
"cardExpiryInvalid": "Data ważności Państwa karty jest w przeszłości",
|
|
239
254
|
"cardExpiryFormat": "Data ważności Państwa karty jest niekompletna",
|
|
240
255
|
"cardSecurityFormat": "Kod zabezpieczający Państwa karty jest niekompletny",
|
|
@@ -263,6 +278,8 @@ export declare const ptLocale: {
|
|
|
263
278
|
"validation": {
|
|
264
279
|
"emailSuggestion": "Você quis dizer {{email}}?",
|
|
265
280
|
"emailInvalid": "O seu endereço de e-mail não é válido",
|
|
281
|
+
"emailRequired": "O endereço de e-mail é obrigatório",
|
|
282
|
+
"cardNumberRequired": "O número do cartão é obrigatório",
|
|
266
283
|
"cardExpiryInvalid": "A data de validade do seu cartão está no passado",
|
|
267
284
|
"cardExpiryFormat": "A data de validade do seu cartão está incompleta",
|
|
268
285
|
"cardSecurityFormat": "O código de segurança do seu cartão está incompleto",
|
|
@@ -291,6 +308,8 @@ export declare const trLocale: {
|
|
|
291
308
|
"validation": {
|
|
292
309
|
"emailSuggestion": "{{email}} demek mi istediniz?",
|
|
293
310
|
"emailInvalid": "E-posta adresiniz geçerli değil",
|
|
311
|
+
"emailRequired": "E-posta adresi gerekli",
|
|
312
|
+
"cardNumberRequired": "Kart numarası gerekli",
|
|
294
313
|
"cardExpiryInvalid": "Kartınızın son kullanma tarihi geçmiş",
|
|
295
314
|
"cardExpiryFormat": "Kartınızın son kullanma tarihi eksik",
|
|
296
315
|
"cardSecurityFormat": "Kartınızın güvenlik kodu eksik",
|