JavaScript fail stopping credit card fields from displaying
-
I’m getting following error in the debug console:
`</p> <p class=””>Uncaught TypeError: window.wcpayAssets is undefined</p> <p class=””><anonymous> https://cdn.rangehoodfilter.com/wp-content/plugins/woocommerce-payments/dist/payment-request.js?ver=7.1.0:1</p> <p class=””><anonymous> https://cdn.rangehoodfilter.com/wp-content/plugins/woocommerce-payments/dist/payment-request.js?ver=7.1.0:1</p> <p class=””>payment-request.js:1:17353</p> <p class=””><anonymous> https://cdn.rangehoodfilter.com/wp-content/plugins/woocommerce-payments/dist/payment-request.js?ver=7.1.0:1</p> <p class=””><anonymous> https://cdn.rangehoodfilter.com/wp-content/plugins/woocommerce-payments/dist/payment-request.js?ver=7.1.0:1
<br /><br />In the JavaScript, this relates to:<br />replace(/\/[^\/]+$/,"/"),n.p=e})(),n.p=window.wcpayAssets.url,(()=>{"use strict";const e=window.wp.i18n,t=window.wp.hooks,i=window.lodash,r=e=>{let t=null;if("undefined"!=typeof wcpayConfig)t=wcpayConfig;else if("undefined"!=typeof wcpay_upe_config)t=wcpay_upe_config;else{if("undefined"==typeof wc)return null;<br /><br /><anonymous> https://cdn.rangehoodfilter.com/wp-content/plugins/woocommerce-payments/dist/payment-request.js?ver=7.1.0:1
<br><br>In the JavaScript, this relates to:<br>replace(/\/[^\/]+$/,”/”),n.p=e})(),n.p=window.wcpayAssets.url,(()=>{“use strict”;const e=window.wp.i18n,t=window.wp.hooks,i=window.lodash,r=e=>{let t=null;if(“undefined”!=typeof wcpayConfig)t=wcpayConfig;else if(“undefined”!=typeof wcpay_upe_config)t=wcpay_upe_config;else{if(“undefined”==typeof wc)return null;<br><br>This is occurring across multiple websites all running WordPress themes between TwentyTwenty and TwentyTwentyTwo.<br><br>Thank you!</p>The page I need help with: [log in to see the link]
- The topic ‘JavaScript fail stopping credit card fields from displaying’ is closed to new replies.