@sesamy/sesamy-components 2.28.0 → 2.29.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
@@ -304,6 +304,7 @@ A web component that displays a paywall for content, loading paywall settings fr
304
304
  - `price`: Price of the content
305
305
  - `currency`: Currency code for the price
306
306
  - `redirect-url`: URL to redirect after purchase
307
+ - `redirect-label`: Label for the button back to the redirect URL on the checkout confirmation page and in the order confirmation email
307
308
  - `utm-source`, `utm-medium`, `utm-campaign`, `utm-term`, `utm-content`: UTM parameters for tracking
308
309
  - `pass`: Pass ID for access
309
310
 
@@ -323,6 +324,21 @@ of sending a broken `redirect-url` to checkout. Single purchases have no
323
324
  per-option redirect, so they start at level 2; subscription options of type URL
324
325
  link straight out and never reach checkout at all.
325
326
 
327
+ **Redirect button label:**
328
+
329
+ The checkout confirmation page and the order confirmation email have a button
330
+ that takes the buyer back to the redirect URL. It reads "Go to {vendor}" unless
331
+ a label is set. The label resolves through the same levels as the redirect,
332
+ first non-blank value winning:
333
+
334
+ 1. `redirectLabel` on the chosen subscription option
335
+ 2. `settings.redirectLabel` on the paywall
336
+ 3. the `redirect-label` attribute on the element
337
+
338
+ It is plain text and not translated. Blank values fall through. With none set,
339
+ no label is sent and the checkout keeps its default. This needs an api2 that
340
+ accepts `redirectLabel` on `POST /checkouts`. Older api2 versions ignore it.
341
+
326
342
  **Events:**
327
343
 
328
344
  Per-element events dispatched directly on the `<sesamy-paywall>` element (bubble, composed):