Skip to main content
The payment step never charges the customer. It enrolls a payment instrument for later billing and records which one this contract uses.
Only the account holder (account_member) goes through this step. Later company administrators skip it.

Flow

Steps

1

Billing period

PATCH /api/v3/contract/{id}/payment/period stores monthly or annual while the customer is still choosing. It does not open Fintoc or confirm anything; it also lets the backend start preparing the documents early.
2

Start enrollment

PATCH /api/v3/contract/{id}/payment with method (CARD, the default, or PAC) and optionally period and locale starts a Fintoc enrollment and answers the checkout URL plus the enrollment id. The portal calls it as soon as the payment step opens and keeps the URL, so pressing the button only redirects. The payment method it returns is a placeholder until Fintoc confirms it.
3

Return from Fintoc

The portal sends its locale, so Fintoc returns the customer straight to the wizard (/{locale}/contract/{id}?enrollment=…&resumed=payment). The return does not finish the enrollment itself. Callers that send no locale return through the bridge page /gateway/fintoc/enrollment/finish.
4

Activation by webhook

Fintoc’s webhook (POST /api/v3/integration/fintoc/webhook) attaches the instrument, makes it the account’s favorite and publishes contract.payment_method.enrollment.success, so every open tab shows the new method.
5

Confirm

PATCH /api/v3/contract/{id}/payment/confirm with period (and optionally payment_method_id) records the chosen method and period and answers stage: SIGNATURE with the documents in preparation. The signing pipeline starts right after the response.

Changing the method or period

  • Confirming again with the same method and period changes nothing.
  • Confirming with a different method or period, while no customer has signed, discards the unsigned documents and starts the pipeline again with the new values.
  • Once any customer has signed, payment can no longer change. The usual answer is 409 unsupported-status, because the contract is no longer in draft, pending_signature or in_signature; 409 customer-already-signed appears while the contract is still in pending_signature or in_signature.
An account holds at most one usable bank-account mandate (active or pending); a revoked or expired mandate does not block a new one.

What happens if the customer leaves

If the customer abandons the wizard and the account has no other contracted service, the Fintoc payment methods on the account are revoked. See Flows — Exceptions.

Errors

Data

Payment methods live in the payment domain; see Payment method, Payment method company and Payment method mandate.

Code