paygate-checkout-sdk 1.0.0 → 1.0.1

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.
@@ -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 PaymentMethodSelector: ({ userData }: PaymentMethodSelectorProps) => import("react/jsx-runtime").JSX.Element;
81
- export default PaymentMethodSelector;
80
+ declare const PaygateCheckoutSdk: ({ userData }: PaymentMethodSelectorProps) => import("react/jsx-runtime").JSX.Element;
81
+ export default PaygateCheckoutSdk;
package/dist/index.d.ts CHANGED
@@ -39,7 +39,7 @@ type PaymentMethodSelectorProps = {
39
39
  onError?: (error: any) => void;
40
40
  };
41
41
 
42
- declare const PaymentMethodSelector: ({ userData }: PaymentMethodSelectorProps) => react_jsx_runtime.JSX.Element;
42
+ declare const PaygateCheckoutSdk: ({ userData }: PaymentMethodSelectorProps) => react_jsx_runtime.JSX.Element;
43
43
 
44
- export { PaymentMethodSelector };
44
+ export { PaygateCheckoutSdk };
45
45
  export type { PaymentMethodSelectorProps, UserBasicDataType };
package/dist/index.esm.js CHANGED
@@ -27086,7 +27086,7 @@ const Iframe = styled.iframe `
27086
27086
  height: 600px;
27087
27087
  border: 0;
27088
27088
  `;
27089
- const PaymentMethodSelector = ({ userData }) => {
27089
+ const PaygateCheckoutSdk = ({ userData }) => {
27090
27090
  var _a, _b, _c;
27091
27091
  const { showSnackbar, SnackbarUI } = useSnackbar();
27092
27092
  const [isDrawerOpen, setIsDrawerOpen] = useState(false);
@@ -27895,5 +27895,5 @@ const PaymentMethodSelector = ({ userData }) => {
27895
27895
  }, style: { marginTop: 24 } }, { children: "Try Again" }))] })))] }))] })] }), jsxs(AcceptedCardsBox, { children: [jsx("span", Object.assign({ style: { fontWeight: 600, color: "rgb(40, 17, 156)" } }, { children: "We accept:" })), jsxs(AcceptedCardsInnerBox, { children: [jsx(VisaIcon, { width: "40", height: "30" }), jsx(MasterCardIcon, { width: "40", height: "30" }), jsx(VerveIcon, { width: "40", height: "30" }), jsx(AmexIcon, { width: "40", height: "30" }), jsx(DiscoverIcon, { width: "40", height: "30" })] })] }), jsxs(SecureBox, { children: [jsx(FaLockIcon, {}), jsxs(DivBox, { children: [jsx("span", Object.assign({ style: { fontWeight: 400, margin: "0px 5px", color: "#000" } }, { children: "secured by" })), jsx("span", Object.assign({ style: { color: "#28119C" } }, { children: "Blusalt" }))] })] }), isDrawerOpen && jsx(Overlay, { onClick: () => setIsDrawerOpen(false) })] })), isPaymanetSuccessful && (jsx(PaymentSuccessView, { reason: intiateCardPaymentResponse === null || intiateCardPaymentResponse === void 0 ? void 0 : intiateCardPaymentResponse.message, merchantSiteUrl: userData === null || userData === void 0 ? void 0 : userData.merchantSiteUrl })), isPaymanetFailed && (jsx(PaymentFailedView, { reason: intiateCardPaymentResponse === null || intiateCardPaymentResponse === void 0 ? void 0 : intiateCardPaymentResponse.message, merchantSiteUrl: userData === null || userData === void 0 ? void 0 : userData.merchantSiteUrl, handleReset: resetState, handleSelectedMethod: handleSelectedMethod })), show3DSIframe && redirect3DSUrl && (jsxs(Container, { children: [jsx("h2", { children: "3DS Authentication" }), jsx(Iframe, { ref: iframeRef, src: redirect3DSUrl, allow: "fullscreen" })] })), SnackbarUI()] }));
27896
27896
  };
27897
27897
 
27898
- export { PaymentMethodSelector };
27898
+ export { PaygateCheckoutSdk };
27899
27899
  //# sourceMappingURL=index.esm.js.map