@sesamy/sesamy-components 2.24.3 → 2.25.0

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/README.md CHANGED
@@ -301,6 +301,22 @@ A web component that displays a paywall for content, loading paywall settings fr
301
301
  - `utm-source`, `utm-medium`, `utm-campaign`, `utm-term`, `utm-content`: UTM parameters for tracking
302
302
  - `pass`: Pass ID for access
303
303
 
304
+ **Post-purchase redirect:**
305
+
306
+ Where the visitor lands after buying is resolved when they go to checkout, first
307
+ usable value winning:
308
+
309
+ 1. `redirectUrl` on the chosen subscription option (from the paywall settings)
310
+ 2. `settings.redirectUrl` on the paywall (the paywall-wide default)
311
+ 3. the `redirect-url` attribute on the element
312
+ 4. the page the visitor is on
313
+
314
+ Only an absolute URL counts as usable. Empty, whitespace-only and unparseable
315
+ values fall through to the next level (the last with a `console.warn`) instead
316
+ of sending a broken `redirect-url` to checkout. Single purchases have no
317
+ per-option redirect, so they start at level 2; subscription options of type URL
318
+ link straight out and never reach checkout at all.
319
+
304
320
  **Events:**
305
321
 
306
322
  Per-element events dispatched directly on the `<sesamy-paywall>` element (bubble, composed):