Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

For a user's first order, if the total value is equal to or exceeds €20, only online payment methods will be permitted. The threshold value of €20 is configurable and can be adjusted as needed.

Identification of First Orders:

We can determine whether an order is a user's first by utilizing the getUserOrders gateway query. This query retrieves all orders associated with the currently logged-in user and includes a count of these orders. Here is the process:

  1. Trigger the getUserOrders when the payment method screen loads.

  2. The response includes all past orders of the user and a count of these orders.

    1. Sample response of a user without any previous orders:

      {
      "data": {
        "userOrders": {
          "count": 0,
          "resumeAfter": null,
          "orders": [],
          "__typename": "OrderListResponse"
        }
      }
  3. If the count is 0, indicating no previous orders, physical payment options should not be displayed.

This new rules ensures that users attempting their first purchase with a total of €20 or more are only presented with online payment options.

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.