SDK oficial para Node.js - Aceite pagamentos em segundos com uma integração simples
npm install @abacatepay/sdk
import { AbacatePay } from "@abacatepay/sdk"; // Initialize the SDK with your API key const abacate = AbacatePay({ secret: "API_KEY" });
// Create a new checkout const checkout = await abacate.checkouts.create({ items: [ { id: "item_abc123", quantity: 2, }, ], customerId: "cust_987" });
{ id: "bill_123456789", amount: 15000, paidAmount: null, externalId: null, url: "https://abacatepay.com/pay/bill_123456789", items: [ { id: "item_abc123", quantity: 2, }, ], status: "PENDING", devMode: true, receiptUrl: null, coupons: [], customerId: "cust_987", createdAt: '2024-11-04T18:38:28.573', updatedAt: '2024-11-04T18:38:28.573' }
Was this page helpful?