Usage Scenario: Check the Bag and Continue

On a payment screen, when the user clicks the ‘Make Payment’ button, the bag should first be checked for existence. If the bag does not exist, the user should be warned or the action should be cancelled.

Configuration Steps:

  1. Add the action to the ‘Make Payment’ button with OnClick.
  2. As the first action:
    • Bag → Bag Has Key
    • Bag Key: currentUser.id + ‘_bag’
  3. Add the Condition action that checks the result:
    • If true: Continue → Start the payment flow.
    • If false: Notify → ‘Your cart is empty. Please add a product first.’