Create a payment
POST https://api.finorapayment.com/v1/payments
Creates a payment and returns the link to the hosted checkout. Redirect the customer to this link.
Request
| Field | Type | Required | Description |
|---|---|---|---|
merchant_order_id | string, ≤ 256 | yes | Your unique order ID. One order ID = one payment: to retry a failed payment, use a new ID. |
payment_amount | number | yes* | Amount in EUR, at least 1, at most 2 decimals. In test mode at most 5. *Can be omitted when you send items from your product catalog. |
payment_currency | string | yes | EUR — the only supported currency. |
return_url | URL | no | Your result page. If omitted, the default result page from the cabinet is used; if neither is set, the request fails. |
customer_email | no | Customer email, shown in the cabinet and sent back in webhooks. | |
institution_id | string | no | Bank ID to skip the bank list — see Bank selection. Send together with institution_country_code. |
institution_country_code | string | no | Two-letter country code of the bank (DE, AT …). |
client_ip | IP | no | Customer IP address for payer verification. |
customer_full_name | string | no | Customer full name for payer verification. |
payer | object | no | Bank details a bank may require (name, iban, bic, country, city, postCode …). Usually collected on the checkout. |
ui_customization | object | no | Checkout appearance for this payment. Overrides the defaults from the cabinet. |
items | array | no | Products from your catalog: [{ "id": "…", "count": 1 }]. |
Example
curl -X POST "https://api.finorapayment.com/v1/payments" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"merchant_order_id": "order-1002",
"payment_amount": 49.90,
"payment_currency": "EUR",
"return_url": "https://example.com/payment/result",
"customer_email": "[email protected]"
}'Response
201 Created
json
{ "payment_link": "https://finorapayment.com/cc/checkout?order_id=…" }Store your merchant_order_id: you use it to check the payment and to match
webhooks.
Good to know
- Check the amount on your side. When the webhook arrives, compare
total_amountwith the order amount in your system before shipping. - The link has no expiry date of its own, but once a bank is chosen the customer has to confirm in the bank before its approval window closes; after that the payment is canceled. See time limits.
- Don't open the checkout in an iframe — banks block it. Use a full-page redirect or a new tab.
- Errors are described in Errors.
