Skip to content

Commit 70ef87f

Browse files
authored
Update checkout-embed.md
1 parent 022ab27 commit 70ef87f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/checkout-embed.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
### Checkout Embed
1+
# Checkout Embed
22

33
1. Go to "Embeddables -> Checkout"
44
1. Select the template and plan you would like to embed
55
1. Copy the HTML given
66
1. Paste on your existing site where you would like customers to sign up for your subscription
7-
##### Checkout options
7+
## Checkout options
88
In the config for a request embed, these are the options which can customize the embed
99

1010
| Attribute | Type | Description |
@@ -22,7 +22,7 @@ In the config for a request embed, these are the options which can customize the
2222
| [token] | string | JSON Web Token for the user you want to make the request with, set this if you want to request subscriptions with existing users |
2323

2424

25-
##### Example Request Config
25+
## Example Request Config
2626
```javascript
2727
Servicebot.Checkout({
2828
templateId : 1,
@@ -41,6 +41,7 @@ In the config for a request embed, these are the options which can customize the
4141
})
4242
```
4343

44-
##### Tips
44+
## Tips
4545
- You can add additional javascript logic in the `handleResponse` function
4646
- If you are using synchronous webhooks, any responses from your endpoints will show up in the `handleResponse` payload
47+
- If you pass a token to the checkout, the form will make a request as the user whom the token was generated for

0 commit comments

Comments
 (0)