mainstack-payments 0.2.9 → 0.3.1

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.
@@ -25973,13 +25973,15 @@ const rz = "Payment Completed", az = ({
25973
25973
  metadata: {
25974
25974
  ...t,
25975
25975
  reference: y
25976
- }
25976
+ },
25977
+ reference: y
25977
25978
  });
25978
25979
  } catch (C) {
25979
25980
  v.complete("fail"), Et(
25980
25981
  (C == null ? void 0 : C.message) ?? "We couldn't initialize your payment",
25981
25982
  Ct.error
25982
25983
  );
25984
+ return;
25983
25985
  }
25984
25986
  const { client_secret: w } = await i.post("/stripe/intent", {
25985
25987
  amount: n,
@@ -26112,7 +26114,9 @@ const rz = "Payment Completed", az = ({
26112
26114
  pe(() => {
26113
26115
  Fe(f);
26114
26116
  }, [f]);
26115
- const { isOpen: jt, onToggle: sn } = im(), Lt = (re) => !y || y.length <= 0 ? !0 : y == null ? void 0 : y.includes(re), gt = Ou().shape({
26117
+ const { isOpen: jt, onToggle: sn } = im({
26118
+ defaultIsOpen: !0
26119
+ }), Lt = (re) => !y || y.length <= 0 ? !0 : y == null ? void 0 : y.includes(re), gt = Ou().shape({
26116
26120
  email: Kt().matches(
26117
26121
  /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
26118
26122
  "Please enter a valid email"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mainstack-payments",
3
3
  "type": "module",
4
- "version": "0.2.9",
4
+ "version": "0.3.1",
5
5
  "main": "build/mainstack-payments.js",
6
6
  "types": "build/src/index.d.ts",
7
7
  "files": [