paygate-checkout-sdk 1.0.4 → 1.0.6
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/App.d.ts +2 -1
- package/dist/assets/icons/AmexIcon.d.ts +2 -1
- package/dist/assets/icons/DefaultCardIcon.d.ts +2 -1
- package/dist/assets/icons/DiscoverIcon.d.ts +2 -1
- package/dist/assets/icons/FaArrowLeftIcon.d.ts +2 -1
- package/dist/assets/icons/FaBankCardIcon.d.ts +2 -1
- package/dist/assets/icons/FaBankTransferIcon.d.ts +2 -1
- package/dist/assets/icons/FaChevronDownIcon.d.ts +2 -1
- package/dist/assets/icons/FaCopyIcon.d.ts +2 -1
- package/dist/assets/icons/FaInfoIcon.d.ts +2 -1
- package/dist/assets/icons/FaLockIcon.d.ts +2 -1
- package/dist/assets/icons/FaMobileIcon.d.ts +2 -1
- package/dist/assets/icons/FaNQRIcon.d.ts +2 -1
- package/dist/assets/icons/FaPaygateIcon.d.ts +2 -1
- package/dist/assets/icons/FaQRCodeIcon.d.ts +2 -1
- package/dist/assets/icons/FaSuccessicon.d.ts +2 -1
- package/dist/assets/icons/FaTimerIcon.d.ts +2 -1
- package/dist/assets/icons/FaUssdIcon.d.ts +2 -1
- package/dist/assets/icons/MasterCardIcon.d.ts +2 -1
- package/dist/assets/icons/VerveIcon.d.ts +2 -1
- package/dist/assets/icons/VisaIcon.d.ts +2 -1
- package/dist/components/Button/StatusBadge.d.ts +2 -1
- package/dist/components/card/BankCard.d.ts +2 -1
- package/dist/components/checkout/MobileMoneyPayment.d.ts +2 -1
- package/dist/components/checkout/PaymentFailedView.d.ts +2 -1
- package/dist/components/checkout/PaymentSuccessView.d.ts +2 -1
- package/dist/containers/Payment/PaygateCheckoutSdk.d.ts +3 -2
- package/dist/containers/Payment/index.d.ts +2 -1
- package/dist/index.d.ts +21 -5
- package/dist/index.iife.js +784 -0
- package/dist/index.iife.js.map +1 -0
- package/dist/lib/index.d.ts +21 -2
- package/dist/shared/hooks/useSnackBar.d.ts +2 -1
- package/dist/shared/themes/ThemeProvider.d.ts +1 -1
- package/package.json +17 -8
- package/dist/index.esm.js +0 -7275
- package/dist/index.esm.js.map +0 -1
- package/dist/index.js +0 -7295
- package/dist/index.js.map +0 -1
- package/dist/shared/utils/customAxios.d.ts +0 -2
package/dist/App.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { CardTypeIconProps } from "./VisaIcon";
|
|
2
|
-
declare const AmexIcon: ({ width, height, style, }: CardTypeIconProps) =>
|
|
3
|
+
declare const AmexIcon: ({ width, height, style, }: CardTypeIconProps) => React.JSX.Element;
|
|
3
4
|
export default AmexIcon;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { CardTypeIconProps } from "./VisaIcon";
|
|
2
|
-
declare const DefaultCardIcon: ({ width, height, style, }: CardTypeIconProps) =>
|
|
3
|
+
declare const DefaultCardIcon: ({ width, height, style, }: CardTypeIconProps) => React.JSX.Element;
|
|
3
4
|
export default DefaultCardIcon;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { CardTypeIconProps } from "./VisaIcon";
|
|
2
|
-
declare const DiscoverIcon: ({ width, height, style, }: CardTypeIconProps) =>
|
|
3
|
+
declare const DiscoverIcon: ({ width, height, style, }: CardTypeIconProps) => React.JSX.Element;
|
|
3
4
|
export default DiscoverIcon;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { IconProps } from "./FaBankCardIcon";
|
|
2
|
-
declare const FaArrowLeftIcon: ({ color, width, height, style }: IconProps) =>
|
|
3
|
+
declare const FaArrowLeftIcon: ({ color, width, height, style }: IconProps) => React.JSX.Element;
|
|
3
4
|
export default FaArrowLeftIcon;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
export type IconProps = {
|
|
2
3
|
color?: string;
|
|
3
4
|
width?: string;
|
|
@@ -5,5 +6,5 @@ export type IconProps = {
|
|
|
5
6
|
onClick?: (value?: any) => void;
|
|
6
7
|
style?: any;
|
|
7
8
|
};
|
|
8
|
-
declare const FaBankCardIcon: ({ color, width, height, style }: IconProps) =>
|
|
9
|
+
declare const FaBankCardIcon: ({ color, width, height, style }: IconProps) => React.JSX.Element;
|
|
9
10
|
export default FaBankCardIcon;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { IconProps } from "./FaBankCardIcon";
|
|
2
|
-
declare const FaBankTransferIcon: ({ color, width, height, style }: IconProps) =>
|
|
3
|
+
declare const FaBankTransferIcon: ({ color, width, height, style }: IconProps) => React.JSX.Element;
|
|
3
4
|
export default FaBankTransferIcon;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { IconProps } from "./FaBankCardIcon";
|
|
2
|
-
declare const FaChevronDownIcon: ({ color, width, height, style }: IconProps) =>
|
|
3
|
+
declare const FaChevronDownIcon: ({ color, width, height, style }: IconProps) => React.JSX.Element;
|
|
3
4
|
export default FaChevronDownIcon;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { IconProps } from "./FaBankCardIcon";
|
|
2
|
-
declare const FaCopyIcon: ({ color, width, height, onClick, style }: IconProps) =>
|
|
3
|
+
declare const FaCopyIcon: ({ color, width, height, onClick, style }: IconProps) => React.JSX.Element;
|
|
3
4
|
export default FaCopyIcon;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { IconProps } from "./FaBankCardIcon";
|
|
2
|
-
declare const FaInfoIcon: ({ color, width, height, style }: IconProps) =>
|
|
3
|
+
declare const FaInfoIcon: ({ color, width, height, style }: IconProps) => React.JSX.Element;
|
|
3
4
|
export default FaInfoIcon;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { IconProps } from "./FaBankCardIcon";
|
|
2
|
-
declare const FaMobileIcon: ({ color, width, height, style }: IconProps) =>
|
|
3
|
+
declare const FaMobileIcon: ({ color, width, height, style }: IconProps) => React.JSX.Element;
|
|
3
4
|
export default FaMobileIcon;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { IconProps } from "./FaBankCardIcon";
|
|
2
|
-
declare const FaNQRIcon: ({ color, width, height, style }: IconProps) =>
|
|
3
|
+
declare const FaNQRIcon: ({ color, width, height, style }: IconProps) => React.JSX.Element;
|
|
3
4
|
export default FaNQRIcon;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { IconProps } from "./FaBankCardIcon";
|
|
2
|
-
declare const FaPaygateIcon: ({ color, width, height, style, }: IconProps) =>
|
|
3
|
+
declare const FaPaygateIcon: ({ color, width, height, style, }: IconProps) => React.JSX.Element;
|
|
3
4
|
export default FaPaygateIcon;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { IconProps } from "./FaBankCardIcon";
|
|
2
|
-
declare const FaQRCodeIcon: ({ color, width, height, style }: IconProps) =>
|
|
3
|
+
declare const FaQRCodeIcon: ({ color, width, height, style }: IconProps) => React.JSX.Element;
|
|
3
4
|
export default FaQRCodeIcon;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { IconProps } from "./FaBankCardIcon";
|
|
2
|
-
declare const FaSuccessicon: ({ color, width, height, style }: IconProps) =>
|
|
3
|
+
declare const FaSuccessicon: ({ color, width, height, style }: IconProps) => React.JSX.Element;
|
|
3
4
|
export default FaSuccessicon;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { IconProps } from "./FaBankCardIcon";
|
|
2
|
-
declare const FaTimerIcon: ({ color, width, height, style }: IconProps) =>
|
|
3
|
+
declare const FaTimerIcon: ({ color, width, height, style }: IconProps) => React.JSX.Element;
|
|
3
4
|
export default FaTimerIcon;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { IconProps } from "./FaBankCardIcon";
|
|
2
|
-
declare const FaUssdIcon: ({ color, width, height, style }: IconProps) =>
|
|
3
|
+
declare const FaUssdIcon: ({ color, width, height, style }: IconProps) => React.JSX.Element;
|
|
3
4
|
export default FaUssdIcon;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { CardTypeIconProps } from "./VisaIcon";
|
|
2
|
-
declare const MasterCardIcon: ({ width, height, style, }: CardTypeIconProps) =>
|
|
3
|
+
declare const MasterCardIcon: ({ width, height, style, }: CardTypeIconProps) => React.JSX.Element;
|
|
3
4
|
export default MasterCardIcon;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { CardTypeIconProps } from "./VisaIcon";
|
|
2
|
-
declare const VerveIcon: ({ width, height, style, }: CardTypeIconProps) =>
|
|
3
|
+
declare const VerveIcon: ({ width, height, style, }: CardTypeIconProps) => React.JSX.Element;
|
|
3
4
|
export default VerveIcon;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
export type CardTypeIconProps = {
|
|
2
3
|
width?: string;
|
|
3
4
|
height?: string;
|
|
4
5
|
style?: any;
|
|
5
6
|
};
|
|
6
|
-
declare const VisaIcon: ({ width, height, style }: CardTypeIconProps) =>
|
|
7
|
+
declare const VisaIcon: ({ width, height, style }: CardTypeIconProps) => React.JSX.Element;
|
|
7
8
|
export default VisaIcon;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { MerchantDataProps } from "../../shared/types";
|
|
2
3
|
type MobileMoneyPaymentProps = {
|
|
3
4
|
userBasicData: MerchantDataProps;
|
|
@@ -12,5 +13,5 @@ type MobileMoneyPaymentProps = {
|
|
|
12
13
|
setSelectedMethod: (value: string) => void;
|
|
13
14
|
handleInitiateMomo: () => void;
|
|
14
15
|
};
|
|
15
|
-
export declare const MobileMoneyPayment: ({ userBasicData, mobileMoneyStep, mobileMoneyNetwork, setMobileMoneyNetwork, mobileMoneyPhone, setMobileMoneyPhone, setMobileMoneyStep, handleSimulateMomo, checkMomoTransactionStatus, setSelectedMethod, handleInitiateMomo, }: MobileMoneyPaymentProps) => import("react
|
|
16
|
+
export declare const MobileMoneyPayment: ({ userBasicData, mobileMoneyStep, mobileMoneyNetwork, setMobileMoneyNetwork, mobileMoneyPhone, setMobileMoneyPhone, setMobileMoneyStep, handleSimulateMomo, checkMomoTransactionStatus, setSelectedMethod, handleInitiateMomo, }: MobileMoneyPaymentProps) => import("react").JSX.Element;
|
|
16
17
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare const PaymentFailedView: ({ reason, merchantSiteUrl, handleReset, handleSelectedMethod }: {
|
|
2
3
|
reason?: string | undefined;
|
|
3
4
|
merchantSiteUrl: string;
|
|
4
5
|
handleReset: () => void;
|
|
5
6
|
handleSelectedMethod: () => void;
|
|
6
|
-
}) => import("react
|
|
7
|
+
}) => import("react").JSX.Element;
|
|
7
8
|
export default PaymentFailedView;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare const PaymentSuccessView: ({ reason, merchantSiteUrl, }: {
|
|
2
3
|
reason?: string | undefined;
|
|
3
4
|
merchantSiteUrl: string;
|
|
4
|
-
}) => import("react
|
|
5
|
+
}) => import("react").JSX.Element;
|
|
5
6
|
export default PaymentSuccessView;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
|
+
import { JSX } from "react";
|
|
2
3
|
import type { PaygateCheckoutSdkProps } from "../../shared/types";
|
|
3
4
|
export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
5
|
export declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -33,7 +34,7 @@ export declare const CardNumbertext: import("styled-components/dist/types").ISty
|
|
|
33
34
|
export declare const AccountCard: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
34
35
|
export declare const Row: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<any, {
|
|
35
36
|
isLast?: boolean | undefined;
|
|
36
|
-
}>> & string & Omit<({ isLast, ...rest }: any) =>
|
|
37
|
+
}>> & string & Omit<({ isLast, ...rest }: any) => JSX.Element, keyof React.Component<any, {}, any>>;
|
|
37
38
|
export declare const InfoBanner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
38
39
|
export declare const TimerRow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
39
40
|
export declare const QRContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -77,5 +78,5 @@ export declare const LoadingText: import("styled-components/dist/types").IStyled
|
|
|
77
78
|
export declare const spin: import("styled-components/dist/models/Keyframes").default;
|
|
78
79
|
export declare const Spinner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
79
80
|
export declare const Iframe: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.IframeHTMLAttributes<HTMLIFrameElement>, HTMLIFrameElement>, never>> & string;
|
|
80
|
-
declare const PaygateCheckoutSdk: ({ userData }: PaygateCheckoutSdkProps) =>
|
|
81
|
+
declare const PaygateCheckoutSdk: ({ userData }: PaygateCheckoutSdkProps) => JSX.Element;
|
|
81
82
|
export default PaygateCheckoutSdk;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
1
|
type MerchantDataProps = {
|
|
4
2
|
clientId?: string;
|
|
5
3
|
firstName: string;
|
|
@@ -39,7 +37,25 @@ type PaygateCheckoutSdkProps = {
|
|
|
39
37
|
onError?: (error: any) => void;
|
|
40
38
|
};
|
|
41
39
|
|
|
42
|
-
declare const
|
|
40
|
+
declare const sdk: {
|
|
41
|
+
setup: (config: {
|
|
42
|
+
targetId: string;
|
|
43
|
+
props: PaygateCheckoutSdkProps;
|
|
44
|
+
}) => void;
|
|
45
|
+
};
|
|
46
|
+
declare const PaygateSdk: {
|
|
47
|
+
setup: (config: {
|
|
48
|
+
targetId: string;
|
|
49
|
+
props: PaygateCheckoutSdkProps;
|
|
50
|
+
}) => void;
|
|
51
|
+
};
|
|
52
|
+
declare global {
|
|
53
|
+
interface Window {
|
|
54
|
+
PaygateCheckoutSDK?: {
|
|
55
|
+
PaygateSdk: typeof sdk;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
}
|
|
43
59
|
|
|
44
|
-
export {
|
|
45
|
-
export type {
|
|
60
|
+
export { PaygateSdk };
|
|
61
|
+
export type { MerchantDataProps, PaygateCheckoutSdkProps };
|