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

FieldTypeRequiredDescription
merchant_order_idstring, ≤ 256yesYour unique order ID. One order ID = one payment: to retry a failed payment, use a new ID.
payment_amountnumberyes*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_currencystringyesEUR — the only supported currency.
return_urlURLnoYour result page. If omitted, the default result page from the cabinet is used; if neither is set, the request fails.
customer_emailemailnoCustomer email, shown in the cabinet and sent back in webhooks.
institution_idstringnoBank ID to skip the bank list — see Bank selection. Send together with institution_country_code.
institution_country_codestringnoTwo-letter country code of the bank (DE, AT …).
client_ipIPnoCustomer IP address for payer verification.
customer_full_namestringnoCustomer full name for payer verification.
payerobjectnoBank details a bank may require (name, iban, bic, country, city, postCode …). Usually collected on the checkout.
ui_customizationobjectnoCheckout appearance for this payment. Overrides the defaults from the cabinet.
itemsarraynoProducts 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_amount with 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.