lib/active_merchant/billing/gateways/cyber_source.rb in activemerchant-1.61.0 vs lib/active_merchant/billing/gateways/cyber_source.rb in activemerchant-1.62.0
- old
+ new
@@ -651,10 +651,10 @@
xml.tag!'pinlessDebitValidateService', {'run' => 'true'}
end
def lookup_country_code(country_field)
country_code = Country.find(country_field) rescue nil
- country_code.code(:alpha2)
+ country_code.code(:alpha2) if country_code
end
# Where we actually build the full SOAP request using builder
def build_request(body, options)
xml = Builder::XmlMarkup.new :indent => 2