@miden-npm/react 0.0.6 → 0.0.7

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.cts CHANGED
@@ -24,13 +24,6 @@ type ConfirmCardPaymentParams = {
24
24
  email?: string;
25
25
  };
26
26
  };
27
- interface ISelectOption {
28
- label: string;
29
- value: string;
30
- countryCode?: string;
31
- bankLogoUrl?: string;
32
- selected?: boolean;
33
- }
34
27
 
35
28
  declare class MidenPGClient {
36
29
  private readonly cfg;
@@ -49,6 +42,7 @@ declare const MidenPGProvider: React.FC<React.PropsWithChildren<{
49
42
  declare const useMidenPGClient: () => MidenPGClient;
50
43
 
51
44
  interface IPaymentObject {
45
+ merchantName: string;
52
46
  amount: number;
53
47
  currency: string;
54
48
  email: string;
@@ -105,10 +99,10 @@ interface CheckoutCardOptions {
105
99
  }
106
100
  interface IBzpCheckoutCardProps {
107
101
  secretKey: string;
108
- environment?: "sandbox" | "production";
102
+ environment: "sandbox" | "prod";
109
103
  paymentObject: IPaymentObject;
110
104
  options?: CheckoutCardOptions;
111
105
  }
112
- declare function BzpCheckoutCard({ options, environment, paymentObject, }: IBzpCheckoutCardProps): react_jsx_runtime.JSX.Element;
106
+ declare function BzpCheckoutCard({ secretKey, options, environment, paymentObject, }: IBzpCheckoutCardProps): react_jsx_runtime.JSX.Element;
113
107
 
114
- export { BzpCheckoutButton, BzpCheckoutCard, BzpCheckoutIframe, type CheckoutCardOptions, type CheckoutIframeStyle, type ConfirmCardPaymentParams, type CreatePaymentIntentParams, type ISelectOption, MidenPGClient, type MidenPGConfig, MidenPGProvider, type PaymentIntent, useMidenPGClient, usePaymentIntents };
108
+ export { BzpCheckoutButton, BzpCheckoutCard, BzpCheckoutIframe, type CheckoutCardOptions, type CheckoutIframeStyle, type ConfirmCardPaymentParams, type CreatePaymentIntentParams, MidenPGClient, type MidenPGConfig, MidenPGProvider, type PaymentIntent, useMidenPGClient, usePaymentIntents };
package/dist/index.d.ts CHANGED
@@ -24,13 +24,6 @@ type ConfirmCardPaymentParams = {
24
24
  email?: string;
25
25
  };
26
26
  };
27
- interface ISelectOption {
28
- label: string;
29
- value: string;
30
- countryCode?: string;
31
- bankLogoUrl?: string;
32
- selected?: boolean;
33
- }
34
27
 
35
28
  declare class MidenPGClient {
36
29
  private readonly cfg;
@@ -49,6 +42,7 @@ declare const MidenPGProvider: React.FC<React.PropsWithChildren<{
49
42
  declare const useMidenPGClient: () => MidenPGClient;
50
43
 
51
44
  interface IPaymentObject {
45
+ merchantName: string;
52
46
  amount: number;
53
47
  currency: string;
54
48
  email: string;
@@ -105,10 +99,10 @@ interface CheckoutCardOptions {
105
99
  }
106
100
  interface IBzpCheckoutCardProps {
107
101
  secretKey: string;
108
- environment?: "sandbox" | "production";
102
+ environment: "sandbox" | "prod";
109
103
  paymentObject: IPaymentObject;
110
104
  options?: CheckoutCardOptions;
111
105
  }
112
- declare function BzpCheckoutCard({ options, environment, paymentObject, }: IBzpCheckoutCardProps): react_jsx_runtime.JSX.Element;
106
+ declare function BzpCheckoutCard({ secretKey, options, environment, paymentObject, }: IBzpCheckoutCardProps): react_jsx_runtime.JSX.Element;
113
107
 
114
- export { BzpCheckoutButton, BzpCheckoutCard, BzpCheckoutIframe, type CheckoutCardOptions, type CheckoutIframeStyle, type ConfirmCardPaymentParams, type CreatePaymentIntentParams, type ISelectOption, MidenPGClient, type MidenPGConfig, MidenPGProvider, type PaymentIntent, useMidenPGClient, usePaymentIntents };
108
+ export { BzpCheckoutButton, BzpCheckoutCard, BzpCheckoutIframe, type CheckoutCardOptions, type CheckoutIframeStyle, type ConfirmCardPaymentParams, type CreatePaymentIntentParams, MidenPGClient, type MidenPGConfig, MidenPGProvider, type PaymentIntent, useMidenPGClient, usePaymentIntents };