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
<td>Web-based app that displays content to users</td>
30
32
</tr>
31
33
<tr>
@@ -62,6 +64,8 @@ Since this implementation uses both JWP and <a href="https://jwplayer.com/press-
62
64
</tbody>
63
65
</table>
64
66
67
+
<br />
68
+
65
69
## Configure WebSocket notifications
66
70
67
71
WebSocket notifications enable communication between your app and JWP. Whether you implement web payments with the JavaScript SDK or REST API, you must set up JavaScript to set up and configure WebSockets notifications.
@@ -130,7 +134,7 @@ Follow these steps to listen for a subscription notification and display a messa
130
134
3. Configure the appearance of the popup in the `.popup`CSS settings.
131
135
4. Define how long the popup displays by adjusting the `setTimeout` values.
132
136
133
-
You can now set up web payments through the JavaScript API or RESTAPI.
137
+
You can now set up web payments through the [JavaScript API](#javascript-sdk) or [RESTAPI](#rest-api).
134
138
135
139
## Set up web payments
136
140
@@ -143,6 +147,8 @@ JWP enables you to set up web payments using either a JavaScript SDK or REST API
143
147
This web payment solution only supports single packages.
144
148
:::
145
149
150
+
<br />
151
+
146
152
### JavaScript SDK
147
153
148
154
#### New User
@@ -213,6 +219,8 @@ Follow these steps to enable web payments with Stripe for a new user:
After you have validated the user's access, you can fetch the content by media ID and begin playback.
217
225
218
226
If you use an app config to manage your content, you can obtain the media ID from the `contentId` parameter of the app config URL.
@@ -221,6 +229,8 @@ If you use an app config to manage your content, you can obtain the media ID fro
221
229
You can add <a href="https://docs.jwplayer.com/platform/docs/enable-protection-apps#url-signing-for-apps" target="_blank">URL signing</a> or <a href="https://docs.jwplayer.com/platform/docs/enable-protection-apps#drm" target="_blank">digital rights management (DRM)</a>for extra layers of content protection.
222
230
:::
223
231
232
+
<br /><br />
233
+
224
234
#### Existing User
225
235
226
236
Follow these steps to enable web payments with Stripe for an existing user:
@@ -283,6 +293,8 @@ Follow these steps to enable web payments with Stripe for an existing user:
After you have validated the user's access, you can fetch the content by media ID and begin playback.
288
300
@@ -292,6 +304,8 @@ If you use an app config to manage your content, you can obtain the media ID fro
292
304
You can add <a href="https://docs.jwplayer.com/platform/docs/enable-protection-apps#url-signing-for-apps" target="_blank">URL signing</a> or <a href="https://docs.jwplayer.com/platform/docs/enable-protection-apps#drm" target="_blank">digital rights management (DRM)</a>for extra layers of content protection.
293
305
:::
294
306
307
+
<br />
308
+
295
309
### RESTAPI
296
310
297
311
#### New User
@@ -353,6 +367,8 @@ Follow these steps to enable web payments with Stripe for a new user:
353
367
-H "Authorization:Bearer <token>"
354
368
```
355
369
370
+
<br />
371
+
356
372
After you have validated the user's access, you can fetch the content by media ID and begin playback.
357
373
358
374
If you use an app config to manage your content, you can obtain the media ID from the `contentId` parameter of the app config URL.
@@ -361,6 +377,8 @@ If you use an app config to manage your content, you can obtain the media ID fro
361
377
You can add <a href="https://docs.jwplayer.com/platform/docs/enable-protection-apps#url-signing-for-apps" target="_blank">URL signing</a> or <a href="https://docs.jwplayer.com/platform/docs/enable-protection-apps#drm" target="_blank">digital rights management (DRM)</a>for extra layers of content protection.
362
378
:::
363
379
380
+
<br /><br />
381
+
364
382
#### Existing User
365
383
366
384
Follow these steps to enable web payments with Stripe for an existing user:
@@ -415,6 +433,8 @@ Follow these steps to enable web payments with Stripe for an existing user:
415
433
-H "Authorization:Bearer <token>"
416
434
```
417
435
436
+
<br />
437
+
418
438
After you have validated the user's access, you can fetch the content by media ID and begin playback.
419
439
420
440
If you use an app config to manage your content, you can obtain the media ID from the `contentId` parameter of the app config URL.
0 commit comments