From 279efb4243ecee275203c7ac0351bcfb757a2145 Mon Sep 17 00:00:00 2001 From: Tom Hoen Date: Tue, 24 Sep 2013 10:09:29 -0400 Subject: [PATCH] Spreedly: pass country with other address fields Closes #854. --- CHANGELOG | 1 + lib/active_merchant/billing/gateways/spreedly_core.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 1f5625b8e21..38b1e39967f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,7 @@ = ActiveMerchant CHANGELOG * Moneris: Add optional (off by default) verification_value support [duff] +* Spreedly: Pass country with other address fields [hoenth] == Version 1.38.1 (September 16, 2013) diff --git a/lib/active_merchant/billing/gateways/spreedly_core.rb b/lib/active_merchant/billing/gateways/spreedly_core.rb index 1a07ab0620a..67a7be3f110 100644 --- a/lib/active_merchant/billing/gateways/spreedly_core.rb +++ b/lib/active_merchant/billing/gateways/spreedly_core.rb @@ -147,6 +147,7 @@ def add_credit_card(doc, credit_card, options) doc.city(options[:billing_address].try(:[], :city)) doc.state(options[:billing_address].try(:[], :state)) doc.zip(options[:billing_address].try(:[], :zip)) + doc.country(options[:billing_address].try(:[], :country)) end end