subos-frontend 1.0.5 → 1.0.6

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
@@ -156,8 +156,8 @@ var plansApi = {
156
156
  const payload = {
157
157
  planCode,
158
158
  currency,
159
- returnUrl: `${window.location.origin}/payment-success`,
160
- cancelUrl: `${window.location.origin}/payment-cancel`
159
+ returnUrl: (options == null ? void 0 : options.returnUrl) ?? `${window.location.origin}/payment-success`,
160
+ cancelUrl: (options == null ? void 0 : options.cancelUrl) ?? `${window.location.origin}/payment-cancel`
161
161
  };
162
162
  if (externalId) payload.externalId = externalId;
163
163
  if (options == null ? void 0 : options.couponCode) payload.couponCode = options.couponCode;