Skip to content
This repository was archived by the owner on Oct 2, 2025. It is now read-only.

Commit 50aa9d6

Browse files
Update paywall3.md
1 parent 5948979 commit 50aa9d6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/paywall3.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,7 @@ Here is the list of the HTML classes that can be used for creating each of the s
699699
| `inplayer-paywall-ccm` | Invokes the default card management screen |
700700
| `inplayer-paywall-change-pass` | Invokes the 'Change Password' screen |
701701
| `inplayer-paywall-purchases` | Invokes the 'My Purchases' paywall screen where an end-user can see the list of payments they have completed |
702+
| `inplayer-paywall-donations` | Invokes the donations flow for the provided asset |
702703

703704
The advantage of using these classes is that they come with a built-in logic for displaying and hiding the elements, depending on whether the user is authenticated or not. For example, the HTML element with the **inplayer-paywall-logout class** will only be shown when the user is authenticated.
704705

@@ -750,6 +751,17 @@ Here are listed and defined the Paywall 3.0 standalone functions:
750751

751752
Table 4
752753

754+
### `donations`
755+
756+
This HTML class can be added to any HTML element. The `asset-id` represents the ID of a specific InPlayer asset. Usage example:
757+
758+
```
759+
<button class="inplayer-paywall-donations" data-asset-id="{asset-id}" />
760+
```
761+
762+
When clicking on this element, the donations flow for the provided asset is initiated by opening the donation options screen.
763+
The donation options screen lists all donation options added to the asset that is being accessed. Upon selecting a donation option, with the user being logged in, the payment screen with the card payment method only available for donation will be shown. Once the payment is complete, a screen with a thank you message is displayed.
764+
753765
## Custom Asset Preview
754766

755767
There's a default asset preview template that you can tweak via our dashboard but if that doesn't meet your custom needs, you can always use the `noPreview` flag (by setting it to `true`) to disable displaying of the default preview altogether and put your own preview HTML code in the asset div.

0 commit comments

Comments
 (0)