Add Pay.sh pages for Accept Payments and Subscriptions#1525
Conversation
|
@datasalaryman is attempting to deploy a commit to the Solana Foundation Team on Vercel. A member of the Team first needs to authorize it. |
Greptile SummaryThis PR adds two new documentation pages (
Confidence Score: 5/5Documentation-only change adding new MDX pages and sidebar entries; no runtime code is touched and no breaking changes are introduced. All changes are Markdown/MDX content files and JSON sidebar config. The new pages document Pay.sh CLI usage with copy-pasteable shell and YAML snippets, none of which affect the docs site's own runtime behavior. The two new pay-sh.mdx files warrant a quick editorial pass for the setup-and-topup command mismatch and the hardcoded example secret in the subscriptions YAML. Important Files Changed
Sequence Diagram%%{init: {'theme': 'neutral'}}%%
sequenceDiagram
participant Client as Client (pay CLI)
participant Server as Pay Server
participant Chain as Solana Chain
Client->>Server: HTTP GET /api/v1/...
Server-->>Client: 402 Payment Required (terms)
Client->>Client: Wallet approves signing
Client->>Server: Retry with signed payment
Server->>Chain: Submit / verify transaction
Chain-->>Server: Settlement confirmed
Server-->>Client: 200 OK (response data)
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
sequenceDiagram
participant Client as Client (pay CLI)
participant Server as Pay Server
participant Chain as Solana Chain
Client->>Server: HTTP GET /api/v1/...
Server-->>Client: 402 Payment Required (terms)
Client->>Client: Wallet approves signing
Client->>Server: Retry with signed payment
Server->>Chain: Submit / verify transaction
Chain-->>Server: Settlement confirmed
Server-->>Client: 200 OK (response data)
Reviews (6): Last reviewed commit: "fix: show json response instead" | Re-trigger Greptile |
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
lgalabru
left a comment
There was a problem hiding this comment.
Looking good thanks @datasalaryman!
|
gm gm, I can't merge 😅 |
No description provided.