I'm loading the JS SDK using the following url: https://www.paypal.com/sdk/js?client-id=[my-id]&components=buttons&disable-funding=credit,card Then, when I try to initialize the button: window.paypal.Buttons() ...an error is thrown: "Cannot read property 'eligible' of undefined" If I follow the PayPal source code, the error comes from this part of their code: Object({
paypal: Object({
eligible: !0
}),
card: Object({
eligible: !0,
branded: !0,
vendors: Object({
visa: Object({
eligible: !0
}),
mastercard: Object({
eligible: !0
}),
amex: Object({
eligible: !0
})
})
})
}).venmo.eligible So, it appears that the PayPal SDK is creating an anonymous object without a "venmo" property, but then tries to access it. The funny thing is that if I load the SDK with debug=true in the URL, then the error doesn't happen at all.
... View more