From: Andrew Engelbrecht <andrew@fsf.org>
Date: Fri, 30 Nov 2018 22:49:47 +0000 (-0500)
Subject: add country code to TC billing info
X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=refs%2Fheads%2Flive;p=trustcommerce.git

add country code to TC billing info

sending this info with the zip code should help us to process
international orders.

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

diff --git a/CRM/Core/Payment/TrustCommerce.php b/CRM/Core/Payment/TrustCommerce.php
index 1ee3ad8..e119d2c 100644
--- a/CRM/Core/Payment/TrustCommerce.php
+++ b/CRM/Core/Payment/TrustCommerce.php
@@ -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');