@paynext/sdk 0.0.135 → 0.0.136

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/index.es.js CHANGED
@@ -4235,13 +4235,13 @@ class wE {
4235
4235
  return !1;
4236
4236
  const s = e ? k(m({}, e), {
4237
4237
  onError: (o) => {
4238
- var c, l, d;
4238
+ var l, d;
4239
4239
  if (!this.isInitialized) {
4240
4240
  console.error("Apple Pay error:", o);
4241
4241
  return;
4242
4242
  }
4243
4243
  const a = this.config.state.translate.messages();
4244
- (c = o == null ? void 0 : o.toLowerCase()) != null && c.includes("cancelled") ? (l = e.onCancel) == null || l.call(e) : (Ks(o, a), (d = e.onError) == null || d.call(e, { e: o, paymentMethod: H.APPLE_PAY }));
4244
+ (typeof o == "string" ? o : (o == null ? void 0 : o.message) || "").toLowerCase().includes("cancelled") ? (l = e.onCancel) == null || l.call(e) : (Ks(o, a), (d = e.onError) == null || d.call(e, { e: o, paymentMethod: H.APPLE_PAY }));
4245
4245
  },
4246
4246
  onSuccess: (o) => {
4247
4247
  var a;