Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

🛠️ Potential Solutions

Option 1: Use Sanity for payment methods configurations

(plus) Pros

...

Currently, the restaurant lacks the ability to choose which payment methods to use, particularly offline options like cash, vouchers, or at-home terminals, during the delivery process. RBIria aims to provide this flexibility to the restaurant, allowing it to temporarily disable the "at-home terminal" payment method whenever it is not available.

Option 1: Use Sanity for payment methods configurations

(plus) Pros

  • This is the standard tool for Fz’s (market) configuration persona

  • Sanity is deployed for every Fz (market) in RBI

...

  • DOP is used only by Iberia and Germany. This solution will only impact these markets.

✅ Proposed Solution

Go with Option 2, as it enables better flexibilityAfter some talks the option choose is use the DOP.

Add Payment Methods List on DOP

We need to implement a solution to allow the user disable some offline payment methods (such as vouchers, cash, etc.) in the DOP, allowing users to choose which ones they want to temporarily disable for a specific restaurant, with this the disabled payment will not be displayed in the WL-app to specific restaurant.

Currently, the only place that manages which payment methods are available by market and brand is in the Front-end (Whitelabel). However, we cannot are unable to retrieve this information from the Whitelabel because this implementation is hard-coded and relies on the feature flag of front-end. As a result, it is not possible to obtain this information from other services, such as DOP.

Therefore, we need to prioritize solving this issue. The solution options we have are:

...

Sanity and DOP Payments

Whitelabel Payments

Payments avaliable to user on payment screen

cash: true

Sodexo Voucher: false

Ticket Restaurant: false

Payment delivery card: true

Credit Card

Paypal

cash

Sodexo Voucher

Ticket Restaurant

Payment delivery card

Credit Card

Paypal

cash

Payment delivery card

...