Install
Setup
Get a sandbox API key from the Atoa dashboard and set it in your environment. Sandbox and production keys are separate.Receiving or sending?
- Customer present →
payment.collectreturns a pay-link/QR. No contract. → Collect - Customer not present →
payment.collectwith acontractId, under a COLLECT contract the customer approved once. → Collect - Paying out →
payment.sendunder a SEND contract the account owner approved once. → Send
Collect your first payment
Create a pay-link and wait for the result. In sandbox, open the link, pick the Atoa Test Bank, and choose the outcome yourself.Send your first payout
Create a SEND contract, approve it once at theauthorizationUrl, then send. Every payout pauses for the business
owner’s approval (SCA) before money moves. In sandbox the recipient account decides the outcome — discover the
accounts with atoa.sandboxTestAccounts().
next_action approval step applies to every send and every off-session charge — see
Collect and Send.
Next
AI agents & tools
Hand the SDK to your model: the tool surface, the loop, and how a human approves.
Collect — money in
Pay-links, off-session charges, SCA, refunds.
Send — money out
Payouts, SCA, batches, contract limits.
Reference
Auth, methods, types, errors, sandbox, go-live.
Download the notebook · run it locally
The full flow as a runnable Jupyter notebook —
pip install atoa-agent-pay, add a sandbox ATOA_API_KEY, run.