Why Pagou recommends it
- Hosted card fields reduce PCI exposure.
- Tokenization happens in the browser without your backend touching raw card data.
- Card authentication is handled inside
elements.submit(...), with no extra fields to collect. - Your backend contract stays simple: create a transaction with the token returned by the browser.
Backend request
Example response
Common error
Status422
Installments with interest paid by the buyer
When your account is set up to charge installment interest to the buyer, the transaction is created the same way, with two differences:amountis the amount before interest. Pagou adds the interest of the chosen installment and charges the total. The creation response and the webhook returnamountas the total charged. Usebase_amount, present on the creation response, onGET /v2/transactions/{id}and on the webhook, for the amount you sent.GET /v2/transactions/{id}returnsamountas the amount before interest, the same asbase_amount; the total charged is in the creation response and in the webhook.- The installment must be chosen in the card field (see the
installmentsoption of the SDK). Send the sameamount,installmentsandinterest_free_installmentsthe card field showed.
interest_rate sent in the request is ignored for these sales; the rate charged is always the one Pagou
calculated.
In both cases nothing is charged and no transaction is created.
base_amount is also returned for regular
sales: it is the amount you sent, in the transaction currency.
Decision rule
- Use Payment Element for browser card flows.

