From 3d04e917eb04784bb40114f5d15448fc7907b35d Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Wed, 18 Jan 2023 20:01:16 +0000 Subject: [PATCH] Paypal (express): Pass participantID to getCancelUrl() if available --- CRM/Core/Payment/PayPalImpl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/Payment/PayPalImpl.php b/CRM/Core/Payment/PayPalImpl.php index 87ed5d31fd..220d4e9a2f 100644 --- a/CRM/Core/Payment/PayPalImpl.php +++ b/CRM/Core/Payment/PayPalImpl.php @@ -255,7 +255,7 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment { $args['desc'] = $params['description'] ?? NULL; $args['invnum'] = $params['invoiceID']; $args['returnURL'] = $this->getReturnSuccessUrl($params['qfKey']); - $args['cancelURL'] = $this->getCancelUrl($params['qfKey'], NULL); + $args['cancelURL'] = $this->getCancelUrl($params['qfKey'], $params['participantID'] ?? NULL); $args['version'] = '56.0'; $args['SOLUTIONTYPE'] = 'Sole'; -- 2.25.1