Problem/Motivation

Currently, the "Express Checkout" flow automatically redirects users to the "Complete" page immediately upon successful payment. This automated redirect prevents developers from executing custom logic — analytics events, or UI updates before the user leaves the page.

The same applied for an error case.

Proposed Resolution

Set the redirect mode to if_required. This allows us to trigger the custom event first and then manually handle the redirect once the logic is complete.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

beloglazov91 created an issue. See original summary.

beloglazov91’s picture

Status: Active » Needs review

anybody’s picture

beloglazov91’s picture

Title: Trigger event on successful "Express Checkout" payment » Trigger event on successful / failed "Express Checkout" payment
Issue summary: View changes