commercelayer / mfe-checkout

Commerce Layer Hosted Checkout
https://commercelayer.io
MIT License
42 stars 47 forks source link

Skip `begin_checkout` when payment is completing or page reload on `placed` orders #394

Closed malessani closed 11 months ago

malessani commented 11 months ago

Description

Now if a payment gateway requires to leave the checkout to complete the payment process, when the customer is redirected back to the checkout another begin_checkout event is pushed to dataLayer. This should be avoided.

Expected Result

The expected result was to avoid firing two begin_checkout events on the same checkout flow

Actual Results

The actual result was to fire begin_checkout every time the GTM is initialized

malessani commented 11 months ago

:tada: This issue has been resolved in version 4.2.5 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: