Make a test checkout
test_checkoutMakes a Stripe test-mode checkout of the shop's products as they are on the branch now, and answers its address for you to hand to the person: they open it, pay with Stripe's test card 4242 4242 4242 4242 (any future date, any CVC), and come back to Xodia. Test mode only, whatever the shop's mode: no money moves, and the order shows in list_orders with mode test. lines (optional): product ids from get_shop or the Products collection, with option and quantity (default 1); or productId for one of a product. With neither, it uses one of the first product for sale; on a site with the donations feature and no products, it starts a test donation instead (no product needed). A membership (a product billed every month or year) makes a subscription test checkout and must be alone. Needs Stripe connected (the owner's step) and a currency: otherwise it answers shop_not_connected or shop_not_ready, and you tell the owner the step from get_shop. shop_test_unavailable (409) means test orders aren't available on this Xodia yet: don't call it again; tell the owner in plain words that to check the shop they turn on Take real payments in the Shop card (paid plans), place one small real order and refund it in Stripe. Never open the address yourself or pay with it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectId": "<projectId>"
},
"name": "test_checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Optional: { productId, option?, quantity? } lines; default one of the first product for sale. A membership (a product billed every month or year) goes alone | |
| productId | No | Shortcut for one of this product (its id), instead of lines | |
| projectId | Yes | Project id from list_projects |