[UAT] Allow payment methods
Basic scenarios:
Sanity
Default status
Activate and deactivate payment methods in one restaurant
Check the restaurant in Whitelabel
Activate and deactivate payment methods in two or more restaurants
Check the restaurants in Whitelabel
Cash limitation prioritization
Important points:
Default status:
When the feature is deployed on the environment and the payment method is added on the Sanity, the payment method is created on DOP with the default status as "Null".
However, even if the status is "Null", if the payment method is Enabled on Launch Darkly, the payment method will continue to be listed on the dropdown. In order to deactivate the payment method, it is necessary to deactivate by DOP and save.
Regarding rolling out this feature, we recommend a bulk update in all restaurants in each market.
For new restaurants, it will be necessary to edit and save.
Payment method dropdown caching
There is an existing caching on the payment method dropdown in the user session. So after a payment method is activated or deactivated via DOP, the update will reflect if the user reloads the page or reopens the app. This behavior already happens in other places in the Whitelabel. Still, we are refining a solution to fix this on the dropdown as we also implemented the cash limitation feature.
Launch Darkly > Cash limitation > Allow payment methods prioritization
The Launch Darkly always will have priority, if a payment method is disabled there and enabled on DOP, the payment method will not be displayed on the Whitelabel.
If the payment method is activated on DOP, but the user is within the cash limitation, e.g. last order as a fake order, the payment method will not be displayed to this user.
If the payment method is deactivated on DOP, but the user is within the limitation to see the method, the payment method will be displayed on the dropdown. The expected is that if payment method is deactivated on DOP, they are deactivated on Whitelabel. We already fixed this issue and it will be necessary a hotfix.
The modal update confirmation
The modal update confirmation is already implemented on the cash limitation only when the user is updating two or more restaurants. We keep this behavior on the allow payments as well.
Translation payment methods on DOP
The payment methods title displayed on the DOP page is getting the translation from Lokalise. Just in case it is necessary to customize it, we will have to implement this.