Closed mntmn closed 4 years ago
same issue here after updating to solidus 2.5.0.rc1
Same after upgrade to 2.5.0
Did anyone find a workaround for this issue?
the reason for this is explained here https://github.com/solidusio/solidus/issues/2512
in short: the payment source does not provide all attributes needed. my workaround is to set dummies for all those fields needed.
SolidusPaypalBraintree::Source.class_eval do
def name() "Solidus PayPal Braintree" end
def month() nil end
def year() nil end
def card_type() nil end
def cc_type() nil end
def gateway_customer_profile_id() nil end
def gateway_payment_profile_id() nil end
end
but i guess it is fixed in the solidus api master https://github.com/solidusio/solidus/pull/2513/files
@hefan Nice thank you for your help!
@hefan I have a new error now after upgrading to 2.6.0rc1 when viewing an order in the admin:
ActionView::Template::Error (Missing partial spree/api/payments/source_views/_paypal_braintree with {:locale=>[:en], :formats=>[:json], :variants=>[], :handlers=>[:jbuilder]}
Do you know what could be the reason? Thanks!
It seems like the path used to be spree/admin/
instead of spree/api
.
Same error in solidus_gateway
: https://github.com/solidusio/solidus_gateway/issues/81
This has been fixed in a recent change
The first real order just came in in my production shop using solidus_paypal_braintree. But in the admin interface, the "Cart" section of the order does not show any products. The products show up on the "cancel items", though.
The error in the log is
ActionView::Template::Error (undefined method 'month' for #<SolidusPaypalBraintree::Source:0x007fa5b89db808>)
I attached the trace: month-crash.log
Versions: