From 048d49dcfc126f89fb1c611de49f71d2b190eb3a Mon Sep 17 00:00:00 2001 From: eileenmcnaugton Date: Mon, 28 Sep 2015 22:06:16 +1300 Subject: [PATCH] CRM -17256 fix address field validatoin for payment processors https://github.com/civicrm/civicrm-core/pull/6758 Here is the patch. Am working on something else at this stage but it seems to make the form load ok --- CRM/Core/Payment/Form.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Core/Payment/Form.php b/CRM/Core/Payment/Form.php index f22423092b..73a816cf97 100644 --- a/CRM/Core/Payment/Form.php +++ b/CRM/Core/Payment/Form.php @@ -305,7 +305,10 @@ class CRM_Core_Payment_Form { */ public static function getBillingAddressMetadata($paymentProcessor, $billingLocationID) { $paymentProcessorObject = Civi\Payment\System::singleton()->getByProcessor($paymentProcessor); - return $paymentProcessorObject->getBillingAddressFieldsMetadata($billingLocationID); + return array_intersect_key( + $paymentProcessorObject->getBillingAddressFieldsMetadata($billingLocationID), + array_flip (self::getBillingAddressFields($paymentProcessor, $billingLocationID)) + ); } /** -- 2.25.1