spree_gateway icon indicating copy to clipboard operation
spree_gateway copied to clipboard

revisiting customer with saved CC data causes additional "invalid" payment

Open cshapeshifter opened this issue 9 years ago • 1 comments

We're using 3.0-stable and have two payment options: credit card through braintree and check. When a user orders something for the first time and enters their credit card info, everything works fine. The order is processed and its payments show up as follows. All is good.

2015-11-14-200939_631x564_scrot

However, when the customer returns, they will find the following choice (use saved card or choose new payment method) in the front-end:

2015-11-14-201030_647x346_scrot

No matter what they pick (whether they pay with the same card, a new card, or using a different method, i.e. check), the process again finishes without errors, but in the backend, the order's payments look like this:

2015-11-14-201137_626x628_scrot

These "invalid" payments can't even be deleted. Trying to flashes an error "Braintree::NotFoundError"

Gems in use:

gem 'spree', github: 'spree/spree', branch: '3-0-stable'
gem 'spree_gateway', github: 'spree/spree_gateway', branch: '3-0-stable'
gem 'braintree'
gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '3-0-stable'

gem 'spree_i18n', github: 'spree-contrib/spree_i18n', branch: '3-0-stable'
gem 'spree_mail_settings', github: 'spree-contrib/spree_mail_settings', branch: '3-0-stable'
gem "spree_product_zoom", :git => "git://github.com/spree/spree_product_zoom.git", branch: '3-0-stable'
gem 'spree_static_content', github: 'spree-contrib/spree_static_content', branch: '3-0-stable'
gem 'spree_print_invoice', github: 'spree-contrib/spree_print_invoice', branch: '3-0-stable'

cshapeshifter avatar Nov 14 '15 19:11 cshapeshifter

This is happening with me too. Is there a solution/fix for this?

mobentec avatar May 23 '17 03:05 mobentec