add country code to TC billing info dev live
authorAndrew Engelbrecht <andrew@fsf.org>
Fri, 30 Nov 2018 22:49:47 +0000 (17:49 -0500)
committerAndrew Engelbrecht <andrew@fsf.org>
Fri, 30 Nov 2018 22:56:37 +0000 (17:56 -0500)
sending this info with the zip code should help us to process
international orders.

https://rt.gnu.org/Ticket/Display.html?id=1340326

CRM/Core/Payment/TrustCommerce.php

index 1ee3ad831b2e96d59ec49de2dad4c681fbbddf53..e119d2c77631f34b32ba9fc89196bc3906de787d 100644 (file)
@@ -541,6 +541,7 @@ class CRM_Core_Payment_TrustCommerce extends CRM_Core_Payment {
 
     $fields['address1'] = $this->_getParam('street_address');
     $fields['zip'] = $this->_getParam('postal_code');
+    $fields['country'] = $this->_getParam('country');
 
     $fields['name'] = $this->_getParam('billing_first_name') . ' ' . $this->_getParam('billing_last_name');