better_spree_paypal_express icon indicating copy to clipboard operation
better_spree_paypal_express copied to clipboard

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

Open peterfealey opened this issue 11 years ago • 3 comments
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.

peterfealey avatar Nov 18 '14 16:11 peterfealey

Hi, I get the same

paras-ziggletech avatar Aug 26 '19 02:08 paras-ziggletech

Same here. Uncaught ReferenceError: SpreePaypalExpress is not defined

LucasKuhn avatar Nov 13 '19 16:11 LucasKuhn

Fixed

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

seadfeng avatar Oct 15 '21 09:10 seadfeng