Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Missing partial spree/checkout/existing_payment/_paypal_braintree #135

Closed
afdev82 opened this issue Nov 14, 2017 · 4 comments · Fixed by #175
Closed

Missing partial spree/checkout/existing_payment/_paypal_braintree #135

afdev82 opened this issue Nov 14, 2017 · 4 comments · Fixed by #175

Comments

@afdev82
Copy link
Contributor

afdev82 commented Nov 14, 2017

I get this if I try to order again.

Latest gem and solidus v2.4.0

@afdev82
Copy link
Contributor Author

afdev82 commented Nov 14, 2017

I solved adding a empty partial in spree/checkout/existing_payment/_paypal_braintree.html.erb.
I don't know if there is the possibility to show the last 4 digits of the credit card or the paypal account that was used before.

@mntmn
Copy link

mntmn commented Mar 11, 2018

Also just ran into this while testing checkout.

@tonydefaria
Copy link

I'm also getting this. However @afdev82 suggestion seems to "sort out" the issue.
I would also like to know if there is any possibility to show the last 4 digits of the last used credit card or paypal account.

@afdev82
Copy link
Contributor Author

afdev82 commented Apr 11, 2018

I managed to get the information using the response object from Braintree. This data is not stored in our database, but we have a token for each payment, in order to ask Braintree about that information:

if payment.source.is_a?(SolidusPaypalBraintree::Source)
  if payment.source.credit_card?  
    payment.source.last_digits
  else
    ...
  end
end

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants