spree/spree_gateway — pull request #118 by scottious (2013-11-29 21:36:03+00:00)
Title: New Swipe Gateway

I have the spec test passing and submitting successfully server side, but when trying to use this gateway in the checkout process within Spree I'm running into a bit of brick wall. Any help/guidance would be so appreciated.

When I attempt to use the checkout option in the actual cart I get the error:

That payment method is unsupported. Please choose another one.

Without knowing too much about the spree core all I could find out through debugging is that within source passed to payment_method.supports? on line 8 of :cc_type => nil at the time it is processed. And changing this to a brand allows it to pass successfully pass the "supports?" method.

https://github.com/spree/spree/blob/master/core/app/models/spree/payment/processing.rb?source=cc#L8

Swipe requires the card brand in order to successfully