Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no method error when check out as a guest #110

Open
gogo52cn opened this issue Jul 9, 2014 · 1 comment
Open

no method error when check out as a guest #110

gogo52cn opened this issue Jul 9, 2014 · 1 comment

Comments

@gogo52cn
Copy link

gogo52cn commented Jul 9, 2014

Hi developer,

I found an issue with the 2.3 stable version. if i check out and pay as a guest, it will complain a no method error in the paypal controller: order.token.

I did a quick fix as below but I am sure it is not the best solution.

def completion_route(order)
begin
  order_path(order, :token => order.token)
rescue
  order_path(order, :token => order.guest_token)
end
end

Excuse me, my writing about this issue isn't very professional and I am not a professional programmer but I hope this information is helpful.

Thank you developer for creating this great tool!!!!

David

@radar
Copy link
Contributor

radar commented Jul 10, 2014

Hi @gogo52cn. You're right. This call should be order.guest_token. Could you please submit a pull request which changes the call from order.token to order.guest_token?

Thanks!

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

No branches or pull requests

2 participants