Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
stylenone

Considerations

...

  1. Platform wide change, this should work on every market;

  2. This should only affect delivery orders.

Frontend Preparation

  1. Frontend Preparation Changes

    Status
    colourBlue
    titleReady for dev

Rules Implementation

  1. Rule 1 - First Order Physical Payment Limit

    For the first order with a value >= X €, only online payment will be allowed, where X is configurable. The initial intention is to set it to 20 €.

    Questions:

    • How can we identify the first order of a user? Is there any mechanism in place?

    Solution

    We can get advantage of gateway query getUserOrders, this query returns all orders from the logged user with a count. We query this when the browser loads the payment method screen. This is the response:

    image-20240318-222827.pngImage Removed

    New user without any order.

    When this count is 0, we don’t show Physical Payments.

    Status
    colourBlue
    titleReady for dev

  2. Rule 2 - Physical Payment Amount Limit

...

For subsequent orders with a value >= X €, only online payment will be allowed, where X is configurable. The initial intention is to set it to 50 euros.

Solution:

We already have a cash payment limit, but it’s only for cash. We should extend this flag to all Physical Payments.
Need to figure out how. Mattioni Sanches, Rafael (Deactivated)

  1. Status
    colourBlue
    titleReady for dev

  2. Rule 3 - Repeated Delivery Failure

...

If the last order was paid in Physical Payments and there was a delivery failure (e.g. a joke order), the next order will only allow online payment

...

  1. Limitation

    Status
    colourRed
    titleBLOCKED

Backend Restrictions

  1. Possible Future Improvements