Requirements
Before you begin, take into account the following requirements, limitations, and preparations.Ways to accept meal vouchers
To accept meal and food voucher payments, you can use the following flows:-
Adyen UI
With this flow enabled, the terminal automatically shows a screen that lets the customer select if they want to make a credit, debit, or voucher payment. After selecting voucher, the customer taps, inserts, or swipes the meal or food voucher card to make the payment. This flow works for integrated and standalone payment terminals. -
Your own UI
You use your own custom POS UI or some other process to let the customer indicate they want to make a credit, debit, or voucher payment. You then send a Terminal API payment request specifying the chosen payment type as theselectedAccountType, in this case with a value of MEAL_VOUCHER. On the terminal, the customer then taps, inserts, or swipes the meal or food voucher card to make the payment.
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:- You initiate a payment like you usually do.
-
The terminal asks the customer to choose if they want to pay by credit, debit, or voucher.
- If the shopper selects voucher, the terminal asks the customer to tap, insert, or swipe. For information about the flow if the shopper selects credit or debit, see Installments in Brazil.
- The customer presents their voucher card to the terminal and completes the payment. If the payment amount is above the CVM limit, the customer may need to enter their PIN.
AdditionalResponse includes:
- fundingSource=PREPAID.
- The voucher brand used for the payment, for example, paymentMethodVariant=elo_voucher_br.
Your own UI
As an alternative to the Ayden UI, you can design your own custom UI to collect the customer’s preference. Your Terminal API request then needs to flag the transaction as a meal voucher payment. This flow does not apply to standalone terminals. The flow at the point of sale is as follows:-
You collect the information about whether the customer wants to pay by voucher. You can do this in various ways, for example:
- Your store staff asks the customer.
- You collect the customer’s preference on a secondary screen, for instance a tablet.
- You use input requests to collect the customer’s preference on the payment terminal.
- You use logic to pass the collected information to your POS app, or your store staff enters this information manually into your POS app.
- Your POS app passes this information to the payment request.
- The customer presents their voucher card to the terminal and completes the payment.
Make a meal voucher payment
If the customer has indicated they want to pay with a meal or food voucher:-
Create a JSON object consisting of the
selectedAccountTypeparameter with the value MEAL_VOUCHER. JSON objectSee Interaction with installment parameters for more information. -
Encode the JSON object to Base64. You will pass the resulting string in
SaleData.SaleToPOIData. Converted to a Base64-encoded string -
Make a payment request, specifying:
-
The standard
SaleToPOIRequest.MessageHeaderobject, withMessageClassset to Service andMessageCategoryset to Payment.
-
The standard
-
In the PaymentResponse, check the
AdditionalResponse. For a successful voucher payment, this includes:- fundingSource=PREPAID.
- The voucher brand used for the payment, for example, paymentMethodVariant=elo_voucher_br.
Interaction with installment parameters
As described under Make a meal voucher payment, a meal or food voucher Terminal API payment request must include theselectedAccountType parameter with a value of MEAL_VOUCHER. Other allowed values are:
- CHEQUE to make a debit card payment.
- CREDIT to make a credit card payment.
selectedAccountType parameter to do this, or use the TransactionConditions.DebitPreferredFlag parameter with a value of true for debit or false for credit.
If both DebitPreferredFlag and selectedAccountType (in Base64-encoded format) are included in a payment request, the selectedAccountType parameter takes precedence and its value is applied.
Testing
You can test voucher payments using Manual Key Entry (MKE). This does not simulate the voucher flow on the terminal, but does enable you to test how your integration and reconciliation handle voucher payments. During MKE, enter a combination of card number, expiry date, and CVC as indicated in the following table:
Testing voucher payments with a physical card is possible for Visa voucher cards; contact Visa to get a test card.
Merchant Category Codes
To be allowed to accept meal and food voucher payments under the PAT program, your business must comply with certain rules. To mention a few:- Your business must be registered with a National Classification of Economic Activities (CNAE) code that indicates your main economic activity is compatible with meal or food services.
- When you accept PAT vouchers, you are technically part of a public health program, and must adhere to all applicable sanitary and nutritional regulations.
-
Your Merchant Category Code (MCC) must be one of the following.
