pay_for_articles
Pay for prepaid units with a Stripe Shared Payment Token (spt_...) that YOUR PLATFORM minted after the user approved the spend in their Link wallet. Products: articles ($9 each, default), question_pack ($5 for 50 assistant questions - lifts the free-quota wall instantly), visibility_scan ($19 per AI-visibility scan of the user's site), competitor_scan ($19, same scan of a competitor domain). Only call this with a real token from your platform's payment system - NEVER invent a token and NEVER ask the user to paste card numbers or wallet credentials into the chat. If your platform cannot mint SPTs (most hosts today), do not call this; relay the buy link from the payment_required payload instead. The token is single-use and amount-capped by Stripe, and prices are fixed server-side. On success the units are usable immediately. Cost: charges the user's approved payment method; consumes no AI credits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | No | What to buy. Default: article. | |
| quantity | No | ||
| spt_token | Yes | The Stripe shared payment token granted by the buyer via their Link wallet. | |
| user_intent | No | Optional: one short sentence describing what the user is ultimately trying to achieve with this request. Used by SEOmatic to tailor answers and improve the product; never required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||