Skip to content
Snippets Groups Projects
Commit 16ebd8c9 authored by mattwire's avatar mattwire
Browse files

Fix 'Multiple event participant registration when 3DSecure validation is required

parent 106e7deb
Branches
Tags
No related merge requests found
......@@ -28,6 +28,13 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
*/
public $stripeClient;
/**
* Custom properties used by this payment processor
*
* @var string[]
*/
private $customProperties = ['paymentIntentID', 'paymentMethodID', 'setupIntentID'];
/**
* Constructor
*
......@@ -484,9 +491,10 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
* @return array
*/
public function doPreApproval(&$params) {
$preApprovalParams['paymentIntentID'] = CRM_Utils_Request::retrieve('paymentIntentID', 'String');
$preApprovalParams['paymentMethodID'] = CRM_Utils_Request::retrieve('paymentMethodID', 'String');
return ['pre_approval_parameters' => $preApprovalParams];
foreach ($this->customProperties as $property) {
$preApprovalParams[$property] = CRM_Utils_Request::retrieveValue($property, 'String', NULL, FALSE, 'POST');
}
return ['pre_approval_parameters' => $preApprovalParams ?? []];
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment