Buy now, pay later payment solution.
## Afterpay MCP Server: Buy Now Pay Later The **Afterpay MCP Server** integrates Afterpay's buy-now-pay-later platform into Google Antigravity, enabling developers to offer flexible payment options through AI-assisted checkout workflows. ### Why Afterpay MCP? - **Installment Payments**: Split purchases into 4 interest-free payments - **Increased Conversion**: Higher checkout conversion rates - **Merchant Protection**: Afterpay assumes the risk of non-payment - **Customer Insights**: Access to spending behavior data - **Brand Partnerships**: Access to Afterpay's customer base ### Key Features #### 1. Checkout Integration ```javascript // Create Afterpay checkout const checkout = await afterpay.createCheckout({ amount: { amount: "99.99", currency: "USD" }, consumer: { email: "customer@example.com", givenNames: "John", surname: "Doe", phoneNumber: "1234567890" }, merchant: { redirectConfirmUrl: "https://shop.com/confirm", redirectCancelUrl: "https://shop.com/cancel" }, items: [ { name: "Product Name", quantity: 1, price: { amount: "99.99", currency: "USD" } } ] }); // Redirect customer to Afterpay window.location.href = checkout.redirectCheckoutUrl; // Capture payment after customer confirms const payment = await afterpay.capturePayment({ token: checkoutToken }); ``` #### 2. Order Management ```javascript // Get order details const order = await afterpay.getOrder({ orderId: "order_123" }); // Refund order await afterpay.refundOrder({ orderId: "order_123", amount: { amount: "49.99", currency: "USD" }, reason: "Customer request" }); // Update shipping await afterpay.updateShipping({ orderId: "order_123", courier: "FedEx", trackingNumber: "TRACK123" }); ``` ### Configuration ```json { "mcpServers": { "afterpay": { "command": "npx", "args": ["-y", "@anthropic/mcp-afterpay"], "env": { "AFTERPAY_MERCHANT_ID": "your-merchant-id", "AFTERPAY_SECRET_KEY": "your-secret-key", "AFTERPAY_ENVIRONMENT": "production" } } } } ``` ### Use Cases **E-commerce Checkout**: Offer flexible payment options at checkout. **Higher AOV**: Increase average order value with installment options. **Customer Acquisition**: Attract customers who prefer flexible payments. The Afterpay MCP Server brings buy-now-pay-later to your e-commerce workflow.
{
"mcpServers": {
"afterpay": {}
}
}