paygate-checkout-sdk 1.0.1 → 1.0.2
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/components/checkout/MobileMoneyPayment.d.ts +2 -2
- package/dist/containers/Payment/PaygateCheckoutSdk.d.ts +2 -2
- package/dist/index.d.ts +5 -5
- package/dist/index.esm.js +123 -21546
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +119 -21560
- package/dist/index.js.map +1 -1
- package/dist/lib/index.d.ts +1 -1
- package/dist/shared/types/index.d.ts +3 -3
- package/dist/shared/utils/customAxios.d.ts +2 -0
- package/package.json +4 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MerchantDataProps } from "../../shared/types";
|
|
2
2
|
type MobileMoneyPaymentProps = {
|
|
3
|
-
userBasicData:
|
|
3
|
+
userBasicData: MerchantDataProps;
|
|
4
4
|
mobileMoneyStep: string;
|
|
5
5
|
mobileMoneyNetwork: string;
|
|
6
6
|
setMobileMoneyNetwork: (value: string) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
|
-
import type {
|
|
2
|
+
import type { PaygateCheckoutSdkProps } from "../../shared/types";
|
|
3
3
|
export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
4
|
export declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
5
|
export declare const Sidebar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
@@ -77,5 +77,5 @@ export declare const LoadingText: import("styled-components/dist/types").IStyled
|
|
|
77
77
|
export declare const spin: import("styled-components/dist/models/Keyframes").default;
|
|
78
78
|
export declare const Spinner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
79
79
|
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 }:
|
|
80
|
+
declare const PaygateCheckoutSdk: ({ userData }: PaygateCheckoutSdkProps) => import("react/jsx-runtime").JSX.Element;
|
|
81
81
|
export default PaygateCheckoutSdk;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
|
-
type
|
|
3
|
+
type MerchantDataProps = {
|
|
4
4
|
clientId?: string;
|
|
5
5
|
firstName: string;
|
|
6
6
|
lastName: string;
|
|
@@ -28,8 +28,8 @@ type UserBasicDataType = {
|
|
|
28
28
|
merchantAPIKey?: string;
|
|
29
29
|
merchantSiteUrl: string;
|
|
30
30
|
};
|
|
31
|
-
type
|
|
32
|
-
userData:
|
|
31
|
+
type PaygateCheckoutSdkProps = {
|
|
32
|
+
userData: MerchantDataProps;
|
|
33
33
|
config?: {
|
|
34
34
|
theme?: "light" | "dark";
|
|
35
35
|
environment?: "test" | "live";
|
|
@@ -39,7 +39,7 @@ type PaymentMethodSelectorProps = {
|
|
|
39
39
|
onError?: (error: any) => void;
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
declare const PaygateCheckoutSdk: ({ userData }:
|
|
42
|
+
declare const PaygateCheckoutSdk: ({ userData }: PaygateCheckoutSdkProps) => react_jsx_runtime.JSX.Element;
|
|
43
43
|
|
|
44
44
|
export { PaygateCheckoutSdk };
|
|
45
|
-
export type {
|
|
45
|
+
export type { PaygateCheckoutSdkProps, MerchantDataProps as UserBasicDataType };
|