npm install @paysall/node
import { Paysall } from '@paysall/node';
const paysall = new Paysall(process.env.PAYSALL_SECRET_KEY!);
const intent = await paysall.paymentIntents.create({
amount: 4900,
currency: 'usd',
customer: 'cus_18fe3a',
});GET STARTED
Comprehensive guides.
Explore the API.
Endpoints
POST /v1/payment_intents
GET /v1/payment_intents/{id}
POST /v1/customers
POST /v1/subscriptions
POST /v1/refunds
POST /v1/charges/{id}/capture
POST /v1/disputes/{id}/evidence
GET /v1/balance
Sample Response
{
"id": "pi_3JZsfn2eZvKYlo2C1g9gL0pS",
"object": "payment_intent",
"amount": 4900,
"currency": "usd",
"customer": "cus_18fe3a",
"status": "requires_payment_method",
"livemode": false,
"created": 1633456789
}Official SDKs.
Node.js
latestPython
latestGo
latestRuby
latestReady to get started?
Explore our platform or contact sales to design a custom package for your business.