@bigbinary/neeto-payments-frontend 6.3.8 → 6.4.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/dist/AccountsDashboard.js +5 -5
- package/dist/AdminCancelRecurringPaymentButton.js +2 -2
- package/dist/CashPaymentButton.js +2 -2
- package/dist/ConfirmCashPaymentButton.js +2 -2
- package/dist/CustomerCancelRecurringPaymentForm.js +2 -2
- package/dist/{ExportModal-k--5vSLt.js → ExportModal-Imx5pEqt.js} +3 -3
- package/dist/{ExportModal-k--5vSLt.js.map → ExportModal-Imx5pEqt.js.map} +1 -1
- package/dist/{ExportModal-Bun3pMGn.js → ExportModal-hqjn7q4w.js} +3 -3
- package/dist/{ExportModal-Bun3pMGn.js.map → ExportModal-hqjn7q4w.js.map} +1 -1
- package/dist/ManualUpiConnect.js +2 -2
- package/dist/ManualUpiPayment.js +2 -2
- package/dist/ManualUpiPaymentConfirmButton.js +2 -2
- package/dist/ManualUpiPaymentRejectButton.js +2 -2
- package/dist/PaymentsDashboard.js +5 -5
- package/dist/PayoutsDashboard.js +5 -5
- package/dist/PayoutsPage.js +4 -4
- package/dist/RazorpayConnect.js +2 -2
- package/dist/RazorpayLinkedAccountForm.js +2 -2
- package/dist/RazorpayPaymentButton.js +20 -11
- package/dist/RazorpayPaymentButton.js.map +1 -1
- package/dist/RecurringPaymentSettings.js +2 -2
- package/dist/RefundsDashboard.js +5 -5
- package/dist/SplitTransfersDashboard.js +4 -4
- package/dist/StripeCheckoutSetting.js +2 -2
- package/dist/StripeConnect.js +4 -4
- package/dist/StripeManage.js +2 -2
- package/dist/TaxesDashboard.js +2 -2
- package/dist/buildStripeTransactionLink.js +1 -1
- package/dist/cjs/RazorpayPaymentButton.js +19 -10
- package/dist/cjs/RazorpayPaymentButton.js.map +1 -1
- package/dist/cjs/index.js +9 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/razorpayCheckoutOutcome-DwerRK1B.js +96 -0
- package/dist/cjs/razorpayCheckoutOutcome-DwerRK1B.js.map +1 -0
- package/dist/cjs/useRazorpayPayment.js +20 -11
- package/dist/cjs/useRazorpayPayment.js.map +1 -1
- package/dist/cjs/v2/RazorpayPaymentButton.js +19 -10
- package/dist/cjs/v2/RazorpayPaymentButton.js.map +1 -1
- package/dist/cjs/v2/index.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/{dashboard-Ba2uhKXD.js → dashboard-BP47wvu-.js} +2 -2
- package/dist/{dashboard-Ba2uhKXD.js.map → dashboard-BP47wvu-.js.map} +1 -1
- package/dist/getAddressElementOptions.js +1 -1
- package/dist/getAmountInLargestCurrencyUnit.js +1 -1
- package/dist/getAmountInSmallestCurrencyUnit.js +1 -1
- package/dist/getAmountWithAppliedTax.js +1 -1
- package/dist/getFormattedAmount.js +1 -1
- package/dist/getFormattedDiscountedAmount.js +1 -1
- package/dist/getFormattedDiscountedPercentage.js +1 -1
- package/dist/getFormattedTaxAmount.js +1 -1
- package/dist/getFormattedTipAmount.js +1 -1
- package/dist/getQrCodeValue.js +1 -1
- package/dist/getTaxAmount.js +1 -1
- package/dist/getTipAmount.js +1 -1
- package/dist/hasAmountToPay.js +1 -1
- package/dist/{index-CajHy3NQ.js → index-CpGnAY9G.js} +2 -2
- package/dist/{index-CajHy3NQ.js.map → index-CpGnAY9G.js.map} +1 -1
- package/dist/index.js +34 -28
- package/dist/index.js.map +1 -1
- package/dist/razorpayCheckoutOutcome-ChPKzUYJ.js +91 -0
- package/dist/razorpayCheckoutOutcome-ChPKzUYJ.js.map +1 -0
- package/dist/{renderFunctions-B9mVn_ag.js → renderFunctions-CcLI5Jq6.js} +2 -2
- package/dist/{renderFunctions-B9mVn_ag.js.map → renderFunctions-CcLI5Jq6.js.map} +1 -1
- package/dist/{useAccountsApi-CZyJ4R8Z.js → useAccountsApi-DF78k_sA.js} +2 -2
- package/dist/{useAccountsApi-CZyJ4R8Z.js.map → useAccountsApi-DF78k_sA.js.map} +1 -1
- package/dist/{useBusinessTypesApi-CS2aPq7Y.js → useBusinessTypesApi-DwddCKIb.js} +2 -2
- package/dist/{useBusinessTypesApi-CS2aPq7Y.js.map → useBusinessTypesApi-DwddCKIb.js.map} +1 -1
- package/dist/{useCheckoutSettingsApi-D1ZvMA4B.js → useCheckoutSettingsApi-B29sE02j.js} +2 -2
- package/dist/{useCheckoutSettingsApi-D1ZvMA4B.js.map → useCheckoutSettingsApi-B29sE02j.js.map} +1 -1
- package/dist/{useCountriesApi-ClXgwNgC.js → useCountriesApi-CSfkzWgq.js} +2 -2
- package/dist/{useCountriesApi-ClXgwNgC.js.map → useCountriesApi-CSfkzWgq.js.map} +1 -1
- package/dist/{useExportsApi-C1wjoVYy.js → useExportsApi-BCnxSe7P.js} +2 -2
- package/dist/{useExportsApi-C1wjoVYy.js.map → useExportsApi-BCnxSe7P.js.map} +1 -1
- package/dist/{useExportsApi-DA6ThV9b.js → useExportsApi-B_ABJiMX.js} +2 -2
- package/dist/{useExportsApi-DA6ThV9b.js.map → useExportsApi-B_ABJiMX.js.map} +1 -1
- package/dist/{useFetchData-8LLdmA74.js → useFetchData-Cleas8Tk.js} +2 -2
- package/dist/{useFetchData-8LLdmA74.js.map → useFetchData-Cleas8Tk.js.map} +1 -1
- package/dist/{useIntegrationsApi-BqU-lJql.js → useIntegrationsApi-BEZaeW9w.js} +2 -2
- package/dist/{useIntegrationsApi-BqU-lJql.js.map → useIntegrationsApi-BEZaeW9w.js.map} +1 -1
- package/dist/{usePaymentApi-gvPmTOWg.js → usePaymentApi-B0BXE-4o.js} +2 -2
- package/dist/{usePaymentApi-gvPmTOWg.js.map → usePaymentApi-B0BXE-4o.js.map} +1 -1
- package/dist/{usePaymentApi-CjtkL3IU.js → usePaymentApi-BfoBBuRN.js} +2 -2
- package/dist/{usePaymentApi-CjtkL3IU.js.map → usePaymentApi-BfoBBuRN.js.map} +1 -1
- package/dist/{usePaymentsApi-C2xbgHmw.js → usePaymentsApi-Ctl1XsA1.js} +2 -2
- package/dist/{usePaymentsApi-C2xbgHmw.js.map → usePaymentsApi-Ctl1XsA1.js.map} +1 -1
- package/dist/{usePlatformApi-Dug1pxaH.js → usePlatformApi-B29AJb-p.js} +2 -2
- package/dist/{usePlatformApi-Dug1pxaH.js.map → usePlatformApi-B29AJb-p.js.map} +1 -1
- package/dist/useRazorpayPayment.js +21 -12
- package/dist/useRazorpayPayment.js.map +1 -1
- package/dist/{useRecurringPaymentsApi-dbdBrh4V.js → useRecurringPaymentsApi-B6zvIYkm.js} +2 -2
- package/dist/{useRecurringPaymentsApi-dbdBrh4V.js.map → useRecurringPaymentsApi-B6zvIYkm.js.map} +1 -1
- package/dist/{useRecurringPaymentsApi-CkxjkZd2.js → useRecurringPaymentsApi-BTOeJ8Xu.js} +2 -2
- package/dist/{useRecurringPaymentsApi-CkxjkZd2.js.map → useRecurringPaymentsApi-BTOeJ8Xu.js.map} +1 -1
- package/dist/{useRecurringSettingsApi-B_kTDES9.js → useRecurringSettingsApi-Dkjo_BKx.js} +2 -2
- package/dist/{useRecurringSettingsApi-B_kTDES9.js.map → useRecurringSettingsApi-Dkjo_BKx.js.map} +1 -1
- package/dist/{useRefundsApi-DSMKTWIQ.js → useRefundsApi-Ce4HmQgn.js} +2 -2
- package/dist/{useRefundsApi-DSMKTWIQ.js.map → useRefundsApi-Ce4HmQgn.js.map} +1 -1
- package/dist/{useSplitTransfersApi-DlRs4wYh.js → useSplitTransfersApi-CDzhSH8q.js} +2 -2
- package/dist/{useSplitTransfersApi-DlRs4wYh.js.map → useSplitTransfersApi-CDzhSH8q.js.map} +1 -1
- package/dist/{useTaxesApi-BuPeVUxI.js → useTaxesApi-CNyTbsgK.js} +2 -2
- package/dist/{useTaxesApi-BuPeVUxI.js.map → useTaxesApi-CNyTbsgK.js.map} +1 -1
- package/dist/{useVpasApi-wicZ6o_z.js → useVpasApi-X1KhsMZl.js} +2 -2
- package/dist/{useVpasApi-wicZ6o_z.js.map → useVpasApi-X1KhsMZl.js.map} +1 -1
- package/dist/v2/AccountsDashboard.js +4 -4
- package/dist/v2/AdminCancelRecurringPaymentButton.js +2 -2
- package/dist/v2/CashPaymentButton.js +2 -2
- package/dist/v2/ConfirmCashPaymentButton.js +2 -2
- package/dist/v2/CustomerCancelRecurringPaymentForm.js +2 -2
- package/dist/v2/ManualUpiConnect.js +2 -2
- package/dist/v2/ManualUpiPayment.js +2 -2
- package/dist/v2/ManualUpiPaymentConfirmButton.js +2 -2
- package/dist/v2/ManualUpiPaymentRejectButton.js +2 -2
- package/dist/v2/PaymentsDashboard.js +5 -5
- package/dist/v2/PayoutsDashboard.js +4 -4
- package/dist/v2/PayoutsPage.js +3 -3
- package/dist/v2/RazorpayConnect.js +2 -2
- package/dist/v2/RazorpayLinkedAccountForm.js +2 -2
- package/dist/v2/RazorpayPaymentButton.js +20 -11
- package/dist/v2/RazorpayPaymentButton.js.map +1 -1
- package/dist/v2/RecurringPaymentSettings.js +2 -2
- package/dist/v2/RefundsDashboard.js +5 -5
- package/dist/v2/SplitTransfersDashboard.js +4 -4
- package/dist/v2/StripeCheckoutSetting.js +2 -2
- package/dist/v2/StripeConnect.js +4 -4
- package/dist/v2/StripeManage.js +2 -2
- package/dist/v2/TaxesDashboard.js +2 -2
- package/dist/v2/index.js +23 -23
- package/package.json +14 -14
- package/dist/cjs/usePaymentApi-B198Hd_a.js +0 -21
- package/dist/cjs/usePaymentApi-B198Hd_a.js.map +0 -1
- package/dist/usePaymentApi-BzB3rzNe.js +0 -19
- package/dist/usePaymentApi-BzB3rzNe.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RazorpayPaymentButton.js","sources":["../../app/javascript/src/v2/components/RazorpayPaymentButton.jsx"],"sourcesContent":["import { Button } from \"@bigbinary/neeto-atoms\";\nimport {
|
|
1
|
+
{"version":3,"file":"RazorpayPaymentButton.js","sources":["../../app/javascript/src/v2/components/RazorpayPaymentButton.jsx"],"sourcesContent":["import { useRef } from \"react\";\n\nimport { Button } from \"@bigbinary/neeto-atoms\";\nimport { noop, findBy } from \"neetocist\";\nimport { mergeDeepLeft } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { useCreateRazorpayPayment } from \"hooks/reactQuery/razorpay/usePaymentApi\";\nimport { RAZORPAY_PAYMENT_BUTTON_OPTIONS } from \"src/constants\";\nimport {\n verifyCheckoutPayment,\n resolveDismissedCheckout,\n} from \"utils/razorpayCheckoutOutcome\";\n\nconst loadScript = src =>\n new Promise(resolve => {\n const script = document.createElement(\"script\");\n script.src = src;\n script.onload = () => {\n resolve(true);\n };\n\n script.onerror = () => {\n resolve(false);\n };\n document.body.appendChild(script);\n });\n\nconst RazorpayPaymentButton = ({\n label,\n payableId,\n discountCode,\n email,\n contact,\n customAmount,\n isDisabled,\n isLoading,\n name,\n tip,\n theme = {},\n isPreserveDetailsChecked = false,\n numberOfInstallments = 1,\n payableType = null,\n onBeforePayment = noop,\n onSuccessfulPayment = noop,\n onFailedPayment = noop,\n onPaymentCreated = noop,\n onError = noop,\n}) => {\n const { t } = useTranslation();\n const paymentRef = useRef(null);\n\n const openRazorpayCheckout = async options => {\n const script = await loadScript(\n \"https://checkout.razorpay.com/v1/checkout.js\"\n );\n\n if (!script) {\n logger.error(t(\"neetoPayments.razorpay.loadError\"));\n\n return;\n }\n const checkout = new window.Razorpay(options);\n\n checkout.on(\"payment.failed\", response => {\n const errorDescription = response?.error?.description;\n const errorReason = response?.error?.reason;\n logger.error(\"Razorpay payment failed:\", {\n description: errorDescription,\n reason: errorReason,\n });\n onFailedPayment({ errorDescription, errorReason });\n });\n\n checkout.open();\n };\n\n const handlePayment = response =>\n verifyCheckoutPayment({\n payment: paymentRef.current,\n response,\n onSuccessfulPayment,\n onFailedPayment,\n });\n\n const handleDismiss = () =>\n resolveDismissedCheckout({\n payment: paymentRef.current,\n onSuccessfulPayment,\n onFailedPayment,\n });\n\n const handleSuccess = ({ payment }) => {\n paymentRef.current = payment;\n onPaymentCreated(payment);\n\n if (payment?.status === \"successful\") {\n return onSuccessfulPayment();\n }\n\n const themePrimaryColor = findBy(\n { key: \"primary_color\" },\n theme?.properties\n )?.value;\n\n const options = {\n key: payment.publicKey,\n order_id: payment.orderIdentifier,\n remember_customer: true,\n customer_id: payment.customerIdentifier,\n prefill: { name, email },\n modal: { confirm_close: true, ondismiss: handleDismiss },\n handler: handlePayment,\n theme: { color: themePrimaryColor ?? \"#0da84c\" },\n };\n\n if (isPreserveDetailsChecked) {\n options[\"recurring\"] = \"1\";\n }\n\n return openRazorpayCheckout(\n mergeDeepLeft(RAZORPAY_PAYMENT_BUTTON_OPTIONS, options)\n );\n };\n\n const { isPending, mutate: createRazorpayOrder } = useCreateRazorpayPayment({\n onSuccess: handleSuccess,\n onError,\n });\n\n const handleClick = () => {\n onBeforePayment();\n const payload = {\n payableId,\n payableType,\n discountCode,\n customAmount,\n tipAttributes: tip,\n numberOfInstallments,\n customerAttributes: { email, name, contact },\n isCardPreservingEnabled: isPreserveDetailsChecked,\n };\n createRazorpayOrder(payload);\n };\n\n return (\n <Button\n disabled={isPending || isDisabled}\n label={label || t(\"neetoPayments.common.pay\")}\n loading={isPending || isLoading}\n onClick={handleClick}\n />\n );\n};\n\nexport default RazorpayPaymentButton;\n"],"names":["loadScript","src","Promise","resolve","script","document","createElement","onload","onerror","body","appendChild","RazorpayPaymentButton","label","payableId","discountCode","email","contact","customAmount","isDisabled","isLoading","name","tip","theme","isPreserveDetailsChecked","numberOfInstallments","payableType","onBeforePayment","noop","onSuccessfulPayment","onFailedPayment","onPaymentCreated","onError","t","useTranslation","paymentRef","useRef","openRazorpayCheckout","options","logger","error","checkout","window","Razorpay","on","response","errorDescription","description","errorReason","reason","open","handlePayment","verifyCheckoutPayment","payment","current","handleDismiss","resolveDismissedCheckout","handleSuccess","status","themePrimaryColor","findBy","key","properties","value","publicKey","order_id","orderIdentifier","remember_customer","customer_id","customerIdentifier","prefill","modal","confirm_close","ondismiss","handler","color","mergeDeepLeft","RAZORPAY_PAYMENT_BUTTON_OPTIONS","isPending","mutate","createRazorpayOrder","useCreateRazorpayPayment","onSuccess","handleClick","payload","tipAttributes","customerAttributes","isCardPreservingEnabled","_jsx","Button","disabled","loading","onClick"],"mappings":"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"}
|
|
@@ -6,14 +6,14 @@ import Container from '@bigbinary/neeto-molecules/v2/Container';
|
|
|
6
6
|
import Header from '@bigbinary/neeto-molecules/v2/Header';
|
|
7
7
|
import { mergeLeft } from 'ramda';
|
|
8
8
|
import { useTranslation, Trans } from 'react-i18next';
|
|
9
|
-
import { u as useFetchRecurringSettings, a as useUpdateRecurringSettings } from '../useRecurringSettingsApi-
|
|
9
|
+
import { u as useFetchRecurringSettings, a as useUpdateRecurringSettings } from '../useRecurringSettingsApi-Dkjo_BKx.js';
|
|
10
10
|
import { t } from 'i18next';
|
|
11
11
|
import * as yup from 'yup';
|
|
12
12
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
13
13
|
import '@tanstack/react-query';
|
|
14
14
|
import 'neetocommons/react-utils';
|
|
15
15
|
import 'axios';
|
|
16
|
-
import '../index-
|
|
16
|
+
import '../index-CpGnAY9G.js';
|
|
17
17
|
import 'neetocommons/constants';
|
|
18
18
|
import 'decimal.js';
|
|
19
19
|
import 'neetocommons/utils';
|
|
@@ -5,10 +5,10 @@ import { getQueryParams, buildUrl } from 'neetocommons/utils';
|
|
|
5
5
|
import { Bar, buildFiltersFromURL } from '@bigbinary/neeto-filters-frontend/v2';
|
|
6
6
|
import { map, curry, reject, isNil, concat, prop, mergeDeepWith, mergeLeft, isEmpty } from 'ramda';
|
|
7
7
|
import { useHistory } from 'react-router-dom';
|
|
8
|
-
import { E as ExportModal } from '../ExportModal-
|
|
9
|
-
import { u as useFetchRefunds } from '../useRefundsApi-
|
|
10
|
-
import { q as PAYMENT_PROVIDERS, r as formatAmount, s as formatCurrency, z as DEFAULT_SORT_PROPERTIES, A as ASSOCIATED_TABLE_COLUMNS, x as shouldTabsVisible, U as UN_HIDEABLE_COLUMNS, D as DEFAULT_PAGE_VALUES, y as DASHBOARD_KIND } from '../index-
|
|
11
|
-
import { m as mergeEnforcedFilters } from '../dashboard-
|
|
8
|
+
import { E as ExportModal } from '../ExportModal-Imx5pEqt.js';
|
|
9
|
+
import { u as useFetchRefunds } from '../useRefundsApi-Ce4HmQgn.js';
|
|
10
|
+
import { q as PAYMENT_PROVIDERS, r as formatAmount, s as formatCurrency, z as DEFAULT_SORT_PROPERTIES, A as ASSOCIATED_TABLE_COLUMNS, x as shouldTabsVisible, U as UN_HIDEABLE_COLUMNS, D as DEFAULT_PAGE_VALUES, y as DASHBOARD_KIND } from '../index-CpGnAY9G.js';
|
|
11
|
+
import { m as mergeEnforcedFilters } from '../dashboard-BP47wvu-.js';
|
|
12
12
|
import { t } from 'i18next';
|
|
13
13
|
import { toLabelAndValue, humanize, snakeToCamelCase, isPresent, isNotPresent, camelToSnakeCase } from 'neetocist';
|
|
14
14
|
import { RotateCcw } from 'lucide-react';
|
|
@@ -22,7 +22,7 @@ import { C as CopyButtonWrapper } from '../CopyButtonWrapper-B53v2TyQ.js';
|
|
|
22
22
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
23
23
|
import Header from '@bigbinary/neeto-molecules/v2/Header';
|
|
24
24
|
import SubHeader from '@bigbinary/neeto-molecules/v2/SubHeader';
|
|
25
|
-
import '../useExportsApi-
|
|
25
|
+
import '../useExportsApi-BCnxSe7P.js';
|
|
26
26
|
import '@tanstack/react-query';
|
|
27
27
|
import 'axios';
|
|
28
28
|
import '../queryConstants-8c7Nd8ML.js';
|
|
@@ -5,9 +5,9 @@ import { currencyFormat, getQueryParams, buildUrl } from 'neetocommons/utils';
|
|
|
5
5
|
import { Bar, buildFiltersFromURL } from '@bigbinary/neeto-filters-frontend/v2';
|
|
6
6
|
import { mergeLeft, curry, reject, isNil, concat, map, prop, mergeDeepWith, sortBy, isEmpty, pluck } from 'ramda';
|
|
7
7
|
import { useHistory } from 'react-router-dom';
|
|
8
|
-
import { E as ExportModal } from '../ExportModal-
|
|
9
|
-
import { u as useShowSplitTransfers, a as useFetchSplitTransfers, b as useBulkUpdateSplitTransfers } from '../useSplitTransfersApi-
|
|
10
|
-
import { r as formatAmount, s as formatCurrency, J as PAYMENT_KIND, z as DEFAULT_SORT_PROPERTIES, x as shouldTabsVisible, U as UN_HIDEABLE_COLUMNS, D as DEFAULT_PAGE_VALUES, y as DASHBOARD_KIND } from '../index-
|
|
8
|
+
import { E as ExportModal } from '../ExportModal-Imx5pEqt.js';
|
|
9
|
+
import { u as useShowSplitTransfers, a as useFetchSplitTransfers, b as useBulkUpdateSplitTransfers } from '../useSplitTransfersApi-CDzhSH8q.js';
|
|
10
|
+
import { r as formatAmount, s as formatCurrency, J as PAYMENT_KIND, z as DEFAULT_SORT_PROPERTIES, x as shouldTabsVisible, U as UN_HIDEABLE_COLUMNS, D as DEFAULT_PAGE_VALUES, y as DASHBOARD_KIND } from '../index-CpGnAY9G.js';
|
|
11
11
|
import { Form, Textarea, ActionBlock } from '@bigbinary/neeto-atoms/formik';
|
|
12
12
|
import { useTranslation } from 'react-i18next';
|
|
13
13
|
import { t } from 'i18next';
|
|
@@ -24,7 +24,7 @@ import DateFormat from '@bigbinary/neeto-molecules/v2/DateFormat';
|
|
|
24
24
|
import { C as CopyButtonWrapper } from '../CopyButtonWrapper-B53v2TyQ.js';
|
|
25
25
|
import Header from '@bigbinary/neeto-molecules/v2/Header';
|
|
26
26
|
import SubHeader from '@bigbinary/neeto-molecules/v2/SubHeader';
|
|
27
|
-
import '../useExportsApi-
|
|
27
|
+
import '../useExportsApi-BCnxSe7P.js';
|
|
28
28
|
import '@tanstack/react-query';
|
|
29
29
|
import 'axios';
|
|
30
30
|
import 'neetocommons/react-utils';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Switch } from '@bigbinary/neeto-atoms';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
|
-
import { u as useFetchCheckoutSetting, a as useUpdateCheckoutSetting } from '../useCheckoutSettingsApi-
|
|
3
|
+
import { u as useFetchCheckoutSetting, a as useUpdateCheckoutSetting } from '../useCheckoutSettingsApi-B29sE02j.js';
|
|
4
4
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
5
|
import '@tanstack/react-query';
|
|
6
6
|
import 'neetocommons/react-utils';
|
|
7
7
|
import 'ramda';
|
|
8
8
|
import 'axios';
|
|
9
|
-
import '../index-
|
|
9
|
+
import '../index-CpGnAY9G.js';
|
|
10
10
|
import 'i18next';
|
|
11
11
|
import 'neetocommons/constants';
|
|
12
12
|
import 'decimal.js';
|
package/dist/v2/StripeConnect.js
CHANGED
|
@@ -9,14 +9,14 @@ import DOMPurify from 'dompurify';
|
|
|
9
9
|
import { buildUrl } from 'neetocommons/v2/utils';
|
|
10
10
|
import { Stripe } from '@bigbinary/neeto-icons/misc';
|
|
11
11
|
import CardLayout from '@bigbinary/neeto-molecules/v2/CardLayout';
|
|
12
|
-
import { u as useFetchPaymentIntegrations } from '../useIntegrationsApi-
|
|
13
|
-
import { F as STRIPE_CONNECT_ENDPOINT, P as POLLING_INTERVAL, E as ERROR_TYPE, M as MAX_POLLING_TIME } from '../index-
|
|
12
|
+
import { u as useFetchPaymentIntegrations } from '../useIntegrationsApi-BEZaeW9w.js';
|
|
13
|
+
import { F as STRIPE_CONNECT_ENDPOINT, P as POLLING_INTERVAL, E as ERROR_TYPE, M as MAX_POLLING_TIME } from '../index-CpGnAY9G.js';
|
|
14
14
|
import { t } from 'i18next';
|
|
15
15
|
import * as yup from 'yup';
|
|
16
16
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
17
17
|
import { Form, Select, ActionBlock } from '@bigbinary/neeto-atoms/formik';
|
|
18
|
-
import { u as useCreateStripeAccount, a as usePollingStripeAccountCreationStatus } from '../useAccountsApi-
|
|
19
|
-
import { u as useFetchStripeCountries } from '../useCountriesApi-
|
|
18
|
+
import { u as useCreateStripeAccount, a as usePollingStripeAccountCreationStatus } from '../useAccountsApi-DF78k_sA.js';
|
|
19
|
+
import { u as useFetchStripeCountries } from '../useCountriesApi-CSfkzWgq.js';
|
|
20
20
|
import { useQueryClient } from '@tanstack/react-query';
|
|
21
21
|
import { useQueryParams } from 'neetocommons/v2/react-utils';
|
|
22
22
|
import { Q as QUERY_KEYS } from '../queryConstants-8c7Nd8ML.js';
|
package/dist/v2/StripeManage.js
CHANGED
|
@@ -5,12 +5,12 @@ import CardLayout from '@bigbinary/neeto-molecules/v2/CardLayout';
|
|
|
5
5
|
import StripeCheckoutSetting from './StripeCheckoutSetting.js';
|
|
6
6
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
7
7
|
import 'react-i18next';
|
|
8
|
-
import '../useCheckoutSettingsApi-
|
|
8
|
+
import '../useCheckoutSettingsApi-B29sE02j.js';
|
|
9
9
|
import '@tanstack/react-query';
|
|
10
10
|
import 'neetocommons/react-utils';
|
|
11
11
|
import 'ramda';
|
|
12
12
|
import 'axios';
|
|
13
|
-
import '../index-
|
|
13
|
+
import '../index-CpGnAY9G.js';
|
|
14
14
|
import 'i18next';
|
|
15
15
|
import 'neetocommons/constants';
|
|
16
16
|
import 'decimal.js';
|
|
@@ -8,7 +8,7 @@ import MoreDropdown from '@bigbinary/neeto-molecules/v2/MoreDropdown';
|
|
|
8
8
|
import TableWrapper from '@bigbinary/neeto-molecules/v2/TableWrapper';
|
|
9
9
|
import { isEmpty } from 'ramda';
|
|
10
10
|
import { useTranslation, Trans } from 'react-i18next';
|
|
11
|
-
import { u as useCreateTax, a as useUpdateTax, b as useFetchTaxes, c as useDeleteTax } from '../useTaxesApi-
|
|
11
|
+
import { u as useCreateTax, a as useUpdateTax, b as useFetchTaxes, c as useDeleteTax } from '../useTaxesApi-CNyTbsgK.js';
|
|
12
12
|
import { Form, Input, RadioGroup, ActionBlock } from '@bigbinary/neeto-atoms/formik';
|
|
13
13
|
import { t } from 'i18next';
|
|
14
14
|
import * as yup from 'yup';
|
|
@@ -16,7 +16,7 @@ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
|
16
16
|
import '@tanstack/react-query';
|
|
17
17
|
import 'neetocommons/react-utils';
|
|
18
18
|
import 'axios';
|
|
19
|
-
import '../index-
|
|
19
|
+
import '../index-CpGnAY9G.js';
|
|
20
20
|
import 'neetocommons/constants';
|
|
21
21
|
import 'decimal.js';
|
|
22
22
|
import 'neetocommons/utils';
|
package/dist/v2/index.js
CHANGED
|
@@ -22,7 +22,7 @@ export { default as StripeCheckoutSetting } from './StripeCheckoutSetting.js';
|
|
|
22
22
|
export { default as StripeConnect } from './StripeConnect.js';
|
|
23
23
|
export { default as StripeManage } from './StripeManage.js';
|
|
24
24
|
export { default as TaxesDashboard } from './TaxesDashboard.js';
|
|
25
|
-
export { g as getAddressElementOptions,
|
|
25
|
+
export { g as getAddressElementOptions, a as getAmountInSmallestCurrencyUnit } from '../index-CpGnAY9G.js';
|
|
26
26
|
export { default as useStripePromise } from '../useStripePromise.js';
|
|
27
27
|
import '../main-Bqi97Os6.js';
|
|
28
28
|
import 'react';
|
|
@@ -34,7 +34,7 @@ import '@bigbinary/neeto-filters-frontend/v2';
|
|
|
34
34
|
import '@bigbinary/neeto-molecules/v2/Header';
|
|
35
35
|
import '@bigbinary/neeto-molecules/v2/SubHeader';
|
|
36
36
|
import 'react-i18next';
|
|
37
|
-
import '../useExportsApi-
|
|
37
|
+
import '../useExportsApi-B_ABJiMX.js';
|
|
38
38
|
import '@tanstack/react-query';
|
|
39
39
|
import '@tanstack/react-query-devtools';
|
|
40
40
|
import 'neetocommons/constants';
|
|
@@ -45,7 +45,7 @@ import 'neetocommons/utils';
|
|
|
45
45
|
import 'lucide-react';
|
|
46
46
|
import 'ramda';
|
|
47
47
|
import 'react-router-dom';
|
|
48
|
-
import '../dashboard-
|
|
48
|
+
import '../dashboard-BP47wvu-.js';
|
|
49
49
|
import '../renderFunctions-SFUBbGqd.js';
|
|
50
50
|
import '@bigbinary/neeto-molecules/v2/DateFormat';
|
|
51
51
|
import '../CopyButtonWrapper-B53v2TyQ.js';
|
|
@@ -53,44 +53,44 @@ import '@bigbinary/neeto-molecules/v2/CopyToClipboardButton';
|
|
|
53
53
|
import '../copy-button-EhEBcNP9.js';
|
|
54
54
|
import '@bigbinary/neeto-molecules/v2/Columns';
|
|
55
55
|
import '@bigbinary/neeto-molecules/v2/TableWrapper';
|
|
56
|
-
import '../useAccountsApi-
|
|
56
|
+
import '../useAccountsApi-DF78k_sA.js';
|
|
57
57
|
import 'neetocommons/react-utils';
|
|
58
58
|
import '../queryConstants-8c7Nd8ML.js';
|
|
59
|
-
import '../useRecurringPaymentsApi-
|
|
60
|
-
import '../usePaymentApi-
|
|
59
|
+
import '../useRecurringPaymentsApi-B6zvIYkm.js';
|
|
60
|
+
import '../usePaymentApi-B0BXE-4o.js';
|
|
61
61
|
import '@bigbinary/neeto-atoms/formik';
|
|
62
|
-
import '../useRecurringPaymentsApi-
|
|
63
|
-
import '../useVpasApi-
|
|
62
|
+
import '../useRecurringPaymentsApi-BTOeJ8Xu.js';
|
|
63
|
+
import '../useVpasApi-X1KhsMZl.js';
|
|
64
64
|
import '@bigbinary/neeto-molecules/v2/CardLayout';
|
|
65
65
|
import 'yup';
|
|
66
66
|
import 'neetocommons/v2/utils';
|
|
67
67
|
import '@bigbinary/neeto-molecules/v2/MoreDropdown';
|
|
68
68
|
import '@rails/activestorage';
|
|
69
69
|
import 'qrcode.react';
|
|
70
|
-
import '../usePaymentApi-
|
|
70
|
+
import '../usePaymentApi-BfoBBuRN.js';
|
|
71
71
|
import 'formik';
|
|
72
|
-
import '../ExportModal-
|
|
73
|
-
import '../useExportsApi-
|
|
74
|
-
import '../usePaymentsApi-
|
|
72
|
+
import '../ExportModal-Imx5pEqt.js';
|
|
73
|
+
import '../useExportsApi-BCnxSe7P.js';
|
|
74
|
+
import '../usePaymentsApi-Ctl1XsA1.js';
|
|
75
75
|
import '../index-CKJlawqs.js';
|
|
76
|
-
import '../usePlatformApi-
|
|
76
|
+
import '../usePlatformApi-B29AJb-p.js';
|
|
77
77
|
import 'qs';
|
|
78
78
|
import 'react-router-dom/cjs/react-router-dom';
|
|
79
|
-
import '../useFetchData-
|
|
79
|
+
import '../useFetchData-Cleas8Tk.js';
|
|
80
80
|
import '@bigbinary/neeto-icons/misc';
|
|
81
81
|
import '@bigbinary/neeto-molecules/v2/Container';
|
|
82
|
-
import '../useIntegrationsApi-
|
|
82
|
+
import '../useIntegrationsApi-BEZaeW9w.js';
|
|
83
83
|
import '@bigbinary/neeto-molecules/v2/PhoneNumber';
|
|
84
|
-
import '../useBusinessTypesApi-
|
|
85
|
-
import '../
|
|
84
|
+
import '../useBusinessTypesApi-DwddCKIb.js';
|
|
85
|
+
import '../razorpayCheckoutOutcome-ChPKzUYJ.js';
|
|
86
86
|
import 'neetocommons/initializers';
|
|
87
|
-
import '../useRecurringSettingsApi-
|
|
88
|
-
import '../useRefundsApi-
|
|
89
|
-
import '../useSplitTransfersApi-
|
|
87
|
+
import '../useRecurringSettingsApi-Dkjo_BKx.js';
|
|
88
|
+
import '../useRefundsApi-Ce4HmQgn.js';
|
|
89
|
+
import '../useSplitTransfersApi-CDzhSH8q.js';
|
|
90
90
|
import '@bigbinary/neeto-molecules/v2/HelpPopover';
|
|
91
|
-
import '../useCheckoutSettingsApi-
|
|
91
|
+
import '../useCheckoutSettingsApi-B29sE02j.js';
|
|
92
92
|
import 'dompurify';
|
|
93
|
-
import '../useCountriesApi-
|
|
94
|
-
import '../useTaxesApi-
|
|
93
|
+
import '../useCountriesApi-CSfkzWgq.js';
|
|
94
|
+
import '../useTaxesApi-CNyTbsgK.js';
|
|
95
95
|
import 'decimal.js';
|
|
96
96
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-payments-frontend",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.0",
|
|
4
4
|
"description": "To manage payments across the neeto products.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"homepage": "https://github.com/bigbinary/neeto-payments-nano",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@babel/core": "7.
|
|
65
|
+
"@babel/core": "7.29.7",
|
|
66
66
|
"@babel/eslint-parser": "7.25.9",
|
|
67
67
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
68
68
|
"@babel/plugin-transform-runtime": "7.25.9",
|
|
@@ -71,14 +71,14 @@
|
|
|
71
71
|
"@babel/preset-typescript": "7.26.0",
|
|
72
72
|
"@babel/runtime": "7.29.7",
|
|
73
73
|
"@bigbinary/babel-preset-neeto": "^1.0.3",
|
|
74
|
-
"@bigbinary/eslint-plugin-neeto": "1.9.
|
|
74
|
+
"@bigbinary/eslint-plugin-neeto": "1.9.1",
|
|
75
75
|
"@bigbinary/neeto-atoms": "1.0.90",
|
|
76
76
|
"@bigbinary/neeto-cist": "1.0.17",
|
|
77
|
-
"@bigbinary/neeto-commons-frontend": "4.13.
|
|
77
|
+
"@bigbinary/neeto-commons-frontend": "4.13.144",
|
|
78
78
|
"@bigbinary/neeto-editor": "1.47.120",
|
|
79
|
-
"@bigbinary/neeto-filters-frontend": "4.3.
|
|
79
|
+
"@bigbinary/neeto-filters-frontend": "4.3.42",
|
|
80
80
|
"@bigbinary/neeto-icons": "1.20.89",
|
|
81
|
-
"@bigbinary/neeto-molecules": "5.
|
|
81
|
+
"@bigbinary/neeto-molecules": "5.2.6",
|
|
82
82
|
"@dnd-kit/core": "6.3.1",
|
|
83
83
|
"@dnd-kit/sortable": "10.0.0",
|
|
84
84
|
"@emotion/is-prop-valid": "1.2.0",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"@tanstack/react-query-devtools": "5.59.20",
|
|
100
100
|
"antd": "5.22.1",
|
|
101
101
|
"autoprefixer": "^10.4.5",
|
|
102
|
-
"axios": "1.
|
|
102
|
+
"axios": "1.18.0",
|
|
103
103
|
"babel-loader": "^8.2.5",
|
|
104
104
|
"babel-plugin-istanbul": "^6.1.1",
|
|
105
105
|
"babel-plugin-js-logger": "1.0.17",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"classnames": "2.5.1",
|
|
115
115
|
"crypto-browserify": "3.12.1",
|
|
116
116
|
"css-loader": "6.8.1",
|
|
117
|
-
"dompurify": "3.4.
|
|
117
|
+
"dompurify": "3.4.11",
|
|
118
118
|
"dotenv-webpack": "^8.0.1",
|
|
119
119
|
"eslint": "^9.25.1",
|
|
120
120
|
"eslint-config-prettier": "^10.1.2",
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
"mixpanel-browser": "2.47.0",
|
|
146
146
|
"os-browserify": "0.3.0",
|
|
147
147
|
"path-browserify": "^1.0.1",
|
|
148
|
-
"postcss": "8.5.
|
|
148
|
+
"postcss": "8.5.15",
|
|
149
149
|
"postcss-import": "^15.0.0",
|
|
150
150
|
"postcss-loader": "^7.0.1",
|
|
151
151
|
"postcss-preset-env": "7.8.2",
|
|
@@ -188,11 +188,11 @@
|
|
|
188
188
|
"@babel/runtime": "7.29.7",
|
|
189
189
|
"@bigbinary/neeto-atoms": "1.0.90",
|
|
190
190
|
"@bigbinary/neeto-cist": "1.0.17",
|
|
191
|
-
"@bigbinary/neeto-commons-frontend": "4.13.
|
|
191
|
+
"@bigbinary/neeto-commons-frontend": "4.13.144",
|
|
192
192
|
"@bigbinary/neeto-editor": "1.47.120",
|
|
193
|
-
"@bigbinary/neeto-filters-frontend": "4.3.
|
|
193
|
+
"@bigbinary/neeto-filters-frontend": "4.3.42",
|
|
194
194
|
"@bigbinary/neeto-icons": "1.20.89",
|
|
195
|
-
"@bigbinary/neeto-molecules": "5.
|
|
195
|
+
"@bigbinary/neeto-molecules": "5.2.6",
|
|
196
196
|
"@dnd-kit/core": "6.3.1",
|
|
197
197
|
"@dnd-kit/sortable": "10.0.0",
|
|
198
198
|
"@honeybadger-io/js": "6.10.1",
|
|
@@ -201,11 +201,11 @@
|
|
|
201
201
|
"@tanstack/react-query": "5.59.20",
|
|
202
202
|
"@tanstack/react-query-devtools": "5.59.20",
|
|
203
203
|
"antd": "5.22.1",
|
|
204
|
-
"axios": "1.
|
|
204
|
+
"axios": "1.18.0",
|
|
205
205
|
"buffer": "^6.0.3",
|
|
206
206
|
"classnames": "2.5.1",
|
|
207
207
|
"crypto-browserify": "3.12.1",
|
|
208
|
-
"dompurify": "3.4.
|
|
208
|
+
"dompurify": "3.4.11",
|
|
209
209
|
"formik": "2.4.6",
|
|
210
210
|
"https-browserify": "1.0.0",
|
|
211
211
|
"i18next": "22.5.1",
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var reactQuery = require('@tanstack/react-query');
|
|
4
|
-
require('neetocist');
|
|
5
|
-
var axios = require('axios');
|
|
6
|
-
var constants = require('./index-CpEnC-Gq.js');
|
|
7
|
-
|
|
8
|
-
const create = payload => axios.post(`${constants.BASE_URL}/api/v1/public/razorpay/payments`, {
|
|
9
|
-
payment: payload
|
|
10
|
-
});
|
|
11
|
-
const paymentsApi = {
|
|
12
|
-
create
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
const useCreateRazorpayPayment = options => reactQuery.useMutation({
|
|
16
|
-
mutationFn: paymentsApi.create,
|
|
17
|
-
...options
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
exports.useCreateRazorpayPayment = useCreateRazorpayPayment;
|
|
21
|
-
//# sourceMappingURL=usePaymentApi-B198Hd_a.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePaymentApi-B198Hd_a.js","sources":["../../app/javascript/src/apis/razorpay/payments.js","../../app/javascript/src/hooks/reactQuery/razorpay/usePaymentApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport { BASE_URL } from \"src/constants\";\n\nconst create = payload =>\n axios.post(`${BASE_URL}/api/v1/public/razorpay/payments`, {\n payment: payload,\n });\n\nconst defaultList = payload =>\n axios.get(`${BASE_URL}/api/v1/razorpay/holdable/payments`, {\n params: payload,\n });\n\nconst list = (holdableId, payload) =>\n axios.get(`${BASE_URL}/api/v1/razorpay/holdables/${holdableId}/payments`, {\n params: payload,\n });\n\nconst paymentsApi = { defaultList, list, create };\n\nexport default paymentsApi;\n","import { useQuery, useMutation } from \"@tanstack/react-query\";\nimport { isPresent } from \"neetocist\";\n\nimport paymentsApi from \"apis/razorpay/payments\";\nimport { QUERY_KEYS } from \"src/common/queryConstants\";\n\nexport const useFetchRazorpayPayments = (\n holdableId = \"\",\n payload = {},\n options = {}\n) =>\n useQuery({\n queryKey: [QUERY_KEYS.RAZORPAY_ACCOUNT_DETAILS, payload],\n queryFn: () => {\n if (isPresent(holdableId)) return paymentsApi.list(holdableId, payload);\n\n return paymentsApi.defaultList(payload);\n },\n ...options,\n });\n\nexport const useCreateRazorpayPayment = options =>\n useMutation({ mutationFn: paymentsApi.create, ...options });\n"],"names":["create","payload","axios","post","BASE_URL","payment","paymentsApi","useCreateRazorpayPayment","options","useMutation","mutationFn"],"mappings":";;;;;;;AAIA,MAAMA,MAAM,GAAGC,OAAO,IACpBC,KAAK,CAACC,IAAI,CAAC,CAAA,EAAGC,kBAAQ,CAAA,gCAAA,CAAkC,EAAE;AACxDC,EAAAA,OAAO,EAAEJ;AACX,CAAC,CAAC;AAYJ,MAAMK,WAAW,GAAG;EAAqBN;AAAO,CAAC;;MCEpCO,wBAAwB,GAAGC,OAAO,IAC7CC,sBAAW,CAAC;EAAEC,UAAU,EAAEJ,WAAW,CAACN,MAAM;EAAE,GAAGQ;AAAQ,CAAC;;;;"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { useMutation } from '@tanstack/react-query';
|
|
2
|
-
import 'neetocist';
|
|
3
|
-
import axios from 'axios';
|
|
4
|
-
import { B as BASE_URL } from './index-CajHy3NQ.js';
|
|
5
|
-
|
|
6
|
-
const create = payload => axios.post(`${BASE_URL}/api/v1/public/razorpay/payments`, {
|
|
7
|
-
payment: payload
|
|
8
|
-
});
|
|
9
|
-
const paymentsApi = {
|
|
10
|
-
create
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
const useCreateRazorpayPayment = options => useMutation({
|
|
14
|
-
mutationFn: paymentsApi.create,
|
|
15
|
-
...options
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
export { useCreateRazorpayPayment as u };
|
|
19
|
-
//# sourceMappingURL=usePaymentApi-BzB3rzNe.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePaymentApi-BzB3rzNe.js","sources":["../app/javascript/src/apis/razorpay/payments.js","../app/javascript/src/hooks/reactQuery/razorpay/usePaymentApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport { BASE_URL } from \"src/constants\";\n\nconst create = payload =>\n axios.post(`${BASE_URL}/api/v1/public/razorpay/payments`, {\n payment: payload,\n });\n\nconst defaultList = payload =>\n axios.get(`${BASE_URL}/api/v1/razorpay/holdable/payments`, {\n params: payload,\n });\n\nconst list = (holdableId, payload) =>\n axios.get(`${BASE_URL}/api/v1/razorpay/holdables/${holdableId}/payments`, {\n params: payload,\n });\n\nconst paymentsApi = { defaultList, list, create };\n\nexport default paymentsApi;\n","import { useQuery, useMutation } from \"@tanstack/react-query\";\nimport { isPresent } from \"neetocist\";\n\nimport paymentsApi from \"apis/razorpay/payments\";\nimport { QUERY_KEYS } from \"src/common/queryConstants\";\n\nexport const useFetchRazorpayPayments = (\n holdableId = \"\",\n payload = {},\n options = {}\n) =>\n useQuery({\n queryKey: [QUERY_KEYS.RAZORPAY_ACCOUNT_DETAILS, payload],\n queryFn: () => {\n if (isPresent(holdableId)) return paymentsApi.list(holdableId, payload);\n\n return paymentsApi.defaultList(payload);\n },\n ...options,\n });\n\nexport const useCreateRazorpayPayment = options =>\n useMutation({ mutationFn: paymentsApi.create, ...options });\n"],"names":["create","payload","axios","post","BASE_URL","payment","paymentsApi","useCreateRazorpayPayment","options","useMutation","mutationFn"],"mappings":";;;;;AAIA,MAAMA,MAAM,GAAGC,OAAO,IACpBC,KAAK,CAACC,IAAI,CAAC,CAAA,EAAGC,QAAQ,CAAA,gCAAA,CAAkC,EAAE;AACxDC,EAAAA,OAAO,EAAEJ;AACX,CAAC,CAAC;AAYJ,MAAMK,WAAW,GAAG;EAAqBN;AAAO,CAAC;;MCEpCO,wBAAwB,GAAGC,OAAO,IAC7CC,WAAW,CAAC;EAAEC,UAAU,EAAEJ,WAAW,CAACN,MAAM;EAAE,GAAGQ;AAAQ,CAAC;;;;"}
|