better_spree_paypal_express
better_spree_paypal_express copied to clipboard
JS Var not found: SpreePaypalExpress.paymentMethodID = "n"
trafficstars
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.
Hi, I get the same
Same here. Uncaught ReferenceError: SpreePaypalExpress is not defined
Fixed
window.addEventListener('DOMContentLoaded', function() {
SpreePaypalExpress.paymentMethodID = "<%= payment_method.id %>"
})