Problem statement
BK PT customers have been facing limitations and inconveniences when making payments. To address this, we aim was to implement a feature that allows users to make card payments at home with a POS terminal brought by the driver. The goal was to maintain the existing user experience avoiding impact on sales.
OUT OF SCOPE: Saving card networks (ex: Visa, Mastercard) used for “Card at home” payments for future reports. This information is not saved today.
Business requirements
Available for BK PT (web and app)
The new payment method should only be available if the user selects “delivery mode” inside the Whitelabel App
The new method should be available in the user account methods list
Integrate with Winrest and delivery platform
DMP & Admin tool reports should be updated accordingly showing the new payment method
Feature flag on Launch Darkly to turn on / turn off when it is necessary or used in other markets
Translation for other languages available on Lokalize
Tech solution - Payment method brand approved by Winrest and Homeria
Using the already existing CASH payment method, it was added the PAYMENT_ON_DELIVERY_CARD payment method brand as an option. This solution was used also to implement Sodexo and Cheque Gourmet vouchers, which allowed us to take advantage of the groundwork laid by it: /wiki/spaces/IN/pages/3932717313.
Pros and cons
Pros
Require small changes since the structure is very similar to Sodexo and Cheque Gourmet vouchers
Reuse of components and structures that already exist on the code
Avoids the complexity of creating a new payment method from scratch, which impacts many repositories and integrations
Cons
Since Winrest processes payment using paymentMethod field, it can’t differentiate between cash, voucher, or “card at home” payments. The same behavior happens today to Sodexo and Cheque Gourmet Vouchers, however. This will require changes on Winrest’s side to also evaluate paymentMethodBrand, otherwise, the driver won’t know if they have to take the card machine.
Whitelabel solution
The new payment method is displayed on the list, if the user is placing an order for delivery:
Also, it is possible to save this method as default:
Regarding the order place confirmation and tracking your order screens and e-mail order place confirmation, it was not possible to change the text “Please have cash with hands". According to alignment with the business, it will be an improvement in the future.
DMP screens:
It is possible to see the new payment method in the order details sneak peek:
In the Cashflow summary screen, a new column was added to display orders with the new payment method:
In Cashflow by Drivers screens:
Complaints screen:
Order history screen:
DOP screens:
Orders screen:
Complaints screen:
Launch Darkly Feature Flag:
enable-payment-on-delivery-card-paycomet