Build on what Myela runs on.
One REST API, a typed Node SDK, and a hosted card field. Payments today, AI and Issuing next.
Your first payment. One call from your server.
Amounts are integers in minor units, so 4999 is $49.99. Send an Idempotency-Key so a retry can’t charge twice.
import { Myela } from '@myela/payments';
const myela = new Myela({
apiKey: process.env.MYELA_API_KEY!,
baseUrl: process.env.MYELA_API_BASE_URL!,
signingSecret: process.env.MYELA_SIGNING_SECRET,
});
const payment = await myela.gateway.payments.create({
amount: 4999, // $49.99 in minor units
currency: 'USD',
paymentToken: token, // from Myela Elements
});curl -X POST $MYELA_API_BASE_URL/v1/payments \
-H "Authorization: Bearer $MYELA_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: order_1001" \
-d '{ "amount": 4999,
"currency": "USD",
"paymentToken": "…" }'What you can build. One account across every pillar.
Payments
Available
Charge cards, save customers, run subscriptions and invoices, and hear about every change by webhook.
Accept a paymentAI
Not public yet
Third-party access to the bots you build in Neural is planned. Request access to hear first.
Request early accessIssuing
Not public yet
Card programs, spend controls, and funding run in the Issuing product today. A public API is in development.
Request early accessStart building.
const payment = await myela.gateway.payments.create(
{ amount: 4999, currency: 'USD', paymentToken: token },
{ idempotencyKey: 'order_1001' },
);curl -X POST $MYELA_API_BASE_URL/v1/payments \
-H "Authorization: Bearer $MYELA_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: order_1001" \
-d '{ "amount": 4999, "currency": "USD", "paymentToken": "…" }'- RequestPOST
/v1/payments - Response201
status: pending_settlement - Webhook
payment.settled· delivered
payment.settled arrives once the payment settles, and isn't on every account yet.