You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 2, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: docs/paywall3.md
+6-11Lines changed: 6 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -169,7 +169,7 @@ var paywall = new InplayerPaywall('c6f4002f-7415-4eb6-ab03-72b0f7aff0e8',
169
169
170
170
### Additional Asset Options
171
171
172
-
Apart from the main asset options, there are additional **CSS/JS scripts** available to be imported to the player being loaded after purchase, along withquery parameters meant for **player customisation.** More precisely, these scripts are given to the player being loaded after a purchase is completed. For this reason, they should be distinguished from the general scripts included in the asset embed process.
172
+
Apart from the main asset options, there are additional **CSS/JS scripts** available to be imported to the player being loaded after purchase, along with query parameters meant for **player customisation.** More precisely, these scripts are given to the player being loaded after a purchase is completed. For this reason, they should be distinguished from the general scripts included in the asset embed process.
173
173
174
174
Take a look at the examples provided to learn how you can incorporate them in your embed code.
175
175
@@ -205,7 +205,7 @@ var paywall = new InplayerPaywall('c6f4002f-7415-4eb6-ab03-72b0f7aff0e8',
205
205
</script>
206
206
```
207
207
208
-
You can add **custom player** parameters for the OVP (usually a video player) used by the asset such as a language setup or adding any value you would like to include for the `myParam`parameter.
208
+
You can add **custom player** parameters for the OVP (usually a video player) used by the asset such as a language setup or adding any value you would like to include for the `myParam`parameter.
@@ -349,14 +349,9 @@ To gain a better understanding of all paywall options mentioned above (both per
349
349
|`playerParams`| An object containing custom player parameters for the video player used by the asset. | JSON Object | Asset option |
350
350
|`myParam`| A placeholder for any value you want to include. | Number | Asset option |
351
351
|`disableVoucher`| If it is set as `true`, the voucher section will not be displayed. | Boolean (set `false` by default) | Asset option |
352
-
|`codeAccess`| An object consisting of the access code, custom inputs, and code patterns. | JSON Object | Asset option |
353
-
|`inputs`| An object containing the access code and custom inputs. | JSON Object | Asset option |
354
-
|`access_code`| A custom placeholder for the access code input; optional. | Char | Asset option |
355
-
|`customInput1/2`| The placeholder of the custom input/code. | Char | Asset option |
356
-
|`codePattern`| The custom inputs and the access code together make the codePattern. The default value is `{ inputs: { access_code: 'Code' }, codePattern: '{{access_code}}' }`; optional. | Char | Asset option |
357
352
|`language`| Sets the fallback language; English or `en` is the default one. | Language code | Global option |
358
-
|`hideUserMenu`| If it is set as`true`, it hides the user menu dropdown of the registered account. | Boolean(set `false` by default) | Global option |
359
-
|`hideLogo`| If it is set as`true`, it hides the paywall logo (in the modal header). | Boolean(set `false` by default) | Global option |
353
+
|`hideUserMenu`| If it is set as`true`, it hides the user menu dropdown of the registered account. | Boolean(set `false` by default) | Global option |
354
+
|`hideLogo`| If it is set as`true`, it hides the paywall logo (in the modal header). | Boolean(set `false` by default) | Global option |
360
355
|`footerLinks`| Inserts an array of external links in the paywall footer to replace the default ones; optional. | JSON, e.g. { text: "Google", url: "[https://www.google.com/](https://www.google.com/)" } | Global option |
361
356
|`hideFooterLinks`| If it is set as `true`, the footer links will not be displayed. | Boolean(set `false` by default) | Global option |
362
357
|`hideProtectedBy`| If it is set as `true`, the 'Protected by InPlayer' label will not be displayed. | Boolean(set `false` by default) | Global option |
@@ -491,8 +486,8 @@ The Paywall 3.0 increases flexibility by introducing methods that help you easil
491
486
|**Method and Option**|**Description**|
492
487
| --- | --- |
493
488
|`addAssets([...assetArray]): void`| A method that adds an array of assets to a previously created paywall instance. |
494
-
|`removeAssets([...assetArray], keepAssetData?: boolean = false): void`| Removes specified assets from the paywall instance. Note 1: The assets must be specified exactly as they were added - if containerId was specified on adding, it would also have to be specified on removal.Note 2: The method receives an optional boolean argument which is `false` by default. If `true` is sent, it tells the paywall instance to keep all the data of the assets, so they can be reused at some point in the future. To learn more of the asset data preservation refer to the `keepAssetData?: boolean = false` method. |
495
-
|`removeAllAssets(keepAssetData?: boolean = false): void`| Removes all assets from a given paywall instance. Note 1: After the assets removal, the paywall instance remains 'alive' and other assets can be added to it at any later time.Note 2: The method receives an optional boolean argument which is `false` by default. If `true` is sent, it tells the paywall instance to keep all the data of the assets, so they can be reused at some point in the future. To learn more of the asset data preservation refer to the `keepAssetData?: boolean = false` method. |
489
+
|`removeAssets([...assetArray], keepAssetData?: boolean = false): void`| Removes specified assets from the paywall instance. Note 1: The assets must be specified exactly as they were added - if containerId was specified on adding, it would also have to be specified on removal.Note 2: The method receives an optional boolean argument which is `false` by default. If `true` is sent, it tells the paywall instance to keep all the data of the assets, so they can be reused at some point in the future. To learn more of the asset data preservation refer to the `keepAssetData?: boolean = false` method. |
490
+
|`removeAllAssets(keepAssetData?: boolean = false): void`| Removes all assets from a given paywall instance. Note 1: After the assets removal, the paywall instance remains 'alive' and other assets can be added to it at any later time.Note 2: The method receives an optional boolean argument which is `false` by default. If `true` is sent, it tells the paywall instance to keep all the data of the assets, so they can be reused at some point in the future. To learn more of the asset data preservation refer to the `keepAssetData?: boolean = false` method. |
496
491
|`keepAssetData?: boolean = false`| If it is set as `true`, this argument tells the paywall instance to preserve all the data of the asset(s) so it can be reused. In other words, you get to unmount all asset data so that the same assets can be re-added (by using the `.addAssets()` method) at some point in time. The process of asset remounting would progress faster as it skips making some of the backend API calls once again. |
497
492
|`destroy(): void`| Destroys the paywall instance and it can no longer be used in any way. |
498
493
|`isDestroyed():`| A boolean indicating whether the instance has been destroyed. |
0 commit comments