PricingCompany

Create a payment

This endpoint creates a new payment object.

Endpoint

POST/v1/payments

Request Parameters

ParameterTypeDescription
amount*integerThe amount to charge, in the smallest currency unit.
currency*stringThree-letter ISO currency code.
customer_emailstringThe customer's email address.

Request Example

cURL
curl https://api.paynala.com/v1/payments \
  -u sk_test_...: \
  -d amount=2000 \
  -d currency="ngn" \
  -d customer_email="customer@example.com"

Response Example

JSON
{
  "id": "pm_1J...xX",
  "object": "payment",
  "amount": 2000,
  "currency": "ngn",
  "status": "succeeded",
  ...
}