Skip to content

Commit 743a825

Browse files
authored
Add Base Pay SDK Playground links to documentation (#197)
1 parent 4a3e9cc commit 743a825

4 files changed

Lines changed: 12 additions & 0 deletions

File tree

docs/base-account/guides/accept-payments.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ If you intend on using the BasePayButton, please follow the [Brand Guidelines](/
2424

2525
## Client-side (Browser SDK)
2626

27+
<Note>
28+
**Interactive Playground:** Try out the `pay()` and `getPaymentStatus()` functions in our [Base Pay SDK Playground](https://base.github.io/account-sdk/pay-playground) before integrating them into your app.
29+
</Note>
30+
2731
```ts Browser (SDK)
2832

2933
import { pay, getPaymentStatus } from '@base-org/account';

docs/base-account/quickstart/web.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ This quick-start shows the **minimum** code required to add Sign in with Base an
77

88
## 1. Install the SDK (Optional)
99

10+
<Note>
11+
**Interactive Playground:** Want to test the SDK functions before integrating? Try our [Base Pay SDK Playground](https://base.github.io/account-sdk/pay-playground) to experiment with `pay()` and `getPaymentStatus()` functions.
12+
</Note>
13+
1014
You can use the Base Account SDK in two ways:
1115

1216
### Option A: CDN (No installation required)

docs/base-account/reference/base-pay/getPaymentStatus.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Defined in the [Base Account SDK](https://github.com/base/account-sdk)
77

88
<Info>
99
The `getPaymentStatus` function allows you to check the status of a payment transaction after it has been submitted. Use this to track whether a payment has been completed, is still pending, or has failed.
10+
11+
**Try it out:** Test the `getPaymentStatus` function interactively in our [Base Pay SDK Playground](https://base.github.io/account-sdk/pay-playground).
1012
</Info>
1113

1214
## Parameters

docs/base-account/reference/base-pay/pay.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Defined in the [Base Account SDK](https://github.com/base/account-sdk)
77

88
<Info>
99
The `pay` function is the core method of Base Pay that lets your users send USDC (digital dollars) on the Base network. No crypto knowledge required - we handle all the complexity. **No fees for merchants or users.**
10+
11+
**Try it out:** Test the `pay` function interactively in our [Base Pay SDK Playground](https://base.github.io/account-sdk/pay-playground).
1012
</Info>
1113

1214
## Parameters

0 commit comments

Comments
 (0)