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.
Files changed (55) hide show
  1. package/build/{CashAppPayment-BghcQZPY.js → CashAppPayment-CLJ1mUgV.js} +1 -1
  2. package/build/{CryptoPayments-eVW9ZpTq.js → CryptoPayments-D0V_H65D.js} +1 -1
  3. package/build/{index-OyliAwvi.js → index-D6I8egaA.js} +2019 -2032
  4. package/build/mainstack-payments.js +1 -1
  5. package/build/{api → src/api}/config.d.ts +5 -2
  6. package/build/{types → src/types}/index.d.ts +4 -4
  7. package/package.json +1 -1
  8. /package/build/{api → src/api}/index.d.ts +0 -0
  9. /package/build/{app.d.ts → src/app.d.ts} +0 -0
  10. /package/build/{components → src/components}/CheckoutForm.d.ts +0 -0
  11. /package/build/{components → src/components}/ConfirmEmailModal.d.ts +0 -0
  12. /package/build/{components → src/components}/ContactAction.d.ts +0 -0
  13. /package/build/{components → src/components}/ContactForm.d.ts +0 -0
  14. /package/build/{components → src/components}/Payment.d.ts +0 -0
  15. /package/build/{components → src/components}/PaymentActionModal.d.ts +0 -0
  16. /package/build/{components → src/components}/PaymentOptions/CashAppPayment.d.ts +0 -0
  17. /package/build/{components → src/components}/PaymentOptions/CryptoPayments.d.ts +0 -0
  18. /package/build/{components → src/components}/PaymentOptions/PaystackPayments.d.ts +0 -0
  19. /package/build/{components → src/components}/PaystackPaymentErrorModal.d.ts +0 -0
  20. /package/build/{components → src/components}/PrivacyPolicy.d.ts +0 -0
  21. /package/build/{components → src/components}/SummaryCard.d.ts +0 -0
  22. /package/build/{components → src/components}/UI/CardButton.d.ts +0 -0
  23. /package/build/{components → src/components}/UI/Collapse.d.ts +0 -0
  24. /package/build/{components → src/components}/UI/PaymentsDivider.d.ts +0 -0
  25. /package/build/{components → src/components}/UI/icons/AfricanPayIcon.d.ts +0 -0
  26. /package/build/{components → src/components}/UI/icons/ApplePayIcon.d.ts +0 -0
  27. /package/build/{components → src/components}/UI/icons/CashAppIcon.d.ts +0 -0
  28. /package/build/{components → src/components}/UI/icons/CheckoutCardIcon.d.ts +0 -0
  29. /package/build/{components → src/components}/UI/icons/CryptoIcon.d.ts +0 -0
  30. /package/build/{components → src/components}/UI/icons/GooglePayIcon.d.ts +0 -0
  31. /package/build/{components → src/components}/UI/icons/MainstackLogo.d.ts +0 -0
  32. /package/build/{components → src/components}/WalletPay.d.ts +0 -0
  33. /package/build/{constants → src/constants}/index.d.ts +0 -0
  34. /package/build/{enums → src/enums}/currenciesEnums.d.ts +0 -0
  35. /package/build/{hooks → src/hooks}/useApi.d.ts +0 -0
  36. /package/build/{hooks → src/hooks}/useDebounce.d.ts +0 -0
  37. /package/build/{hooks → src/hooks}/usePayment.d.ts +0 -0
  38. /package/build/{hooks → src/hooks}/usePaystackPayment.d.ts +0 -0
  39. /package/build/{hooks → src/hooks}/useSmoothScroll.d.ts +0 -0
  40. /package/build/{index.d.ts → src/index.d.ts} +0 -0
  41. /package/build/{pages → src/pages}/DiscountCode.d.ts +0 -0
  42. /package/build/{pages → src/pages}/Home.d.ts +0 -0
  43. /package/build/{pages → src/pages}/Login.d.ts +0 -0
  44. /package/build/{pages → src/pages}/Page404.d.ts +0 -0
  45. /package/build/{pages → src/pages}/PaymentRedirect.d.ts +0 -0
  46. /package/build/{pages → src/pages}/index.d.ts +0 -0
  47. /package/build/{provider → src/provider}/index.d.ts +0 -0
  48. /package/build/{routes → src/routes}/index.d.ts +0 -0
  49. /package/build/{utils → src/utils}/ValidatePostcode.d.ts +0 -0
  50. /package/build/{utils → src/utils}/countries_flag.json.d.ts +0 -0
  51. /package/build/{utils → src/utils}/countries_with_flags_and_currencies.json.d.ts +0 -0
  52. /package/build/{utils → src/utils}/formatUnderscoreText.d.ts +0 -0
  53. /package/build/{utils → src/utils}/index.d.ts +0 -0
  54. /package/build/{utils → src/utils}/stringifyPrice.d.ts +0 -0
  55. /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-OyliAwvi.js";
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: (baseUrl: string, paymentBaseUrl: string, productBaseUrl: string, feeBaseUrl: string, customHeaders?: {
2
+ declare const InitializeAPIConfig: (paymentBaseUrl: string, productBaseUrl: string, feeBaseUrl: string, customHeaders?: {
3
3
  [key: string]: string | boolean;
4
4
  } | undefined) => {
5
- Request: import('axios').AxiosInstance;
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: IOrderAmount;
220
+ subtotal: number;
221
221
  fees: IOrderFee[];
222
- totalFeeAmount: IOrderAmount;
223
- totalAmount: IOrderAmount;
222
+ totalFeeAmount: number;
223
+ totalAmount: number;
224
224
  status: string;
225
225
  metadata: Record<string, any>;
226
226
  isDeleted: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mainstack-payments",
3
3
  "type": "module",
4
- "version": "2.0.4",
4
+ "version": "2.0.6",
5
5
  "main": "build/mainstack-payments.js",
6
6
  "types": "build/src/index.d.ts",
7
7
  "style": "build/index.css",
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