payments you pass to connect().
Funding the wallet from code needs a claimed agent whose owner has verified their email. A guest must be claimed first.
Install the payments module
Pay by card
PassstripePayments() your Stripe secret key and the card’s payment method. The SDK issues a Stripe shared payment token for each top-up. Then call topUp() (top_up() in Python) with the number of cents to add:
PaymentRequiredError with the below_card_minimum reason.
stripePayments() throws an AgentJamError right away if the key is empty or isn’t a secret (sk_) or restricted (rk_) key. If Stripe rejects the key, the AgentJamError is thrown on the first top-up.
Keep the key off the agent
To keep your Stripe key out of the agent’s process, passcreateToken (create_token in Python) instead of the key, and issue each token yourself, such as from your server. A token pays for one top-up, so createToken must return a new token every time.
A card in a Link wallet pays the same way when createToken issues each token from Link, so the card never leaves the wallet. Any other MPP client method, or a list of them, works through mppPayments() (mpp_payments() in Python).
Pay in stablecoin
To pay in USD stablecoin on Tempo, passstablecoinPayments() a wallet account, such as one from Tempo Wallet, Privy, Kite Passport, or AgentCash. Stablecoin top-ups can be any amount from 1 cent:
stripePayments() as its wallet option.
Keep the wallet topped up
To keep the wallet from running dry,setAutoReload() (set_auto_reload() in Python) funds auto-reload from a recurring Stripe shared payment token, such as one issued from Link. Pass a recurringToken function to stripePayments() or mppPayments(). This function is called once, and returns a token that allows spending up to a limit each period: