@paynext/sdk 0.0.125 → 0.0.126

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
@@ -308,7 +308,14 @@ let Nr = class {
308
308
  render(e) {
309
309
  return k(this, null, function* () {
310
310
  var t;
311
- !this.apple || !this.isAvailable || (e.innerHTML = "", yield this.apple.mount(e), (t = this.onReady) == null || t.call(this));
311
+ if (!(!this.apple || !this.isAvailable)) {
312
+ e.innerHTML = "";
313
+ try {
314
+ yield this.apple.mount(e), (t = this.onReady) == null || t.call(this);
315
+ } catch (i) {
316
+ throw console.error(i), new Error(i instanceof Error ? i.message : "Failed to render Apple Pay button");
317
+ }
318
+ }
312
319
  });
313
320
  }
314
321
  }, Sr = class {