lib/tres_delta/gateway.rb in tres_delta-0.1.0 vs lib/tres_delta/gateway.rb in tres_delta-0.1.1
- old
+ new
@@ -51,10 +51,10 @@
'cc:CardAccountNumber' => credit_card.number,
'cc:ExpirationMonth' => credit_card.expiration_month,
'cc:ExpirationYear' => credit_card.expiration_year,
'NameOnCard' => credit_card.name,
'CardSecurityCode' => credit_card.security_code,
- 'CardSecurityCodeIndicator' => credit_card.security_code.nil? ? 'None' : 'Provided'
+ 'CardSecurityCodeIndicator' => credit_card.has_security_code? ? 'Provided' : 'None'
}
end
def billing_address_params(billing_address)
{