@spot-flow/checkout-inline-js 0.1.35 → 0.1.36-dev.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.
@@ -425,6 +425,26 @@ const Yt = [
425
425
  <path fill="#ce1126" d="M0 0h512v170.7H0z"/>
426
426
  <path fill="#000001" d="m256 170.7 55.5 170.6L166.3 236h179.4L200.6 341.3z"/>
427
427
  </svg>
428
+ `
429
+ },
430
+ {
431
+ name: "TZS",
432
+ dialCode: "+255",
433
+ length: "9",
434
+ cardTypes: [],
435
+ icon: `<svg width="33" height="34" viewBox="0 0 33 34" fill="none" xmlns="http://www.w3.org/2000/svg">
436
+ <g clip-path="url(#clip0_3333_2907)">
437
+ <path d="M16.6191 33.2932C25.6655 33.2932 32.999 25.9596 32.999 16.9133C32.999 7.86692 25.6655 0.533394 16.6191 0.533394C7.57278 0.533394 0.239258 7.86692 0.239258 16.9133C0.239258 25.9596 7.57278 33.2932 16.6191 33.2932Z" fill="#FFDA44"/>
438
+ <path d="M5.03752 28.4957C5.72465 29.1828 6.45778 29.7956 7.2268 30.3351L30.0415 7.5203C29.5022 6.75128 28.8893 6.01815 28.2022 5.33103C27.515 4.64391 26.782 4.0312 26.0129 3.49168L3.19824 26.3065C3.73763 27.0753 4.35046 27.8085 5.03752 28.4957Z" fill="black"/>
439
+ <path d="M5.03712 5.33098C-0.130354 10.4986 -1.12242 18.2592 2.05905 24.4237L24.1298 2.35297C17.9654 -0.828501 10.2047 0.163634 5.03712 5.33098Z" fill="#6DA544"/>
440
+ <path d="M28.202 28.4956C33.3695 23.3282 34.3615 15.5674 31.1801 9.40296L9.10938 31.4737C15.2737 34.6552 23.0345 33.6631 28.202 28.4956Z" fill="#338AF3"/>
441
+ </g>
442
+ <defs>
443
+ <clipPath id="clip0_3333_2907">
444
+ <rect width="32.7598" height="32.7598" fill="white" transform="translate(0.240234 0.533325)"/>
445
+ </clipPath>
446
+ </defs>
447
+ </svg>
428
448
  `
429
449
  },
430
450
  {
@@ -34542,7 +34562,7 @@ class su {
34542
34562
  const ou = `<div class="flex items-center justify-center md:justify-between w-full text-xxs mt-5">
34543
34563
  <div class="text-tone-60"><span>Powered by</span> <span class="font-bold">Spotflow</span></div>
34544
34564
  <div class="align-center text-tone-60 hidden md:flex gap-4">
34545
- <!-- <span id="test-cards-link" class="hover:font-bold">Test Cards</span> -->
34565
+ <span id="test-cards-link" class="hover:font-bold">Test Cards</span>
34546
34566
  <a href="https://ribbon-scowl-35f.notion.site/Terms-Conditions-940742f0a1b144498ffc1786c5bc6a08?pvs=4" target="_blank" class="hover:font-bold">Terms</a>
34547
34567
  <a href="https://ribbon-scowl-35f.notion.site/Privacy-Policy-Spotflow-3997ee8d923d4cd39a3dc43b7249b713" target="_blank" class="hover:font-bold">Privacy</a>
34548
34568
  <a href="mailto:hello@spotflow.one" class="hover:font-bold">Contact</a>
@@ -35138,12 +35158,6 @@ const uu = `<form id="mobile-money-form">
35138
35158
  </p>
35139
35159
  </div>
35140
35160
 
35141
- <div class="w-9/12 mx-auto mt-5">
35142
- <div class="bg-[#FEF7ED] text-[#816039] text-sm text-center rounded-lg p-2">
35143
- This payment may incur a 1% E-Levy, as mandated by the
35144
- Ghana Revenue Authority (GRA).
35145
- </div>
35146
- </div>
35147
35161
  </form>`;
35148
35162
  class cu {
35149
35163
  constructor(e) {
@@ -36566,9 +36580,9 @@ class Au {
36566
36580
  async getPlanDetails() {
36567
36581
  const e = this.currency === "USD" ? this.localCurrency : this.currency;
36568
36582
  this.merchantConfigService.getMerchantConfig(this.planId, e).then(async (i) => {
36569
- var o;
36583
+ var a, l;
36570
36584
  if (i.taxEnabled) {
36571
- const a = await wr(
36585
+ const d = await wr(
36572
36586
  this.merchantKey,
36573
36587
  this.localCurrency !== this.currency ? this.amount * i.rate.rate : this.amount,
36574
36588
  // Convert to local currency if available
@@ -36578,8 +36592,8 @@ class Au {
36578
36592
  );
36579
36593
  this.merchantPlanDetail = {
36580
36594
  ...i,
36581
- totalAmount: a.totalAmount,
36582
- taxQuoteId: a.id
36595
+ totalAmount: d.totalAmount,
36596
+ taxQuoteId: d.id
36583
36597
  };
36584
36598
  } else
36585
36599
  this.merchantPlanDetail = i;
@@ -36591,13 +36605,13 @@ class Au {
36591
36605
  merchant: this.merchantPlanDetail.merchantName
36592
36606
  }), P.track("checkout_opens");
36593
36607
  const { validChannels: t, disabledChannels: s } = this.getAvailableChannels();
36594
- if (t.length === 0 || t[0] === "ussd" && t.length === 1) {
36595
- const a = new Cu(this.mainLayout);
36596
- this.mainError = a;
36597
- let l = 0;
36598
- throw (o = this.merchantPlanDetail) != null && o.limits && this.merchantPlanDetail.limits.length > 0 && (l = Math.max(
36599
- ...this.merchantPlanDetail.limits.map((d) => d.amount)
36600
- )), a.setLimitInfo(e, l), this.mainError.renderContent(this.callBackUrl), this.showErrorIcon(), new Error("Transaction limit reached");
36608
+ if (((a = this.merchantPlanDetail) == null ? void 0 : a.limits) && this.merchantPlanDetail.limits.length > 0 && (t.length === 0 || t[0] === "ussd" && t.length === 1)) {
36609
+ const d = new Cu(this.mainLayout);
36610
+ this.mainError = d;
36611
+ let b = 0;
36612
+ throw (l = this.merchantPlanDetail) != null && l.limits && this.merchantPlanDetail.limits.length > 0 && (b = Math.max(
36613
+ ...this.merchantPlanDetail.limits.map((v) => v.amount)
36614
+ )), d.setLimitInfo(e, b), this.mainError.renderContent(this.callBackUrl), this.showErrorIcon(), new Error("Transaction limit reached");
36601
36615
  }
36602
36616
  i.rate ? this.mainScreen.mountScreen(
36603
36617
  this.merchantPlanDetail,