Skip to content

Developers

Build global payments with one API.

Clean REST endpoints, predictable JSON responses and SDKs for Node.js, Python, PHP, Go and Java. Go from sandbox to live production in hours, not months.

Payments

Create a payment

Creates a payment in the customer’s local currency and returns the next action for the chosen method.

POST /v1/payments
amountinteger
currencystring
methodstring
idempotency_keyheader

Your first payment, in a few lines

Create a payment with a local method, pass an idempotency key, and listen for the result on your webhook endpoint.

  • Predictable JSON responses across every resource
  • Idempotent requests so retries never double-charge
  • Real-time events for every transaction state
const fletpay = new Fletpay(process.env.FLETPAY_KEY);

const payment = await fletpay.payments.create({
  amount: 125000,
  currency: "BRL",
  method: "pix",
  customer: { email: "ana@example.com" },
}, { idempotencyKey: "order_8812" });

console.log(payment.status); // "pending"

Webhook events · order_8812Illustrative example

  • 12:04:01.218payment.created
  • 12:04:01.402payment.routed
  • 12:04:03.977payment.succeeded
  • 12:04:04.010settlement.completed

From sandbox to first live payment

  1. 01

    Create a sandbox account

    Sign up and get test API keys right away. The sandbox mirrors production behavior without moving real money.

  2. 02

    Simulate the full lifecycle

    Trigger successful payments, declines, refunds and webhook payloads to validate every branch of your flow.

  3. 03

    Switch to live keys

    Once onboarding is approved, swap in your live keys and activate the payment corridors you need.

Frequently asked questions

Something else on your mind? Talk to our team.

Which languages have official SDKs?

Fletpay provides SDKs for Node.js, Python, PHP, Go and Java. Any language that can make HTTPS requests can call the REST API directly.

Is there a test environment?

Yes. Every account gets a dedicated sandbox where you can simulate payments, declines, refunds and webhook deliveries before going live.

Do I need separate integrations per country?

No. One API covers every supported country and payment method. You choose which corridors to activate from your dashboard.

Ready to Unlock Emerging & Global Markets?

Join fast-growing enterprises scaling their payment infrastructure with Fletpay.