paygate-checkout-sdk 0.0.0
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/README.md +46 -0
- package/dist/App.d.ts +3 -0
- package/dist/App.test.d.ts +1 -0
- package/dist/assets/icons/AmexIcon.d.ts +3 -0
- package/dist/assets/icons/DefaultCardIcon.d.ts +3 -0
- package/dist/assets/icons/DiscoverIcon.d.ts +3 -0
- package/dist/assets/icons/FaArrowLeftIcon.d.ts +3 -0
- package/dist/assets/icons/FaBankCardIcon.d.ts +9 -0
- package/dist/assets/icons/FaBankTransferIcon.d.ts +3 -0
- package/dist/assets/icons/FaChevronDownIcon.d.ts +3 -0
- package/dist/assets/icons/FaCopyIcon.d.ts +3 -0
- package/dist/assets/icons/FaInfoIcon.d.ts +3 -0
- package/dist/assets/icons/FaLockIcon.d.ts +3 -0
- package/dist/assets/icons/FaMobileIcon.d.ts +3 -0
- package/dist/assets/icons/FaNQRIcon.d.ts +3 -0
- package/dist/assets/icons/FaPaygateIcon.d.ts +3 -0
- package/dist/assets/icons/FaQRCodeIcon.d.ts +3 -0
- package/dist/assets/icons/FaSuccessicon.d.ts +3 -0
- package/dist/assets/icons/FaTimerIcon.d.ts +3 -0
- package/dist/assets/icons/FaUssdIcon.d.ts +3 -0
- package/dist/assets/icons/MasterCardIcon.d.ts +3 -0
- package/dist/assets/icons/VerveIcon.d.ts +3 -0
- package/dist/assets/icons/VisaIcon.d.ts +7 -0
- package/dist/components/Base.d.ts +8 -0
- package/dist/components/Button/StatusBadge.d.ts +2 -0
- package/dist/components/Button/Styles.d.ts +5 -0
- package/dist/components/Button/index.d.ts +35 -0
- package/dist/components/CardPayment.d.ts +3 -0
- package/dist/components/CountrySelector.d.ts +7 -0
- package/dist/components/FadeLoader/index.d.ts +8 -0
- package/dist/components/PaymentMethods.d.ts +8 -0
- package/dist/components/Text/Styles.d.ts +3 -0
- package/dist/components/Text/index.d.ts +26 -0
- package/dist/components/card/BankCard.d.ts +2 -0
- package/dist/components/card/CardForm.d.ts +3 -0
- package/dist/components/card/CardPayment.d.ts +3 -0
- package/dist/components/card/Styles/CardPayment.styles.d.ts +6 -0
- package/dist/components/card/Styles/index.d.ts +13 -0
- package/dist/components/checkout/BankTransferPayment.d.ts +15 -0
- package/dist/components/checkout/CardPaymentForm.d.ts +12 -0
- package/dist/components/checkout/CardPinEntry.d.ts +12 -0
- package/dist/components/checkout/KudaPayment.d.ts +2 -0
- package/dist/components/checkout/MobileHeaderText.d.ts +9 -0
- package/dist/components/checkout/MobileMoneyPayment.d.ts +16 -0
- package/dist/components/checkout/OpayPayment.d.ts +2 -0
- package/dist/components/checkout/PalmPayPayment.d.ts +2 -0
- package/dist/components/checkout/PaymentFailedView.d.ts +7 -0
- package/dist/components/checkout/PaymentSuccessView.d.ts +5 -0
- package/dist/components/checkout/QRPayment.d.ts +2 -0
- package/dist/components/checkout/SecureBox.d.ts +2 -0
- package/dist/components/checkout/SidebarMenu.d.ts +14 -0
- package/dist/components/checkout/USSDPayment.d.ts +17 -0
- package/dist/components/checkout/styles/PaymentFailedStyl.d.ts +5 -0
- package/dist/components/checkout/styles/PaymentSuccessful.d.ts +7 -0
- package/dist/components/dropdowns/BankSelectXDropdown.d.ts +8 -0
- package/dist/components/dropdowns/NetworkProviderDropdown.d.ts +4 -0
- package/dist/components/dropdowns/styles/BankSelectXDropdownStyle.d.ts +11 -0
- package/dist/components/dropdowns/styles/index.d.ts +9 -0
- package/dist/containers/Payment/CountrySelector.d.ts +7 -0
- package/dist/containers/Payment/OtpVerification.d.ts +14 -0
- package/dist/containers/Payment/PaygateCheckoutSdk.d.ts +81 -0
- package/dist/containers/Payment/PaymentMethods.d.ts +7 -0
- package/dist/containers/Payment/Styles/PaymentStyle.d.ts +5 -0
- package/dist/containers/Payment/index.d.ts +2 -0
- package/dist/index.d.ts +45 -0
- package/dist/index.esm.js +7273 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.iife.js +798 -0
- package/dist/index.iife.js.map +1 -0
- package/dist/index.js +7293 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/index.d.ts +2 -0
- package/dist/reportWebVitals.d.ts +3 -0
- package/dist/setupTests.d.ts +1 -0
- package/dist/shared/hooks/Styles/SnackbarStyle.d.ts +7 -0
- package/dist/shared/hooks/useCheckTransactionStatus.d.ts +14 -0
- package/dist/shared/hooks/useGetBanks.d.ts +7 -0
- package/dist/shared/hooks/usePaymentFlow.d.ts +5 -0
- package/dist/shared/hooks/useSnackBar.d.ts +6 -0
- package/dist/shared/themes/ThemeProvider.d.ts +6 -0
- package/dist/shared/themes/index.d.ts +5 -0
- package/dist/shared/types/index.d.ts +204 -0
- package/dist/shared/utils/Styles.d.ts +77 -0
- package/dist/shared/utils/index.d.ts +9 -0
- package/package.json +105 -0
package/README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Getting Started with Create React App
|
|
2
|
+
|
|
3
|
+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
|
|
4
|
+
|
|
5
|
+
## Available Scripts
|
|
6
|
+
|
|
7
|
+
In the project directory, you can run:
|
|
8
|
+
|
|
9
|
+
### `yarn start`
|
|
10
|
+
|
|
11
|
+
Runs the app in the development mode.\
|
|
12
|
+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
|
|
13
|
+
|
|
14
|
+
The page will reload if you make edits.\
|
|
15
|
+
You will also see any lint errors in the console.
|
|
16
|
+
|
|
17
|
+
### `yarn test`
|
|
18
|
+
|
|
19
|
+
Launches the test runner in the interactive watch mode.\
|
|
20
|
+
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
|
21
|
+
|
|
22
|
+
### `yarn build`
|
|
23
|
+
|
|
24
|
+
Builds the app for production to the `build` folder.\
|
|
25
|
+
It correctly bundles React in production mode and optimizes the build for the best performance.
|
|
26
|
+
|
|
27
|
+
The build is minified and the filenames include the hashes.\
|
|
28
|
+
Your app is ready to be deployed!
|
|
29
|
+
|
|
30
|
+
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
|
|
31
|
+
|
|
32
|
+
### `yarn eject`
|
|
33
|
+
|
|
34
|
+
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
|
|
35
|
+
|
|
36
|
+
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
|
|
37
|
+
|
|
38
|
+
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
|
|
39
|
+
|
|
40
|
+
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
|
|
41
|
+
|
|
42
|
+
## Learn More
|
|
43
|
+
|
|
44
|
+
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
|
45
|
+
|
|
46
|
+
To learn React, check out the [React documentation](https://reactjs.org/).
|
package/dist/App.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type IconProps = {
|
|
2
|
+
color?: string;
|
|
3
|
+
width?: string;
|
|
4
|
+
height?: string;
|
|
5
|
+
onClick?: (value?: any) => void;
|
|
6
|
+
style?: any;
|
|
7
|
+
};
|
|
8
|
+
declare const FaBankCardIcon: ({ color, width, height, style }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default FaBankCardIcon;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AlignSelfProps, BorderColorProps, BordersProps, ColorProps, DisplayProps, FlexProps, FontSizeProps, HeightProps, MaxHeightProps, MaxWidthProps, MinHeightProps, MinWidthProps, OrderProps, SpaceProps, WidthProps } from 'styled-system';
|
|
2
|
+
export declare const themed: (key: string | number) => (props: {
|
|
3
|
+
theme: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
};
|
|
6
|
+
}) => any;
|
|
7
|
+
export declare const base: import("styled-system").styleFn;
|
|
8
|
+
export type BaseProps = SpaceProps & WidthProps & MinWidthProps & MaxWidthProps & HeightProps & MinHeightProps & MaxHeightProps & FontSizeProps & ColorProps & FlexProps & OrderProps & AlignSelfProps & BordersProps & BorderColorProps & DisplayProps;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
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;
|
|
4
|
+
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;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { JSX, MouseEvent } from 'react';
|
|
2
|
+
export type ButtonVariants = 'primary' | 'secondary' | 'error' | 'error-secondary' | 'link' | 'facebook' | 'fbAlt' | 'light' | 'google' | 'apple' | 'white';
|
|
3
|
+
export type ButtonSize = 'normal' | 'small';
|
|
4
|
+
export type ButtonProps = {
|
|
5
|
+
active?: boolean;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
fullwidth?: boolean;
|
|
10
|
+
href?: string;
|
|
11
|
+
htmlType?: string;
|
|
12
|
+
iconBefore?: React.ReactNode;
|
|
13
|
+
iconAfter?: React.ReactNode;
|
|
14
|
+
isLoading?: boolean;
|
|
15
|
+
name?: React.ReactNode;
|
|
16
|
+
onClick?: (e: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement, MouseEvent<Element, MouseEvent>>) => void;
|
|
17
|
+
onMouseOver?: (e: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement, MouseEvent>) => void;
|
|
18
|
+
onMouseOut?: (e: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement, MouseEvent>) => void;
|
|
19
|
+
ref?: React.Ref<HTMLElement>;
|
|
20
|
+
spacing?: 'default' | 'none';
|
|
21
|
+
tag?: React.ComponentType<React.AllHTMLAttributes<HTMLElement>> | React.ElementType;
|
|
22
|
+
target?: React.AnchorHTMLAttributes<HTMLAnchorElement>['target'];
|
|
23
|
+
variant?: ButtonVariants;
|
|
24
|
+
size?: ButtonSize;
|
|
25
|
+
id?: string;
|
|
26
|
+
minWidth?: string;
|
|
27
|
+
height?: string;
|
|
28
|
+
};
|
|
29
|
+
export type TextProps = {
|
|
30
|
+
withPaddingLeft: boolean;
|
|
31
|
+
withPaddingRight: boolean;
|
|
32
|
+
id?: string;
|
|
33
|
+
};
|
|
34
|
+
declare const Button: ({ active, children, id, className, disabled, fullwidth, href, htmlType, iconBefore, iconAfter, isLoading, onClick, onMouseOver, onMouseOut, size, ref, spacing, target, variant, minWidth, tag, height }: ButtonProps) => JSX.Element;
|
|
35
|
+
export default Button;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
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;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React, { JSX, ReactNode } from 'react';
|
|
2
|
+
import { BaseProps } from '../Base';
|
|
3
|
+
declare const variantMapping: {
|
|
4
|
+
[key: string]: React.ElementType;
|
|
5
|
+
};
|
|
6
|
+
export type VariantType = keyof typeof variantMapping;
|
|
7
|
+
export type TextProps = {
|
|
8
|
+
align?: 'inherit' | 'left' | 'center' | 'right' | 'justify';
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
color?: string;
|
|
12
|
+
display?: 'initial' | 'block' | 'inline';
|
|
13
|
+
iscapitalized?: boolean;
|
|
14
|
+
isMultiline?: boolean;
|
|
15
|
+
isParagraph?: boolean;
|
|
16
|
+
isTruncated?: boolean;
|
|
17
|
+
tag?: React.ElementType;
|
|
18
|
+
variant?: VariantType;
|
|
19
|
+
id?: string;
|
|
20
|
+
weight?: 'regular' | 'semi-bold' | 'bold' | 'extra-bold';
|
|
21
|
+
href?: string;
|
|
22
|
+
wrap?: boolean;
|
|
23
|
+
fontWeight?: number;
|
|
24
|
+
};
|
|
25
|
+
declare const Text: ({ align, children, className, id, color, display, iscapitalized, isMultiline, isParagraph, wrap, tag, variant, weight, ...props }: TextProps & BaseProps) => JSX.Element;
|
|
26
|
+
export default Text;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const PaymentContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export declare const TotalAmount: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
export declare const CardDetailsContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
export declare const Input: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
|
|
6
|
+
export declare const ConfirmButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const HText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../../Text").TextProps & import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").WidthProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Width<import("styled-system").TLengthStyledSystem>> & import("styled-system").MinWidthProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.MinWidth<import("styled-system").TLengthStyledSystem>> & import("styled-system").MaxWidthProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.MaxWidth<import("styled-system").TLengthStyledSystem>> & import("styled-system").HeightProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Height<import("styled-system").TLengthStyledSystem>> & import("styled-system").MinHeightProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.MinHeight<import("styled-system").TLengthStyledSystem>> & import("styled-system").MaxHeightProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.MaxHeight<import("styled-system").TLengthStyledSystem>> & import("styled-system").FontSizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").FlexProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Flex<import("styled-system").TLengthStyledSystem>> & import("styled-system").OrderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").AlignSelfProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").BordersProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").BorderColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").DisplayProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>>, never>> & string & Omit<({ align, children, className, id, color, display, iscapitalized, isMultiline, isParagraph, wrap, tag, variant, weight, ...props }: import("../../Text").TextProps & import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").WidthProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Width<import("styled-system").TLengthStyledSystem>> & import("styled-system").MinWidthProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.MinWidth<import("styled-system").TLengthStyledSystem>> & import("styled-system").MaxWidthProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.MaxWidth<import("styled-system").TLengthStyledSystem>> & import("styled-system").HeightProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Height<import("styled-system").TLengthStyledSystem>> & import("styled-system").MinHeightProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.MinHeight<import("styled-system").TLengthStyledSystem>> & import("styled-system").MaxHeightProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.MaxHeight<import("styled-system").TLengthStyledSystem>> & import("styled-system").FontSizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").FlexProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Flex<import("styled-system").TLengthStyledSystem>> & import("styled-system").OrderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").AlignSelfProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").BordersProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").BorderColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").DisplayProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>>) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
3
|
+
export declare const PaymentContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
export declare const Sidebar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
+
export declare const Content: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
|
+
export declare const SidebarContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
+
export declare const MethodButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
9
|
+
active: boolean;
|
|
10
|
+
}>> & string;
|
|
11
|
+
export declare const CardContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
12
|
+
export declare const Input: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
|
|
13
|
+
export declare const Button: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const SectionTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
|
3
|
+
export declare const ConfirmButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
4
|
+
type BankTransferProps = {
|
|
5
|
+
accountNumber: string;
|
|
6
|
+
bankName: string;
|
|
7
|
+
timeRemaining: number;
|
|
8
|
+
virtualPaymentStatus: {
|
|
9
|
+
status: boolean;
|
|
10
|
+
};
|
|
11
|
+
onConfirm: () => void;
|
|
12
|
+
formatTime: (seconds: number) => string;
|
|
13
|
+
};
|
|
14
|
+
export declare const BankTransferPayment: React.FC<BankTransferProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
cardDetails: {
|
|
4
|
+
number: string;
|
|
5
|
+
expiry: string;
|
|
6
|
+
cvc: string;
|
|
7
|
+
};
|
|
8
|
+
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
9
|
+
onConfirm: () => void;
|
|
10
|
+
};
|
|
11
|
+
declare const CardPaymentForm: React.FC<Props>;
|
|
12
|
+
export default CardPaymentForm;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
pin: string[];
|
|
4
|
+
otp: string[];
|
|
5
|
+
onPinChange: (index: number, value: string) => void;
|
|
6
|
+
onOtpComplete: () => void;
|
|
7
|
+
isOtpModal: boolean;
|
|
8
|
+
setIsOtpModal: (val: boolean) => void;
|
|
9
|
+
setOtp: (val: string[]) => void;
|
|
10
|
+
};
|
|
11
|
+
declare const CardPinEntry: React.FC<Props>;
|
|
12
|
+
export default CardPinEntry;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MerchantDataProps } from "../../shared/types";
|
|
2
|
+
type MobileMoneyPaymentProps = {
|
|
3
|
+
userBasicData: MerchantDataProps;
|
|
4
|
+
mobileMoneyStep: string;
|
|
5
|
+
mobileMoneyNetwork: string;
|
|
6
|
+
setMobileMoneyNetwork: (value: string) => void;
|
|
7
|
+
mobileMoneyPhone: string;
|
|
8
|
+
setMobileMoneyPhone: (value: string) => void;
|
|
9
|
+
setMobileMoneyStep: (value: "FORM" | "CALL" | "SUCCESS") => void;
|
|
10
|
+
handleSimulateMomo: () => void;
|
|
11
|
+
checkMomoTransactionStatus: () => void;
|
|
12
|
+
setSelectedMethod: (value: string) => void;
|
|
13
|
+
handleInitiateMomo: () => void;
|
|
14
|
+
};
|
|
15
|
+
export declare const MobileMoneyPayment: ({ userBasicData, mobileMoneyStep, mobileMoneyNetwork, setMobileMoneyNetwork, mobileMoneyPhone, setMobileMoneyPhone, setMobileMoneyStep, handleSimulateMomo, checkMomoTransactionStatus, setSelectedMethod, handleInitiateMomo, }: MobileMoneyPaymentProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const PaymentFailedView: ({ reason, merchantSiteUrl, handleReset, handleSelectedMethod }: {
|
|
2
|
+
reason?: string | undefined;
|
|
3
|
+
merchantSiteUrl: string;
|
|
4
|
+
handleReset: () => void;
|
|
5
|
+
handleSelectedMethod: () => void;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default PaymentFailedView;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type Method = {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
icon: any;
|
|
6
|
+
};
|
|
7
|
+
type Props = {
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
methods: Method[];
|
|
10
|
+
selectedMethod: string;
|
|
11
|
+
onSelect: (value: string) => void;
|
|
12
|
+
};
|
|
13
|
+
declare const SidebarMenu: React.FC<Props>;
|
|
14
|
+
export default SidebarMenu;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type CardPinProps = {
|
|
3
|
+
pin: string[];
|
|
4
|
+
otp: string[];
|
|
5
|
+
onPinChange: (index: number, value: string) => void;
|
|
6
|
+
onOtpComplete: () => void;
|
|
7
|
+
isOtpModal: boolean;
|
|
8
|
+
setIsOtpModal: (val: boolean) => void;
|
|
9
|
+
setOtp: (val: string[]) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare const CardPinEntry: React.FC<CardPinProps>;
|
|
12
|
+
type USSDProps = {
|
|
13
|
+
selectedBank: string;
|
|
14
|
+
onChangeBank: (bank: string) => void;
|
|
15
|
+
};
|
|
16
|
+
export declare const USSDPayment: React.FC<USSDProps>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const PaymentFailedWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export declare const RedCircle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
export declare const FailedTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
|
5
|
+
export declare const FailedReason: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const PaymentSuccessWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export declare const GreenCircleWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
export declare const GreenSpinner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
export declare const CheckMark: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
+
export declare const SuccessTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
|
7
|
+
export declare const SuccessSubtitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const SelectWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export declare const Toggle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
4
|
+
$isOpen?: boolean | undefined;
|
|
5
|
+
$isDisabled?: boolean | undefined;
|
|
6
|
+
}>> & string;
|
|
7
|
+
export declare const Menu: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
+
export declare const Item: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
9
|
+
$selected?: boolean | undefined;
|
|
10
|
+
$isDisabled?: boolean | undefined;
|
|
11
|
+
}>> & string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const DropdownContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export declare const SelectedBank: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
export declare const BankList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
export declare const BankItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
6
|
+
selected: boolean;
|
|
7
|
+
}>> & string;
|
|
8
|
+
export declare const BankLogo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>> & string;
|
|
9
|
+
export declare const BankName: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const Input: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
|
|
3
|
+
export declare const Button: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
4
|
+
disabled?: boolean | undefined;
|
|
5
|
+
}>> & string;
|
|
6
|
+
type OtpVerificationProps = {
|
|
7
|
+
setIsOtpModal: (value: boolean) => void;
|
|
8
|
+
setOtp: (value: string[]) => void;
|
|
9
|
+
otp: string[];
|
|
10
|
+
paymentMethod?: string;
|
|
11
|
+
handleOtp?: (value: string) => void;
|
|
12
|
+
};
|
|
13
|
+
declare const OtpVerification: React.FC<OtpVerificationProps>;
|
|
14
|
+
export default OtpVerification;
|