Loading...
Loading...
Explore our comprehensive REST API. Learn how to authenticate, create objects, and manage your integration.
To charge a credit card or other payment source, you create a Payment object.
const payment = await riyada.payments.create({
amount: 2000,
currency: 'usd',
payment_method_types: ['card'],
});{
"id": "pay_1J1x3",
"object": "payment",
"amount": 2000,
"currency": "usd",
"status": "succeeded"
}