lib/active_merchant/billing/gateways/pay_secure.rb in activemerchant-1.43.3 vs lib/active_merchant/billing/gateways/pay_secure.rb in activemerchant-1.44.0
- old
+ new
@@ -62,16 +62,9 @@
post[:cardname] = credit_card.name
post[:expiry] = expdate(credit_card)
post[:cvv2] = credit_card.verification_value
end
- def expdate(credit_card)
- year = sprintf("%.4i", credit_card.year)
- month = sprintf("%.2i", credit_card.month)
-
- "#{month}#{year[-2..-1]}"
- end
-
def commit(action, money, parameters)
response = parse( ssl_post(self.live_url, post_data(action, parameters)) )
Response.new(successful?(response), message_from(response), response,
:test => test_response?(response),