Error on payment at checkout
-
We recently setup payment with Braintree Payments plugin but unable to successfully complete a test purchase. At checkout, we get the following error:
Cannot read properties of null (reading ‘verifyCard’)
The logs appear to be sending an empty request but I can’t see why. The following is an example of one of the log entries.
2024-11-08T21:03:48+00:00 Notice Request environment: production uri: generate data: Array ( ) duration: 0.10464s CONTEXT: {“_legacy”:true}
2024-11-08T21:03:48+00:00 Notice Response data: eyJ2ZXJzaW9uIjoyLCJhdXRob3JpemF0aW9uRmluZ2VycHJpbnQiOiJleUowZVhBaU9pSktWMVFpTENKaGJHY2lPaUpGVXpJMU5pSXNJbXRwWkNJNklqSXdNVGd3TkRJMk1UWXRjSEp2WkhWamRHbHZiaUlzSW1semN5STZJbWgwZEhCek9pOHZZWEJwTG1KeVlXbHVkSEpsWldkaGRHVjNZWGt1WTI5dEluMC5leUpsZUhBaU9qRTNNekV4T0RZeU1qZ3NJbXAwYVNJNkltWXlOR0kyWm1VMExURmlOMlV0TkdWaVpDMWlZV1EyTFRBeU5tUXlOekpqTnpNMk9DSXNJbk4xWWlJNkltY3liWEI1T0RKeWNIUTFNbWh3TlhJaUxDSnBjM01pT2lKb2RIUndjem92TDJGd2FTNWljbUZwYm5SeVpXVm5ZWFJsZDJGNUxtTnZiU0lzSW0xbGNtTm9ZVzUwSWpwN0luQjFZbXhwWTE5cFpDSTZJbWN5YlhCNU9ESnljSFExTW1od05YSWlMQ0oyWlhKcFpubGZZMkZ5WkY5aWVWOWtaV1poZFd4MElqcDBjblZsZlN3aWNtbG5hSFJ6SWpwYkltMWhibUZuWlY5MllYVnNkQ0pkTENKelkyOXdaU0k2V3lKQ2NtRnBiblJ5WldVNlZtRjFiSFFpWFN3aWIzQjBhVzl1Y3lJNmUzMTkuYlpBLXAwVkdnRFE3aUdiXzlRNTIzZFNTczRFOXZLT29XLUZDTHVVOEJjY1BVdG5vaXBrc2Y0OG5jYjhXdThwVmJ3TEVBRlgydVdYbHlMbHVGS3pvbXciLCJjb25maWdVcmwiOiJodHRwczovL2FwaS5icmFpbnRyZWVnYXRld2F5LmNvbTo0NDMvbWVyY2hhbnRzL2cybXB5ODJycHQ1MmhwNXIvY2xpZW50X2FwaS92MS9jb25maWd1cmF0aW9uIiwiZ3JhcGhRTCI6eyJ1cmwiOiJodHRwczovL3BheW1lbnRzLmJyYWludHJlZS1hcGkuY29tL2dyYXBocWwiLCJkYXRlIjoiMjAxOC0wNS0wOCIsImZlYXR1cmVzIjpbInRva2VuaXplX2NyZWRpdF9jYXJkcyJdfSwiY2xpZW50QXBpVXJsIjoiaHR0cHM6Ly9hcGkuYnJhaW50cmVlZ2F0ZXdheS5jb206NDQzL21lcmNoYW50cy9nMm1weTgycnB0NTJocDVyL2NsaWVudF9hcGkiLCJlbnZpcm9ubWVudCI6InByb2R1Y3Rpb24iLCJtZXJjaGFudElkIjoiZzJtcHk4MnJwdDUyaHA1ciIsImFzc2V0c1VybCI6Imh0dHBzOi8vYXNzZXRzLmJyYWludHJlZWdhdGV3YXkuY29tIiwiYXV0aFVybCI6Imh0dHBzOi8vYXV0aC52ZW5tby5jb20iLCJ2ZW5tbyI6Im9mZiIsImNoYWxsZW5nZXMiOlsicG9zdGFsX2NvZGUiXSwidGhyZWVEU2VjdXJlRW5hYmxlZCI6ZmFsc2UsImFuYWx5dGljcyI6eyJ1cmwiOiJodHRwczovL2NsaWVudC1hbmFseXRpY3MuYnJhaW50cmVlZ2F0ZXdheS5jb20vZzJtcHk4MnJwdDUyaHA1ciJ9LCJwYXlwYWxFbmFibGVkIjpmYWxzZX0= CONTEXT: {“_legacy”:true}
I’m on the latest version of WordPress (6.6.2), Woocomerce (9.3.3) and Braintree for WooCommerce Payment Gateway (3.2.2). Payments are working with the default theme (Twenty Twenty-Four), so the issue does appear to be related to my custom theme but I’m not sure how. I’m not altering the checkout in any way. I can apply a fix for this theme if I can find what’s causing the issue.
I’ve tied clearing the website caches without any luck, including disabling the cache plugins. I’ve also tried disabling several components of the theme to narrow my focus but nothing makes a difference.
I’m hoping you can help point me in the right direction.
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.