- READY
- CONFIG
- DATA
- HUMAN
Short answer
How do I generate Afterpay checkout tokens using AI?
Your AI uses Afterpay tools to fetch necessary configuration data and build secure checkout sessions. This process returns the redirect tokens needed to send customers to the payment page. You get the specific session data required to finalize new orders.
The outcomes of this task.
Where your data lands.
What happens after you give the command.
READY
Valid redirect tokens
The AI generates the specific tokens required to move a customer from your cart to the Afterpay interface.
CONFIG
Store settings retrieved
Your agent pulls the exact Afterpay configuration needed to ensure the checkout session matches your account settings.
DATA
Session details captured
The AI organizes the session data so you have everything needed to track the transaction.
HUMAN
Final order review
You must manually confirm the final order details and handle the actual customer handoff in your storefront.
The workflow
What your AI does when the request arrives.
The AI handles the API calls so you don't have to write the integration code yourself.
Fetch settings
The agent first pulls your specific Afterpay account details to ensure the session is valid.
get_afterpay_configBuild session
Using the retrieved config, the AI builds a new checkout session for the customer's order.
create_checkoutExtract token
The AI identifies the redirect token within the session response.
create_checkoutDeliver token
The agent provides the token to you, ready to be used in your checkout flow.
create_checkout
Try it
Copy these to start.
Use these prompts to trigger the Afterpay tools.
Starting points
Swap the bracketed info for your actual order details like amount or currency.
Afterpay Connector
You're all set. Choose your MCP client and follow the setup instructions.
https://edge.vinkius.com/vk_preview_sQRk8dKNgiA5Z2tujCBpqrjbpknJsvMYe9uyLv35/mcpClaude Desktop
Follow the steps below to connect in seconds.
- 1In Claude Desktop, open Settings → Connectors.
- 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
- 3Click Add and start a new chat — Afterpay capabilities are ready to use.
{
"mcpServers": {
"afterpay-mcp": {
"url": "https://edge.vinkius.com/vk_preview_sQRk8dKNgiA5Z2tujCBpqrjbpknJsvMYe9uyLv35/mcp"
}
}
}Get my Afterpay configuration so I can check my settings.
Create an Afterpay checkout session for an order of $50.00 USD.
Generate a new Afterpay checkout token for a customer buying a blue sweater.
Use my Afterpay config to set up a session for a $120.50 order.
Claude
ChatGPT
Cursor
VS Code
Windsurf
Claude Code
JetBrains
Cline
Start here
Connect Afterpay once, then ask.
You only need to link your account once. Your credentials stay encrypted, and you can immediately start asking your agent to manage payments.
Connect Afterpay to your AIFAQ
How this task behaves.
- 01
Can the AI process the actual payment?
No. The AI only creates the session and retrieves the token. The customer completes the payment on the Afterpay site.
- 02
Can the AI change my Afterpay account settings?
No. The AI can only read your configuration using the available tools.
- 03
Do I need to provide the order amount every time?
Yes. You must tell the AI the specific amount and currency for each new checkout session you want it to create.
- 04
Will the AI delete my existing orders?
No. There are no tools provided to delete or modify existing Afterpay records.
- 05
Can the AI handle refunds?
No. This specific task is limited to retrieving configuration and creating new checkout sessions.
More questions about Afterpay? See everything the Afterpay Connector can do
Connect Afterpay to Claude, Cursor, ChatGPT & more
