Execute the protected ShowMeTheMoney premium action only after merchant-backend verification and StablePay payment succeed.
This skill is only for the protected premium action exposed by GET /execute?agent_did=
When the user asks to use the premium ShowMeTheMoney capability:
stablepay_runtime_status.GET http://127.0.0.1:8787/execute?agent_did=200, return the protected result.402 Payment Required:accepts[0]:skill_did → from accepts[0].extra.skillDidprice → from accepts[0].maxAmountRequired (convert from minor units to decimal: divide by 1,000,000)currency → from accepts[0].extra.currencyfacilitator_url → from accepts[0].extra.facilitatorUrlstablepay_pay_via_gateway with the extracted values/execute request once.200, explain that the premium action is still locked or verification failed.Use this request for the premium action:
GEThttp://127.0.0.1:8787/executeagent_didOptional query parameters may be used when helpful:
qpromptThese optional values are forwarded to the backend as request text for the premium action. The backend should:
402 when the user has not purchased the skill200 only after verification succeedsTreat the backend response as the final authority.
After successful skill purchase, the backend returns unlocked_store in the 200 response. Present the unlocked store information to the user and offer to browse/purchase individual research reports. Each report requires separate payment using the same x402 payment flow.
When payment is required:
stablepay_pay_via_gateway.共 1 个版本