Description
We are seeing duplicate event triggers during the checkout process.
- The begin_checkout and add_payment_info events are each triggered three times when the user is logged in.
- When the user is not logged in, these events are triggered twice.
Additionally:
- The purchase event is being triggered even when the payment is cancelled.
Expected Behavior
- begin_checkout and add_payment_info should only be triggered once per checkout session.
- The purchase event should only be triggered after a successful and completed payment.
Actual Behavior