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 4 Next »

⚠️ Please Note:

  • The current Flag for cash limitation simply displays and hides a message in limit-message/index.tsand hides cash from classify-payment-methods.ts

  • The new change to the frontend will simply hide the payment methods on top of the existing flags that already enable/disable payment methods in src/components/payment-method/payment-method-options/payment-method-options.tsx


Modify the Payment Method Interface:

  • Add a new Boolean property onlinePayment to the interface that categorizes each payment method as online or physical.

Update Payment Method Constants:

  • Update the constants that implement this interface adding the onlinePayment method here, the configuration should be:

const

onlinePayment value

PAYPAL_PAYMENT_METHOD_PLACEHOLDER

true

BLIK_PAYMENT_METHOD_PLACEHOLDER

true

SODEXO_VOUCHER_PAYMENT_METHOD_PLACEHOLDER

false

CHEQUE_GOURMET_VOUCHER_PAYMENT_METHOD_PLACEHOLDER

false

SODEXO_PAYMENT_METHOD_PLACEHOLDER

true

CHEQUE_GOURMET_PAYMENT_METHOD_PLACEHOLDER

true

PAYMENT_ON_DELIVERY_CARD_PAYMENT_METHOD_PLACEHOLDER

false

BIZUM_PAYMENT_METHOD_PLACEHOLDER

true

WAYLET_PAYMENT_METHOD_PLACEHOLDER

true

Create a Verification Method:

  • Implement a method to verify if a payment type is online. This method should also ensure that cash (not listed in the constants) is always considered false.

Current Flow to get Restaurant to Delivery

  • No labels