GETTING STARTED
Quickstart
Go from zero to your first test payment in under five minutes.
1
Install the SDK
terminal
COPY
$ npm install @fluxo/node
2
Initialize the client
index.js
COPY
import Fluxo from ʺ@fluxo/nodeʺ;
const fluxo = new Fluxo(process.env.FLUXO_SECRET_KEY);
3
Create a payment
index.js
COPY
const payment = await fluxo.payments.create({
amount: 2000,
currency: ʺusdʺ,
});
// → payment.status === ʺsucceededʺ