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.
@@ -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 PAYSTACK_REDIRECT_EVENT = "Payment Completed";
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
- paystackRedirectUrl?: string;
37
+ paymentRedirectUrl?: string;
38
38
  baseUrl: string;
39
39
  accountId: string;
40
40
  userAllowsWalletPayment: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mainstack-payments",
3
3
  "type": "module",
4
- "version": "0.5.9",
4
+ "version": "0.5.11",
5
5
  "main": "build/mainstack-payments.js",
6
6
  "types": "build/src/index.d.ts",
7
7
  "files": [
@@ -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 {};