solidus_gateway icon indicating copy to clipboard operation
solidus_gateway copied to clipboard

Error due to spree/api/payments/source_views

Open sechix opened this issue 7 years ago • 3 comments

Steps to reproduce Iam getting error in orders that not load shipment and line items, I realized debugging that gets error because doesn't exist _stripe.json.jbuilder in spree/api/payments/source_views

image

This file 'sources_views' has been created 1 month ago in solidus master.

System configuration Solidus master last version, solidus_stripe

sechix avatar May 02 '18 16:05 sechix

Same error using solidus_paypal_braintree with solidus 2.6.0rc1

@sechix Did you find a workaround? Thanks!

octave avatar May 14 '18 07:05 octave

Yes, It works for me now with this workaround: I created '_stripe.json.jbuilder' in spree/api/payments/source_views with the same code ,

attrs = [:id, :month, :year, :cc_type, :last_digits, :name] if @current_user_roles.include?("admin") attrs += [:gateway_customer_profile_id, :gateway_payment_profile_id] end

json.(payment_source, *attrs)

Create the same withe braintree instead of stripe

sechix avatar May 15 '18 13:05 sechix

Thanks @sechix! Works fine now 👍

octave avatar May 15 '18 17:05 octave