supplemental_address_1 and supplemental_address_2 fields not copied to GoCardless
Created by: TomCrawshaw
Most of our addresses use data in supplemental_address_1 and supplemental_address_2 fields (e.g. a road name, village etc), and this should be copied across to GoCardless so the complete address is held there (although not necessary for the DD to go through). Could a patch be applied to do this in CRM/Core/Payment/GoCardless.php:
Line 353: elseif (preg_match('/^(street_address|supplemental_address_1|supplemental_address_2|city|postal_code|country|state_province)-(\d|\w+)+$/', $civi_prop, $matches)) {
Line 396 et seq: if (isset($_['supplemental_address_1'])) { $customer['address_line1'] .= ", " . $_['supplemental_address_1']; } if (isset($_['supplemental_address_2'])) { $customer['address_line2'] = $_['supplemental_address_2']; }
Thanks.