RedirectException in onReturn is caught in returnPage()

Created on 20 March 2025, 29 days ago

Problem/Motivation

The RedirectException thrown when a payment is still pending is caught in a catch (\Exception $e) in returnPage() which results in not processing the redirect and redirecting to previous step.

Steps to reproduce

Make a payment that returns back to the site with pending status.

Proposed resolution

Either use RedirectResponse::send() or a while()/sleep() that waits for status change.

🐛 Bug report
Status

Active

Version

1.0

Component

Recurring

Created by

🇯🇴Jordan mhawwari

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024