Skip to content

Commit 45cd2a9

Browse files
authored
Add missing usage in the example (#866)
1 parent c37b1b5 commit 45cd2a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pages/docs/manual/latest/bind-to-js-function.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ type sessionResult
124124
@scope(("checkout", "sessions"))
125125
external createCheckoutSession: (stripe, createSession) =>
126126
Promise.t<sessionResult> = "create"
127+
128+
let stripe = make("sk_...")
129+
let session = stripe->createCheckoutSession({})
127130
```
128131
```js
129132
import Stripe from "stripe";

0 commit comments

Comments
 (0)