mainstack-payments 0.5.9 → 0.5.11
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/build/mainstack-payments.js +2822 -2807
- package/build/src/components/CheckoutForm.d.ts +6 -1
- package/build/src/components/PaymentActionModal.d.ts +8 -0
- package/build/src/constants/index.d.ts +1 -1
- package/build/src/types/index.d.ts +1 -1
- package/package.json +1 -1
- package/build/src/components/PaystackPaymentModal.d.ts +0 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TPaymentModel } from 'types';
|
|
2
2
|
|
|
3
|
-
declare const CheckoutDetailsForm: ({ currency, amount, metadata, formik, isFree, showPayment, onCancel, btn_color, onPaymentComplete, Request, paymentModel, }: {
|
|
3
|
+
declare const CheckoutDetailsForm: ({ currency, amount, metadata, formik, isFree, showPayment, onCancel, btn_color, onPaymentComplete, Request, paymentModel, callbackUrl, setIframeUrl, }: {
|
|
4
4
|
currency: string;
|
|
5
5
|
amount: number;
|
|
6
6
|
metadata?: any;
|
|
@@ -13,5 +13,10 @@ declare const CheckoutDetailsForm: ({ currency, amount, metadata, formik, isFree
|
|
|
13
13
|
onPaymentComplete: (payload: object) => void;
|
|
14
14
|
Request: any;
|
|
15
15
|
paymentModel: TPaymentModel;
|
|
16
|
+
callbackUrl?: string | undefined;
|
|
17
|
+
setIframeUrl: (payload: {
|
|
18
|
+
url: string;
|
|
19
|
+
reference: string;
|
|
20
|
+
}) => void;
|
|
16
21
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
17
22
|
export default CheckoutDetailsForm;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
interface PaymentActionModalProps {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
src: string;
|
|
5
|
+
handleCloseModal: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const PaymentActionModal: ({ src, isOpen, handleCloseModal, }: PaymentActionModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** @format */
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const PAYMENT_REDIRECT_EVENT = "Payment Completed";
|
|
@@ -34,7 +34,7 @@ type TPaymentConfig = {
|
|
|
34
34
|
customizations?: TCustomizations;
|
|
35
35
|
transactionFeesSlug: string;
|
|
36
36
|
paymentOptions?: TPaymentOption[];
|
|
37
|
-
|
|
37
|
+
paymentRedirectUrl?: string;
|
|
38
38
|
baseUrl: string;
|
|
39
39
|
accountId: string;
|
|
40
40
|
userAllowsWalletPayment: boolean;
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/** @format */
|
|
2
|
-
interface PaystackPaymentModalProps {
|
|
3
|
-
isOpen: boolean;
|
|
4
|
-
src: string;
|
|
5
|
-
handleCloseModal: () => void;
|
|
6
|
-
}
|
|
7
|
-
export declare const PaystackPaymentModal: ({ src, isOpen, handleCloseModal, }: PaystackPaymentModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|