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

JS Var not found: SpreePaypalExpress.paymentMethodID = "n" #132

Open
peterfealey opened this issue Nov 18, 2014 · 3 comments
Open

JS Var not found: SpreePaypalExpress.paymentMethodID = "n" #132

peterfealey opened this issue Nov 18, 2014 · 3 comments

Comments

@peterfealey
Copy link

Ok, so I'm still struggling a little with this gem.

My browser console is throwing an error at checkout.

SpreePaypalExpress.paymentMethodID = "2"  

Variable not found. I think this is possibly affecting the 'Save and Continue' button not hiding when PayPal is selected.

@paras-ziggletech
Copy link

Hi,
I get the same

@LucasKuhn
Copy link

Same here.
Uncaught ReferenceError: SpreePaypalExpress is not defined

@seadfeng
Copy link

Fixed

window.addEventListener('DOMContentLoaded', function() {
  SpreePaypalExpress.paymentMethodID = "<%= payment_method.id %>"  
}) 

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

4 participants