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
You can use either `x402-fetch` or `x402-axios` to automatically handle 402 Payment Required responses and complete payment flows.
51
64
52
65
!!! info x402-fetch
53
-
**x402-fetch** extends the native `fetch` API to handle 402 responses and payment headers for you. [Full example from Coinbase here](https://github.com/coinbase/x402/tree/main/examples/typescript/clients/fetch)
66
+
**x402-fetch** extends the native `fetch` API to handle 402 responses and payment headers for you. [Full example here](https://github.com/AkshatGada/x402_Polygon/blob/feature/facilitator-amoy/demo/quickstart-local/buyer_x402.js)
Copy file name to clipboardExpand all lines: docs/pos/payments/x402/quickstart-sellers.md
+37-19Lines changed: 37 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,12 @@ Before you begin, ensure you have:
12
12
*[Node.js](https://nodejs.org/en) and npm (or Python and pip) installed
13
13
* An existing API or server
14
14
15
-
**Note**\
16
-
There are pre-configured examples available in the Coinbase repo for both
17
-
[Node.js](https://github.com/coinbase/x402/tree/main/examples/typescript/servers). We also have an [advanced example](https://github.com/coinbase/x402/tree/main/examples/typescript/servers/advanced)
18
-
that shows how to use the x402 SDKs to build a more complex payment flow.
15
+
**Note**
16
+
17
+
There are pre-configured examples available in the Coinbase repo for
0 commit comments