Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update enable-web-payments-with-stripe.md #184

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/guides/enable-web-payments-with-stripe.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,9 @@ You can add <a href="https://docs.jwplayer.com/platform/docs/enable-protection-a

Follow these steps to enable web payments with Stripe for an existing user:

1. Create a new user account by calling <a href="https://inplayer-js.netlify.app/classes/account___authentication.account#signInV2" target="_blank">`InPlayer.Account.signIn()`</a>.
1. Log in an existing user account by calling <a href="https://inplayer-js.netlify.app/classes/account___authentication.account#signInV2" target="_blank">`InPlayer.Account.signIn()`</a>.

When the request **succeeds**, JWP creates a new user object and returns a unique user authentication token. When the request **fails**, JWP returns a failure response.
When the request **succeeds**, JWP returns a promise conntaining a unique user authentication token. When the request **fails**, JWP returns a failure response.
```javascript
InPlayer.Account.signInV2({
email: '[email protected]',
Expand Down Expand Up @@ -383,9 +383,9 @@ You can add <a href="https://docs.jwplayer.com/platform/docs/enable-protection-a

Follow these steps to enable web payments with Stripe for an existing user:

1. Create a new user account by calling <a href="https://docs.inplayer.com/api/accounts/#tag/V2/operation/v2createAccount" target="_blank">`POST /v2/accounts/authenticate`</a>.
1. Log in an existing user account by calling <a href="https://docs.inplayer.com/api/accounts/#tag/V2/operation/v2authenticate" target="_blank">`POST /v2/accounts/authenticate`</a>.

When the request **succeeds**, JWP creates a new user object and returns a unique user authentication token that is valid for **30 days**. When the request **fails**, JWP returns a failure response.
When the request **succeeds**, JWP returns a unique user authentication token that is valid for **30 days**. When the request **fails**, JWP returns a failure response.

```cURL
curl -L -X POST 'https://services.inplayer.com/v2/accounts/authenticate' \
Expand Down