mainstack-payments 0.1.1 → 0.1.2

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.
@@ -26222,7 +26222,7 @@ const WL = "Payment Completed", HL = ({
26222
26222
  );
26223
26223
  }, [f]);
26224
26224
  const il = async () => {
26225
- if (l && (await l()).terminate)
26225
+ if (l && (await l(_.values)).terminate)
26226
26226
  return;
26227
26227
  const ae = await _.validateForm();
26228
26228
  if (Object.keys(ae).length <= 0) {
@@ -26347,7 +26347,7 @@ const WL = "Payment Completed", HL = ({
26347
26347
  amount: lt,
26348
26348
  formik: _,
26349
26349
  checkForErrors: async () => {
26350
- l && await l();
26350
+ l && await l(_.values);
26351
26351
  const ae = await _.validateForm();
26352
26352
  return Object.keys(ae).length > 0;
26353
26353
  },
@@ -26455,7 +26455,7 @@ const WL = "Payment Completed", HL = ({
26455
26455
  isLoading: _ == null ? void 0 : _.isSubmitting,
26456
26456
  onClick: async (ae) => {
26457
26457
  if (ae.preventDefault(), l) {
26458
- const Ne = await l();
26458
+ const Ne = await l(_.values);
26459
26459
  if (Ne != null && Ne.terminate)
26460
26460
  return;
26461
26461
  _.submitForm();
@@ -17,7 +17,7 @@ interface IMainstackPaymentProps {
17
17
  email?: string;
18
18
  };
19
19
  onGoBack?: () => void;
20
- onInitializePayment?: () => Promise<{
20
+ onInitializePayment?: (e: object) => Promise<{
21
21
  terminate?: boolean;
22
22
  }>;
23
23
  onPaymentComplete: (payload: object) => void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mainstack-payments",
3
3
  "type": "module",
4
- "version": "0.1.1",
4
+ "version": "0.1.2",
5
5
  "main": "build/mainstack-payments.js",
6
6
  "types": "build/src/index.d.ts",
7
7
  "files": [