paygate-checkout-sdk 0.0.7 → 0.0.8

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 (38) hide show
  1. package/dist/App.d.ts +1 -2
  2. package/dist/assets/icons/AmexIcon.d.ts +1 -2
  3. package/dist/assets/icons/DefaultCardIcon.d.ts +1 -2
  4. package/dist/assets/icons/DiscoverIcon.d.ts +1 -2
  5. package/dist/assets/icons/FaArrowLeftIcon.d.ts +1 -2
  6. package/dist/assets/icons/FaBankCardIcon.d.ts +1 -2
  7. package/dist/assets/icons/FaBankTransferIcon.d.ts +1 -2
  8. package/dist/assets/icons/FaChevronDownIcon.d.ts +1 -2
  9. package/dist/assets/icons/FaCopyIcon.d.ts +1 -2
  10. package/dist/assets/icons/FaInfoIcon.d.ts +1 -2
  11. package/dist/assets/icons/FaLockIcon.d.ts +1 -2
  12. package/dist/assets/icons/FaMobileIcon.d.ts +1 -2
  13. package/dist/assets/icons/FaNQRIcon.d.ts +1 -2
  14. package/dist/assets/icons/FaPaygateIcon.d.ts +1 -2
  15. package/dist/assets/icons/FaQRCodeIcon.d.ts +1 -2
  16. package/dist/assets/icons/FaSuccessicon.d.ts +1 -2
  17. package/dist/assets/icons/FaTimerIcon.d.ts +1 -2
  18. package/dist/assets/icons/FaUssdIcon.d.ts +1 -2
  19. package/dist/assets/icons/MasterCardIcon.d.ts +1 -2
  20. package/dist/assets/icons/VerveIcon.d.ts +1 -2
  21. package/dist/assets/icons/VisaIcon.d.ts +1 -2
  22. package/dist/components/Button/StatusBadge.d.ts +1 -2
  23. package/dist/components/Button/Styles.d.ts +6 -2
  24. package/dist/components/Text/Styles.d.ts +3 -1
  25. package/dist/components/card/BankCard.d.ts +1 -2
  26. package/dist/components/checkout/MobileMoneyPayment.d.ts +1 -2
  27. package/dist/components/checkout/PaymentFailedView.d.ts +4 -4
  28. package/dist/components/checkout/PaymentSuccessView.d.ts +5 -4
  29. package/dist/containers/Payment/PaygateCheckoutSdk.d.ts +10 -7
  30. package/dist/containers/Payment/index.d.ts +1 -2
  31. package/dist/index.d.ts +5 -11
  32. package/dist/index.iife.js +131 -110
  33. package/dist/index.iife.js.map +1 -1
  34. package/dist/lib/index.d.ts +1 -7
  35. package/dist/shared/hooks/useSnackBar.d.ts +1 -2
  36. package/dist/shared/themes/ThemeProvider.d.ts +1 -1
  37. package/dist/shared/types/index.d.ts +20 -11
  38. package/package.json +5 -3
package/dist/App.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import "./App.css";
3
- declare function App(): React.JSX.Element;
2
+ declare function App(): import("react/jsx-runtime").JSX.Element;
4
3
  export default App;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { CardTypeIconProps } from "./VisaIcon";
3
- declare const AmexIcon: ({ width, height, style, }: CardTypeIconProps) => React.JSX.Element;
2
+ declare const AmexIcon: ({ width, height, style, }: CardTypeIconProps) => import("react/jsx-runtime").JSX.Element;
4
3
  export default AmexIcon;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { CardTypeIconProps } from "./VisaIcon";
3
- declare const DefaultCardIcon: ({ width, height, style, }: CardTypeIconProps) => React.JSX.Element;
2
+ declare const DefaultCardIcon: ({ width, height, style, }: CardTypeIconProps) => import("react/jsx-runtime").JSX.Element;
4
3
  export default DefaultCardIcon;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { CardTypeIconProps } from "./VisaIcon";
3
- declare const DiscoverIcon: ({ width, height, style, }: CardTypeIconProps) => React.JSX.Element;
2
+ declare const DiscoverIcon: ({ width, height, style, }: CardTypeIconProps) => import("react/jsx-runtime").JSX.Element;
4
3
  export default DiscoverIcon;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { IconProps } from "./FaBankCardIcon";
3
- declare const FaArrowLeftIcon: ({ color, width, height, style }: IconProps) => React.JSX.Element;
2
+ declare const FaArrowLeftIcon: ({ color, width, height, style }: IconProps) => import("react/jsx-runtime").JSX.Element;
4
3
  export default FaArrowLeftIcon;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  export type IconProps = {
3
2
  color?: string;
4
3
  width?: string;
@@ -6,5 +5,5 @@ export type IconProps = {
6
5
  onClick?: (value?: any) => void;
7
6
  style?: any;
8
7
  };
9
- declare const FaBankCardIcon: ({ color, width, height, style }: IconProps) => React.JSX.Element;
8
+ declare const FaBankCardIcon: ({ color, width, height, style }: IconProps) => import("react/jsx-runtime").JSX.Element;
10
9
  export default FaBankCardIcon;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { IconProps } from "./FaBankCardIcon";
3
- declare const FaBankTransferIcon: ({ color, width, height, style }: IconProps) => React.JSX.Element;
2
+ declare const FaBankTransferIcon: ({ color, width, height, style }: IconProps) => import("react/jsx-runtime").JSX.Element;
4
3
  export default FaBankTransferIcon;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { IconProps } from "./FaBankCardIcon";
3
- declare const FaChevronDownIcon: ({ color, width, height, style }: IconProps) => React.JSX.Element;
2
+ declare const FaChevronDownIcon: ({ color, width, height, style }: IconProps) => import("react/jsx-runtime").JSX.Element;
4
3
  export default FaChevronDownIcon;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { IconProps } from "./FaBankCardIcon";
3
- declare const FaCopyIcon: ({ color, width, height, onClick, style }: IconProps) => React.JSX.Element;
2
+ declare const FaCopyIcon: ({ color, width, height, onClick, style }: IconProps) => import("react/jsx-runtime").JSX.Element;
4
3
  export default FaCopyIcon;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { IconProps } from "./FaBankCardIcon";
3
- declare const FaInfoIcon: ({ color, width, height, style }: IconProps) => React.JSX.Element;
2
+ declare const FaInfoIcon: ({ color, width, height, style }: IconProps) => import("react/jsx-runtime").JSX.Element;
4
3
  export default FaInfoIcon;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { IconProps } from "./FaBankCardIcon";
3
- declare const FaLockIcon: ({ style }: IconProps) => React.JSX.Element;
2
+ declare const FaLockIcon: ({ style }: IconProps) => import("react/jsx-runtime").JSX.Element;
4
3
  export default FaLockIcon;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { IconProps } from "./FaBankCardIcon";
3
- declare const FaMobileIcon: ({ color, width, height, style }: IconProps) => React.JSX.Element;
2
+ declare const FaMobileIcon: ({ color, width, height, style }: IconProps) => import("react/jsx-runtime").JSX.Element;
4
3
  export default FaMobileIcon;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { IconProps } from "./FaBankCardIcon";
3
- declare const FaNQRIcon: ({ color, width, height, style }: IconProps) => React.JSX.Element;
2
+ declare const FaNQRIcon: ({ color, width, height, style }: IconProps) => import("react/jsx-runtime").JSX.Element;
4
3
  export default FaNQRIcon;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { IconProps } from "./FaBankCardIcon";
3
- declare const FaPaygateIcon: ({ color, width, height, style, }: IconProps) => React.JSX.Element;
2
+ declare const FaPaygateIcon: ({ color, width, height, style, }: IconProps) => import("react/jsx-runtime").JSX.Element;
4
3
  export default FaPaygateIcon;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { IconProps } from "./FaBankCardIcon";
3
- declare const FaQRCodeIcon: ({ color, width, height, style }: IconProps) => React.JSX.Element;
2
+ declare const FaQRCodeIcon: ({ color, width, height, style }: IconProps) => import("react/jsx-runtime").JSX.Element;
4
3
  export default FaQRCodeIcon;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { IconProps } from "./FaBankCardIcon";
3
- declare const FaSuccessicon: ({ color, width, height, style }: IconProps) => React.JSX.Element;
2
+ declare const FaSuccessicon: ({ color, width, height, style }: IconProps) => import("react/jsx-runtime").JSX.Element;
4
3
  export default FaSuccessicon;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { IconProps } from "./FaBankCardIcon";
3
- declare const FaTimerIcon: ({ color, width, height, style }: IconProps) => React.JSX.Element;
2
+ declare const FaTimerIcon: ({ color, width, height, style }: IconProps) => import("react/jsx-runtime").JSX.Element;
4
3
  export default FaTimerIcon;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { IconProps } from "./FaBankCardIcon";
3
- declare const FaUssdIcon: ({ color, width, height, style }: IconProps) => React.JSX.Element;
2
+ declare const FaUssdIcon: ({ color, width, height, style }: IconProps) => import("react/jsx-runtime").JSX.Element;
4
3
  export default FaUssdIcon;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { CardTypeIconProps } from "./VisaIcon";
3
- declare const MasterCardIcon: ({ width, height, style, }: CardTypeIconProps) => React.JSX.Element;
2
+ declare const MasterCardIcon: ({ width, height, style, }: CardTypeIconProps) => import("react/jsx-runtime").JSX.Element;
4
3
  export default MasterCardIcon;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { CardTypeIconProps } from "./VisaIcon";
3
- declare const VerveIcon: ({ width, height, style, }: CardTypeIconProps) => React.JSX.Element;
2
+ declare const VerveIcon: ({ width, height, style, }: CardTypeIconProps) => import("react/jsx-runtime").JSX.Element;
4
3
  export default VerveIcon;
@@ -1,8 +1,7 @@
1
- import React from "react";
2
1
  export type CardTypeIconProps = {
3
2
  width?: string;
4
3
  height?: string;
5
4
  style?: any;
6
5
  };
7
- declare const VisaIcon: ({ width, height, style }: CardTypeIconProps) => React.JSX.Element;
6
+ declare const VisaIcon: ({ width, height, style }: CardTypeIconProps) => import("react/jsx-runtime").JSX.Element;
8
7
  export default VisaIcon;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const StatusBadge: () => React.JSX.Element;
1
+ declare const StatusBadge: () => import("react/jsx-runtime").JSX.Element;
3
2
  export default StatusBadge;
@@ -1,5 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import { ButtonProps, TextProps } from './index';
3
- export declare const StyledButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, never>, ButtonProps>> & string;
3
+ export declare const StyledButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
5
+ }>, never>, ButtonProps>> & string;
4
6
  export declare const secondary: import("styled-components").RuleSet<ButtonProps>;
5
- export declare const Text: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>, never>, TextProps>> & string;
7
+ export declare const Text: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
8
+ ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
9
+ }>, never>, TextProps>> & string;
@@ -1,3 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { TextProps } from './index';
3
- export declare const StyledText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, never>, TextProps>> & string;
3
+ export declare const StyledText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
5
+ }>, never>, TextProps>> & string;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const BankCard: () => React.JSX.Element;
1
+ declare const BankCard: () => import("react/jsx-runtime").JSX.Element;
3
2
  export default BankCard;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { MerchantDataProps } from "../../shared/types";
3
2
  type MobileMoneyPaymentProps = {
4
3
  userBasicData: MerchantDataProps;
@@ -13,5 +12,5 @@ type MobileMoneyPaymentProps = {
13
12
  setSelectedMethod: (value: string) => void;
14
13
  handleInitiateMomo: () => void;
15
14
  };
16
- export declare const MobileMoneyPayment: ({ userBasicData, mobileMoneyStep, mobileMoneyNetwork, setMobileMoneyNetwork, mobileMoneyPhone, setMobileMoneyPhone, setMobileMoneyStep, handleSimulateMomo, checkMomoTransactionStatus, setSelectedMethod, handleInitiateMomo, }: MobileMoneyPaymentProps) => import("react").JSX.Element;
15
+ export declare const MobileMoneyPayment: ({ userBasicData, mobileMoneyStep, mobileMoneyNetwork, setMobileMoneyNetwork, mobileMoneyPhone, setMobileMoneyPhone, setMobileMoneyStep, handleSimulateMomo, checkMomoTransactionStatus, setSelectedMethod, handleInitiateMomo, }: MobileMoneyPaymentProps) => import("react/jsx-runtime").JSX.Element;
17
16
  export {};
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
2
- declare const PaymentFailedView: ({ reason, merchantSiteUrl, handleReset, handleSelectedMethod }: {
1
+ declare const PaymentFailedView: ({ reason, merchantSiteUrl, handleReset, handleSelectedMethod, onError }: {
3
2
  reason?: string | undefined;
4
- merchantSiteUrl: string;
3
+ merchantSiteUrl?: string | undefined;
5
4
  handleReset: () => void;
6
5
  handleSelectedMethod: () => void;
7
- }) => import("react").JSX.Element;
6
+ onError?: (() => void) | undefined;
7
+ }) => import("react/jsx-runtime").JSX.Element;
8
8
  export default PaymentFailedView;
@@ -1,6 +1,7 @@
1
- /// <reference types="react" />
2
- declare const PaymentSuccessView: ({ reason, merchantSiteUrl, }: {
1
+ declare const PaymentSuccessView: ({ reason, merchantSiteUrl, transactionRef, onSuccess }: {
3
2
  reason?: string | undefined;
4
- merchantSiteUrl: string;
5
- }) => import("react").JSX.Element;
3
+ merchantSiteUrl?: string | undefined;
4
+ transactionRef?: string | undefined;
5
+ onSuccess?: (() => void) | undefined;
6
+ }) => import("react/jsx-runtime").JSX.Element;
6
7
  export default PaymentSuccessView;
@@ -1,5 +1,4 @@
1
1
  import type React from "react";
2
- import { JSX } from "react";
3
2
  import type { PaygateCheckoutSdkProps } from "../../shared/types";
4
3
  export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
5
4
  export declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -32,9 +31,9 @@ export declare const SecureBox: import("styled-components/dist/types").IStyledCo
32
31
  export declare const DivBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
33
32
  export declare const CardNumbertext: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
34
33
  export declare const AccountCard: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
35
- export declare const Row: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<any, {
36
- isLast?: boolean | undefined;
37
- }>> & string & Omit<({ isLast, ...rest }: any) => JSX.Element, keyof React.Component<any, {}, any>>;
34
+ export declare const Row: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
35
+ $isLast?: boolean | undefined;
36
+ }>> & string;
38
37
  export declare const InfoBanner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
39
38
  export declare const TimerRow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
40
39
  export declare const QRContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -42,11 +41,15 @@ export declare const OpayBox: import("styled-components/dist/types").IStyledComp
42
41
  export declare const MobileHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
43
42
  export declare const MobileSubText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
44
43
  export declare const MobileTextBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
45
- export declare const StyledInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>, never>> & string;
44
+ export declare const StyledInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>, "ref"> & {
45
+ ref?: ((instance: HTMLInputElement | null) => void) | React.RefObject<HTMLInputElement> | null | undefined;
46
+ }, never>> & string;
46
47
  export declare const PasswordWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
47
48
  export declare const TogglePassword: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
48
- export declare const NextButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "isDisable"> & {
49
+ export declare const NextButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "isDisable"> & {
49
50
  isDisable?: boolean | undefined;
51
+ }, "ref"> & {
52
+ ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
50
53
  }, never>> & string;
51
54
  export declare const Header: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
52
55
  export declare const BodyText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
@@ -78,5 +81,5 @@ export declare const LoadingText: import("styled-components/dist/types").IStyled
78
81
  export declare const spin: import("styled-components/dist/models/Keyframes").default;
79
82
  export declare const Spinner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
80
83
  export declare const Iframe: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.IframeHTMLAttributes<HTMLIFrameElement>, HTMLIFrameElement>, never>> & string;
81
- declare const PaygateCheckoutSdk: ({ userData }: PaygateCheckoutSdkProps) => JSX.Element;
84
+ declare const PaygateCheckoutSdk: ({ userData, config, onSuccess, onError, }: PaygateCheckoutSdkProps) => import("react/jsx-runtime").JSX.Element;
82
85
  export default PaygateCheckoutSdk;
@@ -1,3 +1,2 @@
1
- import React from "react";
2
- declare const Payment: () => React.JSX.Element;
1
+ declare const Payment: () => import("react/jsx-runtime").JSX.Element;
3
2
  export default Payment;
package/dist/index.d.ts CHANGED
@@ -7,6 +7,7 @@ type MerchantDataProps = {
7
7
  countryCode: string;
8
8
  currencyCode: string;
9
9
  transactionCurrency?: string;
10
+ transactionRef: string;
10
11
  merchantName?: string;
11
12
  amount: number;
12
13
  merchantReference?: string;
@@ -22,9 +23,8 @@ type MerchantDataProps = {
22
23
  metadataProductInfo?: string;
23
24
  redirectUrl?: string;
24
25
  merchantPublicKey?: string;
25
- merchantSecretKey?: string;
26
26
  merchantAPIKey?: string;
27
- merchantSiteUrl: string;
27
+ mode: string;
28
28
  };
29
29
  type PaygateCheckoutSdkProps = {
30
30
  userData: MerchantDataProps;
@@ -33,16 +33,10 @@ type PaygateCheckoutSdkProps = {
33
33
  environment?: "test" | "live";
34
34
  [key: string]: any;
35
35
  };
36
- onSuccess?: (response: any) => void;
37
- onError?: (error: any) => void;
36
+ onSuccess?: () => void;
37
+ onError?: () => void;
38
38
  };
39
39
 
40
- declare const sdk: {
41
- setup: (config: {
42
- targetId: string;
43
- props: PaygateCheckoutSdkProps;
44
- }) => void;
45
- };
46
40
  declare const PaygateSdk: {
47
41
  setup: (config: {
48
42
  targetId: string;
@@ -52,7 +46,7 @@ declare const PaygateSdk: {
52
46
  declare global {
53
47
  interface Window {
54
48
  PaygateCheckoutSDK?: {
55
- PaygateSdk: typeof sdk;
49
+ PaygateSdk: typeof PaygateSdk;
56
50
  };
57
51
  }
58
52
  }