Overview
Description
A new payment method called ticket restaurant which is a card used by companies to provide meal vouchers to their employees, being used only for this purpose and only in restaurants affiliated with Endered ( the company that owns ticket restaurant ).
To this end, this new payment method has been added to the list of payment options so that users can pay online (Ticket Restaurant Card) or pay in person (Ticket Restaurant Voucher).
Feature Flag
Feature Flag | Description |
---|---|
This flag will be responsible for activating ticket restaurant payment method using the online payment | |
This flag will be responsible for activating ticket restaurant payment method using the voucher in person |
Payment Method Brand
The payment method brand is the value that which will be responsible for identifying the payment method made and passing it on to all systems.
Payment Method Brand |
---|
TICKET_RESTAURANT_CARD |
TICKET_RESTAURANT_VOUCHER |
Solution
Ticket Restaurant Card
The solution for the restaurant card ticket is to follow the same flow as a credit card, thus guaranteeing the payment flow, 3DS, refunds and order completion.
Ticket Restaurant Voucher
The solution for the ticket restaurant voucher is to follow the same cash flow, with this we guarantee the payment flow and the delivery flow so that the motorcycle courier knows that he needs to carry a payment method compatible with the ticket restaurant.
Payment Methods Page
This change also adds a new option on the payment methods page to select the payment method via ticket restaurant voucher as the default when arriving at the payments screen after selecting your order.