@paynext/sdk 0.0.40 → 0.0.42
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/dist/index.d.ts +159 -40
- package/dist/index.es.js +404 -480
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +44 -44
- package/dist/index.umd.js.map +1 -1
- package/package.json +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -90,8 +90,7 @@ declare class CheckoutModule {
|
|
|
90
90
|
mount(): Promise<HTMLElement>;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
export declare interface CheckoutResponse {
|
|
94
|
-
data?: string;
|
|
93
|
+
export declare interface CheckoutResponse extends Partial<PaymentResult> {
|
|
95
94
|
error?: string;
|
|
96
95
|
three_ds_session_id?: string;
|
|
97
96
|
}
|
|
@@ -248,53 +247,173 @@ declare type Listener<TData> = (data: TData) => void;
|
|
|
248
247
|
export declare type Locale = 'ar' | 'en' | 'bg' | 'cs' | 'da' | 'de' | 'el' | 'es' | 'et' | 'fi' | 'fil' | 'fr' | 'hr' | 'hu' | 'id' | 'it' | 'ja' | 'ko' | 'lt' | 'lv' | 'ms' | 'ru' | 'mt' | 'nb' | 'nl' | 'pl' | 'pt' | 'ro' | 'sk' | 'sl' | 'sv' | 'th' | 'tr' | 'vi' | 'zh';
|
|
249
248
|
|
|
250
249
|
export declare interface PaymentResult {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
250
|
+
id: string;
|
|
251
|
+
created_at: string;
|
|
252
|
+
updated_at: string;
|
|
253
|
+
amount: number;
|
|
254
|
+
amount_usd: number;
|
|
255
|
+
avs_check: {
|
|
256
|
+
result: {
|
|
257
|
+
postal_code: string;
|
|
258
|
+
street_address: string;
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
currency_code: string;
|
|
262
|
+
customer: {
|
|
263
|
+
id: string;
|
|
264
|
+
created_at: string;
|
|
265
|
+
updated_at: string;
|
|
266
|
+
address: {
|
|
267
|
+
city: string;
|
|
268
|
+
country: string;
|
|
269
|
+
line1: string;
|
|
270
|
+
line2: string;
|
|
271
|
+
postal_code: string;
|
|
272
|
+
state: string;
|
|
273
|
+
};
|
|
274
|
+
email: string;
|
|
275
|
+
external_id: string;
|
|
276
|
+
metadata: {
|
|
277
|
+
[key: string]: string;
|
|
262
278
|
};
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
279
|
+
full_name?: string;
|
|
280
|
+
phone?: string;
|
|
281
|
+
};
|
|
282
|
+
cvc_check: {
|
|
283
|
+
result: {
|
|
284
|
+
cvc: string;
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
metadata: {
|
|
288
|
+
[key: string]: string;
|
|
289
|
+
};
|
|
290
|
+
payment_details: {
|
|
291
|
+
arn: string;
|
|
292
|
+
auth_code: string;
|
|
293
|
+
network_payment_id: string;
|
|
294
|
+
processor_transaction_id: string;
|
|
295
|
+
};
|
|
296
|
+
payment_method: {
|
|
297
|
+
id: string;
|
|
298
|
+
apple_pay?: {
|
|
299
|
+
cryptogram: string;
|
|
300
|
+
eci: string;
|
|
301
|
+
exp_month: number;
|
|
302
|
+
exp_year: number;
|
|
303
|
+
token: string;
|
|
304
|
+
token_service_provider: string;
|
|
305
|
+
};
|
|
306
|
+
billing_address: {
|
|
307
|
+
city: string;
|
|
308
|
+
country: string;
|
|
309
|
+
line1: string;
|
|
310
|
+
line2: string;
|
|
311
|
+
postal_code: string;
|
|
312
|
+
state: string;
|
|
313
|
+
};
|
|
314
|
+
card?: {
|
|
315
|
+
bin: string;
|
|
316
|
+
bin_data: {
|
|
317
|
+
brand: string;
|
|
318
|
+
country: string;
|
|
319
|
+
currency_code: string;
|
|
320
|
+
description: string;
|
|
321
|
+
funding: string;
|
|
322
|
+
issuer: string;
|
|
323
|
+
type: string;
|
|
270
324
|
};
|
|
325
|
+
cvc?: string;
|
|
326
|
+
exp_month: number;
|
|
327
|
+
exp_year: number;
|
|
328
|
+
is_network_tokenized: boolean;
|
|
329
|
+
last4?: string;
|
|
330
|
+
number?: string;
|
|
271
331
|
};
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
332
|
+
google_pay?: {
|
|
333
|
+
cryptogram: string;
|
|
334
|
+
eci: string;
|
|
335
|
+
exp_month: number;
|
|
336
|
+
exp_year: number;
|
|
337
|
+
token: string;
|
|
338
|
+
token_service_provider: string;
|
|
275
339
|
};
|
|
276
340
|
paypal?: {
|
|
277
|
-
|
|
278
|
-
|
|
341
|
+
billing_agreement_id: string;
|
|
342
|
+
payer_info: {
|
|
343
|
+
email: string;
|
|
344
|
+
first_name: string;
|
|
345
|
+
last_name: string;
|
|
346
|
+
payer_id: string;
|
|
347
|
+
tenant: string;
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
phone?: string;
|
|
351
|
+
threed_secure_authentication?: {
|
|
352
|
+
response_code: string;
|
|
279
353
|
};
|
|
354
|
+
type: 'CARD' | 'PAYPAL' | 'APPLEPAY' | 'GPAY';
|
|
280
355
|
};
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
356
|
+
payment_status: string;
|
|
357
|
+
payment_token_type: string;
|
|
358
|
+
payment_type: 'MIT' | 'CIT';
|
|
359
|
+
processor: {
|
|
360
|
+
id: string;
|
|
361
|
+
description: string;
|
|
362
|
+
processor_merchant_id: string;
|
|
363
|
+
type: string;
|
|
289
364
|
};
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
365
|
+
refunded_amount: number;
|
|
366
|
+
status_reason: {
|
|
367
|
+
code: string;
|
|
368
|
+
decline_type: string;
|
|
369
|
+
message: string;
|
|
293
370
|
};
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
371
|
+
subscription?: {
|
|
372
|
+
id: string;
|
|
373
|
+
created_at: string;
|
|
374
|
+
updated_at: string;
|
|
375
|
+
metadata: {
|
|
376
|
+
[key: string]: string;
|
|
377
|
+
};
|
|
378
|
+
next_billing_date: string;
|
|
379
|
+
plan: {
|
|
380
|
+
id: string;
|
|
381
|
+
created_at: string;
|
|
382
|
+
updated_at: string;
|
|
383
|
+
name: string;
|
|
384
|
+
type: 'recurring';
|
|
385
|
+
interval: 'days' | 'weeks' | 'months' | 'years';
|
|
386
|
+
interval_count: number;
|
|
387
|
+
price: {
|
|
388
|
+
countries: {
|
|
389
|
+
countries: string[];
|
|
390
|
+
price: {
|
|
391
|
+
amount: number;
|
|
392
|
+
currency: string;
|
|
393
|
+
};
|
|
394
|
+
}[];
|
|
395
|
+
default: {
|
|
396
|
+
amount: number;
|
|
397
|
+
currency: string;
|
|
398
|
+
};
|
|
399
|
+
};
|
|
400
|
+
trial_interval: 'days' | 'weeks' | 'months' | 'years';
|
|
401
|
+
trial_interval_count: number;
|
|
402
|
+
trial_price: {
|
|
403
|
+
countries: {
|
|
404
|
+
countries: string[];
|
|
405
|
+
price: {
|
|
406
|
+
amount: number;
|
|
407
|
+
currency: string;
|
|
408
|
+
};
|
|
409
|
+
}[];
|
|
410
|
+
default: {
|
|
411
|
+
amount: number;
|
|
412
|
+
currency: string;
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
status: 'none' | 'trial' | 'active' | 'past_due' | 'cancelled' | 'scheduled_for_cancellation';
|
|
416
|
+
};
|
|
298
417
|
};
|
|
299
418
|
}
|
|
300
419
|
|