Skip to main content
In Brazil, shoppers commonly use a combo card that has both a debit and a credit functionality, and most credit cards accept installment payments. Consequently, when paying by card, shoppers are asked to make some choices:
  • Do they want to pay by credit, debit, or voucher?
  • If credit, do they want to make a one-off payment of the total amount or do they want to pay in installments?
  • If installments, how many installments?
Here we explain how to flag in-store card payments as credit or debit and make credit card installment payments using one of the following flows:
  • Adyen UI: with this flow enabled, the terminal automatically shows screens that let the shopper make their choices, and then processes the payment request according to those choices. This flow works for integrated and standalone payment terminals.
  • Your own UI: you create your own UI or use some other process to get the shopper’s choices, and then pass this information in your payment request.

Requirements

Before you begin, take into account the following requirements, limitations, and preparations.

Adyen UI

To use the Adyen UI flow, you must contact our Support Team and let them know whether you want this to be enabled for a company or merchant account, a store, or a terminal. The Adyen UI flow works for integrated and standalone payment terminals. When enabled, the flow is as follows:
  1. You initiate a payment like you usually do.
  2. The terminal shows a series of prompts:
    1. First, the terminal asks the shopper to choose if they want to pay by credit, debit, or voucher.
    2. If the shopper selects Credit, the terminal asks them to select if they want to pay in Installments or as a One-off payment.
    3. If the shopper selects Installments, the terminal asks them to Enter the number of installments and select Confirm.
  3. The terminal asks the shopper to present their card.
  4. The shopper completes the payment on the terminal. They may need to enter their PIN or signature to verify the payment.
    When applicable, the generated receipt includes the number of installments, for example, “Crédito em 12 parcelas” (“Credit in 12 installments”).
On an integrated terminal, you can find the installment information in the Terminal API response:
  • PaymentResult.PaymentType: Instalment.
  • PaymentResult.Instalment: an object containing:
    • InstalmentType: EqualInstalments
    • SequenceNumber: 1
    • Period: 1
    • PeriodUnit: Monthly
    • TotalNbOfPayments: the number of installments.
  • Response.AdditionalResponse: installments= with the number of installments.

Your own UI

As an alternative to the Adyen UI, you can design your own custom UI to collect the customer’s preference. Your Terminal API request then needs to flag the credit card transaction as credit and make credit card installment payments. The flow at the point of sale is as follows:
  1. You collect the information about whether the shopper prefers to pay by credit, debit, or voucher, and if applicable, in how many installments. You can do this in various ways, for example:
    • Your store staff asks the shopper about their preferences.
    • You collect the shopper’s preferences on a secondary screen, for instance a tablet.
    • You use input requests to collect the shopper’s preferences on the payment terminal.
  2. You use logic to pass the collected information to your POS app or your store staff enters this information manually into your POS app.
  3. Your POS app passes this information to the payment request.
  4. The shopper presents their card to the terminal and completes the payment.
If the customer paid in installments, the response contains the installment details and the receipt data includes the number of installments, for example, “Crédito em 12 parcelas” (“Credit in 12 installments”).

Make a payment with Terminal API

When paying in installments, the Terminal API payment request needs to indicate that the payment type is credit, and contain an object to define the installments. There are two ways to indicate the payment type:
  • selectedAccountType:
    This method is recommended because it also applies to meal or food vouchers. You create a JSON object containing selectedAccountType with a value of CREDIT, CHEQUE, or MEAL_VOUCHER. Then you Base64-encode the JSON object and pass the resulting string in your Terminal API request, in the SaleToPOIData field.
  • DebitPreferredFlag:
    This method is limited to credit or debit. You add TransactionConditions.DebitPreferredFlag set to false for credit, or true for debit.
In the event that both DebitPreferredFlag and selectedAccountType occur in the same request, selectedAccountType takes precedence and its value is used.
  1. Make sure that your POS app collects the following information and passes it to the Terminal API payment request:
    • The payment type: credit or debit (or voucher).
    • If credit: whether the shopper wants to pay in installments.
    • If credit installments: how many installments.
  2. If you want to indicate the payment type using selectedAccountType:
    1. Create a JSON object consisting of the selectedAccountType parameter with the value CREDIT, or CHEQUE for debit, or MEAL_VOUCHER for a voucher. JSON object
    2. Encode the JSON object to Base64. You will pass the resulting string in SaleData.SaleToPOIData. Converted to a Base64-encoded string
  3. Make a payment request, specifying:
    • The standard SaleToPOIRequest.MessageHeader object, with MessageClass set to Service and MessageCategory set to Payment. For a debit card payment or a one-off credit card payment, no further parameters are required.
    • If the shopper is paying by credit card in installments, define the installments by adding PaymentData object with:
      • PaymentType: Instalment
      • Instalment.InstalmentType: EqualInstalments
      • Instalment.SequenceNumber: 1
      • Instalment.Period: 1
      • Instalment.PeriodUnit: Monthly
      • Instalment.TotalNbOfPayments: the number of installments. The minimum is 2, the maximum 36.
    To see some sample requests, select your method. **

    selectedAccountType method