Buy Apple Wallet pass credits by card
buy_pass_creditsStart a card payment for prepaid pass credits, for users without an x402 crypto wallet.
Packs: "100" (100 passes for $1), "500" (500 for $5), "2000" (2000 for $20). Nothing is charged
by this call: it returns a checkout_url that the user opens and pays themselves. Only call it
when the user asked to pay by card or agreed to buy a pack.
Args:
pack: "100", "500" or "2000".
contact_email: the user's email; the checkout and receipt use it. Ask the user for it.
credit_key: to top up an existing credit_key; leave out to get a new one.
Returns {credit_key (new keys only: shown once, give it to the user to keep), checkout_url,
pack, credits_left, next_steps}. Credits are added within a minute of payment; then pass
credit_key to create_wallet_pass or update_wallet_pass.
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": {
"pack": "<pack>",
"contact_email": "<contact_email>"
},
"name": "buy_pass_credits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pack | Yes | ||
| credit_key | No | ||
| contact_email | Yes |