@paynext/sdk 1.0.19 → 1.0.20

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 (2) hide show
  1. package/dist/index.d.ts +22 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,5 +1,24 @@
1
1
  import { PayPalButtonStyle } from '@paypal/paypal-js';
2
2
 
3
+ export declare interface ApplePayRecurringPaymentLineItem {
4
+ label: string;
5
+ amount: string;
6
+ paymentTiming: 'immediate' | 'recurring';
7
+ recurringPaymentStartDate?: Date;
8
+ recurringPaymentEndDate?: Date;
9
+ recurringPaymentIntervalUnit?: 'year' | 'month' | 'day' | 'hour' | 'minute';
10
+ recurringPaymentIntervalCount?: number;
11
+ }
12
+
13
+ export declare interface ApplePayRecurringPaymentRequest {
14
+ paymentDescription: string;
15
+ regularBilling: ApplePayRecurringPaymentLineItem;
16
+ trialBilling?: ApplePayRecurringPaymentLineItem;
17
+ billingAgreement?: string;
18
+ managementURL: string;
19
+ tokenNotificationURL?: string;
20
+ }
21
+
3
22
  export declare interface AttemptResult {
4
23
  paymentMethod: PaymentMethod;
5
24
  cardType: string;
@@ -485,6 +504,8 @@ export declare interface PayNextConfig {
485
504
  errorMessageText?: string;
486
505
  returnUrl?: string;
487
506
  paymentsEnabled?: boolean;
507
+ applePayMpanEnabled?: boolean;
508
+ applePayRecurringPaymentRequest?: ApplePayRecurringPaymentRequest;
488
509
  onCheckoutLoaded?: (result: LoadedResult) => void;
489
510
  onCheckoutAttempt?: (result: AttemptResult) => void;
490
511
  beforeCheckoutAttempt?: (result: AttemptResult) => boolean | Promise<boolean>;
@@ -512,7 +533,7 @@ export declare interface StylesConfig {
512
533
  cssVariables?: CSSVariablesConfig;
513
534
  }
514
535
 
515
- export declare type TEnvironment = 'develop' | 'preview1' | 'preview2' | 'preview3' | 'staging' | 'sandbox' | 'production';
536
+ export declare type TEnvironment = 'develop' | 'preview1' | 'preview2' | 'preview3' | 'preview4' | 'staging' | 'staging_preview1' | 'sandbox' | 'production';
516
537
 
517
538
  export declare type ThemeMode = 'light' | 'dark' | 'system';
518
539
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paynext/sdk",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "PayNext SDK - Payment processing with automatic CDN loading",
5
5
  "type": "module",
6
6
  "main": "dist/index.es.js",