I am having the same issue, although my php version is 7.0.32 .
Code: Select all
Uncaught ReferenceError: braintree is not defined
at Object.success (<anonymous>:37:5)
at u (jquery-3.3.1.min.js:2)
at Object.fireWith [as resolveWith] (jquery-3.3.1.min.js:2)
at k (jquery-3.3.1.min.js:2)
at HTMLScriptElement.n (jquery-3.3.1.min.js:2)
at HTMLScriptElement.dispatch (jquery-3.3.1.min.js:2)
at HTMLScriptElement.y.handle (jquery-3.3.1.min.js:2)
This points to :
Code: Select all
$.getScript('https://js.braintreegateway.com/web/3.6.3/js/client.min.js', function() {
$.getScript('https://js.braintreegateway.com/web/3.6.3/js/hosted-fields.min.js');
$.getScript('https://js.braintreegateway.com/web/3.6.3/js/data-collector.min.js');
braintree.client.create({
authorization: 'XXXX'
}, function (client_error, braintree_client) {
console.log("Create Client");
if (client_error) {
console.error(client_error);
return;
}
client_instance = braintree_client;
braintree.hostedFields.create({
client: braintree_client,
styles: "{\n\t\t 'input': { 'font-size': '12px', 'font-family': 'Source Sans Pro, sans-serif', 'color': '#7A8494' },\n\t\t 'input.invalid': { 'color': 'red' },\n\t\t 'input.valid': { 'color': 'green' }\n\t \t}",
fields: {
number: {
selector: '#input-card-number',
placeholder: '1111 1111 1111 1111'
},
expirationMonth: {
selector: '#input-card-expiration-month',
placeholder: 'Month',
select: true
},
expirationYear: {
selector: '#input-card-expiration-year',
placeholder: 'Year',
select: true
},
cvv: {
selector: '#input-card-cvv',
placeholder: 'CVV2',
type: "password"
}
}
}, hostedCallback);
braintree.dataCollector.create({
client: braintree_client,
kount: true,
paypal: true
}, dataCollectorCallback);
});
});
I have refreshed cache and modifications , uninstalled the Paypal Express Checkout extension, uninstalled and reinstalled the PayPal powered by Braintree extension.