@xapps-platform/marketplace-ui 0.1.18 → 0.1.20

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.js CHANGED
@@ -7674,6 +7674,17 @@ function readNumber2(value) {
7674
7674
  }
7675
7675
  function buildMonetizationCheckoutReturnUrl(input) {
7676
7676
  const url = new URL(input.currentHref, window.location.href);
7677
+ const keysToDelete = [];
7678
+ for (const key of url.searchParams.keys()) {
7679
+ if (key.startsWith("xapps_payment_")) keysToDelete.push(key);
7680
+ }
7681
+ keysToDelete.push(
7682
+ "xapps_resume",
7683
+ "xapps_theme",
7684
+ "xapps_monetization_intent_id",
7685
+ "paywallPackage"
7686
+ );
7687
+ for (const key of keysToDelete) url.searchParams.delete(key);
7677
7688
  url.searchParams.set("focus", "plans");
7678
7689
  url.searchParams.set("xapps_monetization_intent_id", input.intentId);
7679
7690
  if (input.packageSlug) {
@@ -8574,7 +8585,6 @@ function XappDetailPageContent(props) {
8574
8585
  }),
8575
8586
  returnUrl,
8576
8587
  cancelUrl: returnUrl,
8577
- xappsResume: returnUrl,
8578
8588
  locale
8579
8589
  });
8580
8590
  const paymentPageUrl = normalizeHostedCheckoutUrl({