Create a payment
This endpoint creates a new payment object.
Endpoint
POST
/v1/paymentsRequest Parameters
| Parameter | Type | Description |
|---|---|---|
amount* | integer | The amount to charge, in the smallest currency unit. |
currency* | string | Three-letter ISO currency code. |
customer_email | string | The 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",
...
}