@paynext/sdk 0.0.61 → 0.0.63

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 CHANGED
@@ -21,7 +21,6 @@ await checkout.mount({
21
21
  clientToken: '<you-client-token>',
22
22
  environment: 'sandbox',
23
23
  apiVersion: '1.0.0'
24
- locale: 'en',
25
24
  onCheckoutComplete: (result: PaymentResult) => {
26
25
  // Handle successful payment
27
26
  console.log('Payment successful!', result)
@@ -59,7 +58,6 @@ export const CheckoutComponent: FC<Readonly<IProps> = (props) => {
59
58
  clientToken,
60
59
  environment: 'sandbox',
61
60
  apiVersion: '1.0.0'
62
- locale: 'en',
63
61
  onCheckoutComplete: (result: PaymentResult) => {
64
62
  // Handle successful payment
65
63
  console.log('Payment completed:', result)
@@ -85,7 +83,6 @@ export const CheckoutComponent: FC<Readonly<IProps> = (props) => {
85
83
  ```typescript
86
84
  interface PayNextConfig {
87
85
  clientToken: string
88
- supportedCardTypes?: CardType[]
89
86
  apiVersion: string
90
87
  environment: 'sandbox' | 'production',
91
88
  variant?: 'default' | 'compact'
@@ -101,7 +98,7 @@ interface PayNextConfig {
101
98
 
102
99
  - **Cards**: Visa, Mastercard, American Express, Discover, JCB, Diners Club, UnionPay, Maestro
103
100
  - **Digital Wallets**: Apple Pay, Google Pay
104
- - **Alternative**: PayPal
101
+ - **Alternative**: PayPal, Venmo
105
102
 
106
103
  ## Supported Languages
107
104
 
package/dist/index.d.ts CHANGED
@@ -30,6 +30,15 @@ declare interface ApplePayTransaction {
30
30
  }>;
31
31
  }
32
32
 
33
+ declare interface BillingAddress {
34
+ city?: string;
35
+ country?: string;
36
+ line1?: string;
37
+ line2?: string;
38
+ postal_code?: string;
39
+ state?: string;
40
+ }
41
+
33
42
  declare interface BraintreeConfig extends IButtonActionsHandler {
34
43
  authorization: string;
35
44
  }
@@ -37,6 +46,7 @@ declare interface BraintreeConfig extends IButtonActionsHandler {
37
46
  declare class BraintreeService {
38
47
  private client;
39
48
  private venmoInstance;
49
+ private deviceData;
40
50
  init(config: BraintreeConfig): Promise<void>;
41
51
  createVenmo(config?: Partial<VenmoConfig>): Promise<Venmo>;
42
52
  isBrowserSupported(): boolean;
@@ -243,6 +253,11 @@ export declare interface CheckoutTranslate {
243
253
  cardNotActivated: string;
244
254
  closedCard: string;
245
255
  processorNetworkUnavailableTryAgain: string;
256
+ errorText: string;
257
+ venmoClosed: string;
258
+ paypalClosed: string;
259
+ applePayClosed: string;
260
+ paypalPopupClosed: string;
246
261
  };
247
262
  }
248
263
 
@@ -676,6 +691,8 @@ declare interface VenmoTokenizePayload {
676
691
  details: {
677
692
  username: string;
678
693
  };
694
+ device_data?: string;
695
+ billing_address?: BillingAddress;
679
696
  }
680
697
 
681
698
  export { }