jwa64orgau
Forum Replies Created
-
Hi James, Thanks for your help.
If I change order status to Pending Payment, I do get the popup for payment, so progress, yay. However, the payment fails.
I’m using Stripe in test mode and all payments on the front end are being ‘processed’ normally. I’ve tried different cards (visa, mastercard, amex)and always the same result. Browsers: Chrome and Edge.
What happens in detail:
Click Collect Payment button
Get Collect Payment popup box with order total. Available Gateways = Credit Card (Stripe).
Fill in card details
Click Charge Card
Get additional popup ‘Are you sure you want to process this charge? This will charge the customer etc’.
Click OK.
Very short processing, then –
Get another popup, ‘Please enter your card details to make a payment. Developers: Please make sure that you are including jQuery and there are no JavaScript errors on the page.’
Check card details and click OK again.
Get another popup box, ‘Are you sure you want to process this charge?’
Click OK.
Processing, slightly longer delay –
Get popup box, ‘payment did not go through.’
Admin receives Failed Payment notification.
Customer receives no notification.Hope that helps ??
Chrome console
load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:9 JQMIGRATE: Migrate is installed, version 1.4.1
widgets.wp.com/notifications/?jetpack=true&v=beta-r158728-wpcom-2-ga8fedbc&locale=en-au#https://xxxxx.org.au/wp-admin/post.php?post=160&action=edit:1 Uncaught SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at XMLHttpRequest.r.onreadystatechange (build.min.js:2)
load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:70 Uncaught TypeError: Cannot read property ‘replace’ of undefined
at Function.m.template (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:70)
at load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:414
at n.render (backbone-modal.min.js:1)
at n.initialize (backbone-modal.min.js:1)
at n.e.View (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:412)
at new n (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:412)
at new e.WCBackboneModal (backbone-modal.min.js:1)
at HTMLButtonElement.<anonymous> (backbone-modal.min.js:1)
at Function.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:2)
at a.fn.init.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:2)
load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:70 Uncaught TypeError: Cannot read property ‘replace’ of undefined
at Function.m.template (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:70)
at load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:414
at n.render (backbone-modal.min.js:1)
at n.initialize (backbone-modal.min.js:1)
at n.e.View (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:412)
at new n (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:412)
at new e.WCBackboneModal (backbone-modal.min.js:1)
at HTMLButtonElement.<anonymous> (backbone-modal.min.js:1)
at Function.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:2)
at a.fn.init.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:2)
load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:70 Uncaught TypeError: Cannot read property ‘replace’ of undefined
at Function.m.template (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:70)
at load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:414
at n.render (backbone-modal.min.js:1)
at n.initialize (backbone-modal.min.js:1)
at n.e.View (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:412)
at new n (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:412)
at new e.WCBackboneModal (backbone-modal.min.js:1)
at HTMLButtonElement.<anonymous> (backbone-modal.min.js:1)
at Function.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:2)
at a.fn.init.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:2)
m.template @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:70
(anonymous) @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:414
render @ backbone-modal.min.js:1
initialize @ backbone-modal.min.js:1
e.View @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:412
n @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:412
e.WCBackboneModal @ backbone-modal.min.js:1
(anonymous) @ backbone-modal.min.js:1
each @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:2
each @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:2
e.fn.WCBackboneModal @ backbone-modal.min.js:1
(anonymous) @ scripts.js?ver=1.0.0:31
dispatch @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:3
r.handle @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:3Hi James,
Here’s the debug log:
[17-Jul-2017 09:31:49 UTC] WP_Community_Events::maybe_log_events_response: Valid response received. Details: {“api_url”:”https:\/\/api.www.ads-software.com\/events\/1.0\/”,”request_args”:{“body”:{“number”:5,”ip”:”xxx.xxx.xxx.x”,”locale”:”en_AU”,”timezone”:”Australia\/Sydney”}},”response_code”:200,”response_body”:{“location”:{“ip”:”xxx.xxx.xxx.x”},”events”:”3 events trimmed.”}}
[17-Jul-2017 09:31:58 UTC] PHP Notice: Undefined variable: thepostid in /home/xxxxxxxx/public_html/xxxxx.org.au/wp-content/plugins/manual-credit-card-processing-for-woocommerce/classes/MWC_CC_Processing.php on line 220
[17-Jul-2017 09:31:58 UTC] PHP Notice: Undefined variable: theorder in /home/xxxxxxxx/public_html/xxxxx.org.au/wp-content/plugins/manual-credit-card-processing-for-woocommerce/classes/MWC_CC_Processing.php on line 224
[17-Jul-2017 09:31:58 UTC] PHP Notice: Undefined index: wc-ajax in /home/xxxxxxxx/public_html/xxxxx.org.au/wp-content/plugins/manual-credit-card-processing-for-woocommerce/templates/html-order-manual-payment.php on line 7
[17-Jul-2017 09:32:00 UTC] PHP Notice: Undefined variable: thepostid in /home/xxxxxxxx/public_html/xxxxx.org.au/wp-content/plugins/manual-credit-card-processing-for-woocommerce/classes/MWC_CC_Processing.php on line 220
[17-Jul-2017 09:32:00 UTC] PHP Notice: Undefined variable: theorder in /home/xxxxxxxx/public_html/xxxxx.org.au/wp-content/plugins/manual-credit-card-processing-for-woocommerce/classes/MWC_CC_Processing.php on line 224
This particular order is on hold waiting for payment. Payment gateway is Stripe.
Thanks