mainstack-payments 2.0.4 → 2.0.6
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/{CashAppPayment-BghcQZPY.js → CashAppPayment-CLJ1mUgV.js} +1 -1
- package/build/{CryptoPayments-eVW9ZpTq.js → CryptoPayments-D0V_H65D.js} +1 -1
- package/build/{index-OyliAwvi.js → index-D6I8egaA.js} +2019 -2032
- package/build/mainstack-payments.js +1 -1
- package/build/{api → src/api}/config.d.ts +5 -2
- package/build/{types → src/types}/index.d.ts +4 -4
- package/package.json +1 -1
- /package/build/{api → src/api}/index.d.ts +0 -0
- /package/build/{app.d.ts → src/app.d.ts} +0 -0
- /package/build/{components → src/components}/CheckoutForm.d.ts +0 -0
- /package/build/{components → src/components}/ConfirmEmailModal.d.ts +0 -0
- /package/build/{components → src/components}/ContactAction.d.ts +0 -0
- /package/build/{components → src/components}/ContactForm.d.ts +0 -0
- /package/build/{components → src/components}/Payment.d.ts +0 -0
- /package/build/{components → src/components}/PaymentActionModal.d.ts +0 -0
- /package/build/{components → src/components}/PaymentOptions/CashAppPayment.d.ts +0 -0
- /package/build/{components → src/components}/PaymentOptions/CryptoPayments.d.ts +0 -0
- /package/build/{components → src/components}/PaymentOptions/PaystackPayments.d.ts +0 -0
- /package/build/{components → src/components}/PaystackPaymentErrorModal.d.ts +0 -0
- /package/build/{components → src/components}/PrivacyPolicy.d.ts +0 -0
- /package/build/{components → src/components}/SummaryCard.d.ts +0 -0
- /package/build/{components → src/components}/UI/CardButton.d.ts +0 -0
- /package/build/{components → src/components}/UI/Collapse.d.ts +0 -0
- /package/build/{components → src/components}/UI/PaymentsDivider.d.ts +0 -0
- /package/build/{components → src/components}/UI/icons/AfricanPayIcon.d.ts +0 -0
- /package/build/{components → src/components}/UI/icons/ApplePayIcon.d.ts +0 -0
- /package/build/{components → src/components}/UI/icons/CashAppIcon.d.ts +0 -0
- /package/build/{components → src/components}/UI/icons/CheckoutCardIcon.d.ts +0 -0
- /package/build/{components → src/components}/UI/icons/CryptoIcon.d.ts +0 -0
- /package/build/{components → src/components}/UI/icons/GooglePayIcon.d.ts +0 -0
- /package/build/{components → src/components}/UI/icons/MainstackLogo.d.ts +0 -0
- /package/build/{components → src/components}/WalletPay.d.ts +0 -0
- /package/build/{constants → src/constants}/index.d.ts +0 -0
- /package/build/{enums → src/enums}/currenciesEnums.d.ts +0 -0
- /package/build/{hooks → src/hooks}/useApi.d.ts +0 -0
- /package/build/{hooks → src/hooks}/useDebounce.d.ts +0 -0
- /package/build/{hooks → src/hooks}/usePayment.d.ts +0 -0
- /package/build/{hooks → src/hooks}/usePaystackPayment.d.ts +0 -0
- /package/build/{hooks → src/hooks}/useSmoothScroll.d.ts +0 -0
- /package/build/{index.d.ts → src/index.d.ts} +0 -0
- /package/build/{pages → src/pages}/DiscountCode.d.ts +0 -0
- /package/build/{pages → src/pages}/Home.d.ts +0 -0
- /package/build/{pages → src/pages}/Login.d.ts +0 -0
- /package/build/{pages → src/pages}/Page404.d.ts +0 -0
- /package/build/{pages → src/pages}/PaymentRedirect.d.ts +0 -0
- /package/build/{pages → src/pages}/index.d.ts +0 -0
- /package/build/{provider → src/provider}/index.d.ts +0 -0
- /package/build/{routes → src/routes}/index.d.ts +0 -0
- /package/build/{utils → src/utils}/ValidatePostcode.d.ts +0 -0
- /package/build/{utils → src/utils}/countries_flag.json.d.ts +0 -0
- /package/build/{utils → src/utils}/countries_with_flags_and_currencies.json.d.ts +0 -0
- /package/build/{utils → src/utils}/formatUnderscoreText.d.ts +0 -0
- /package/build/{utils → src/utils}/index.d.ts +0 -0
- /package/build/{utils → src/utils}/stringifyPrice.d.ts +0 -0
- /package/build/{utils → src/utils}/validations.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as e, d as t, S as n, M as y, e as P, P as m, f as o, g as r, W as u, h as i, b as c, i as l, j as d, k, u as C, a as M, l as h, m as F } from "./index-
|
|
1
|
+
import { c as e, d as t, S as n, M as y, e as P, P as m, f as o, g as r, W as u, h as i, b as c, i as l, j as d, k, u as C, a as M, l as h, m as F } from "./index-D6I8egaA.js";
|
|
2
2
|
export {
|
|
3
3
|
e as CheckoutForm,
|
|
4
4
|
t as ContactForm,
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/** @format */
|
|
2
|
-
declare const InitializeAPIConfig: (
|
|
2
|
+
declare const InitializeAPIConfig: (paymentBaseUrl: string, productBaseUrl: string, feeBaseUrl: string, customHeaders?: {
|
|
3
3
|
[key: string]: string | boolean;
|
|
4
4
|
} | undefined) => {
|
|
5
|
-
Request:
|
|
5
|
+
Request: {
|
|
6
|
+
new (input: RequestInfo | URL, init?: RequestInit | undefined): Request;
|
|
7
|
+
prototype: Request;
|
|
8
|
+
};
|
|
6
9
|
PaymentRequest: import('axios').AxiosInstance;
|
|
7
10
|
ProductRequest: import('axios').AxiosInstance;
|
|
8
11
|
FeeRequest: import('axios').AxiosInstance;
|
|
@@ -73,7 +73,6 @@ type TPaymentConfig = TCryptoPaymentConfig & {
|
|
|
73
73
|
transactionFeesSlug: string;
|
|
74
74
|
paymentOptions?: TPaymentOption[];
|
|
75
75
|
paymentRedirectUrl?: string;
|
|
76
|
-
baseUrl: string;
|
|
77
76
|
paymentBaseUrl: string;
|
|
78
77
|
productBaseUrl: string;
|
|
79
78
|
feeBaseUrl: string;
|
|
@@ -216,11 +215,12 @@ export interface IInitPaymentResponse {
|
|
|
216
215
|
merchantId: string;
|
|
217
216
|
userId: string;
|
|
218
217
|
customer: IOrderCustomer;
|
|
218
|
+
currency: string;
|
|
219
219
|
items: IOrderItem[];
|
|
220
|
-
subtotal:
|
|
220
|
+
subtotal: number;
|
|
221
221
|
fees: IOrderFee[];
|
|
222
|
-
totalFeeAmount:
|
|
223
|
-
totalAmount:
|
|
222
|
+
totalFeeAmount: number;
|
|
223
|
+
totalAmount: number;
|
|
224
224
|
status: string;
|
|
225
225
|
metadata: Record<string, any>;
|
|
226
226
|
isDeleted: boolean;
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|