• Resolved jwa64orgau

    (@jwa64orgau)


    I’ve installed and activated the (free) plugin but it doesn’t seem to be working.

    If I go to an order and click the ‘collect payment’ button nothing happens.

    If I click the ‘customer payment page’ link I get the message, “This order cannot be paid for. Please contact us if you need assistance.”

    I am using the latest versions of WooCommerce and WordPress, I have turned off popup blockers and tried on both Chrome and Edge.

    I’d really appreciate it if you could give me a fix/advice.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author James

    (@volcommky)

    Hey @jwa64orgau

    Can you check your console log and see if there are any issues with the JavaScript?

    Also could you provide the current order status as well as the payment gateway you are using?

    Sorry for the delayed response!

    • This reply was modified 7 years, 8 months ago by James.
    Thread Starter jwa64orgau

    (@jwa64orgau)

    Hi 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.remarpro.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

    Thread Starter jwa64orgau

    (@jwa64orgau)

    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…:3

    Plugin Author James

    (@volcommky)

    I did some testing and found that the buttons should not be doing anything at the moment, orders cannot be processed while they are “On Hold

    This is something that is in place by default by WooCommerce.
    The plugin checks if $order->needs_payment() and if it does it will let you proceed. Otherwise it won’t let you move forward, the Manual Payments plugin processing was preventing it from letting you move forward, but the buttons were still being displayed.

    I am pushing this fix up today, thank you for your findings.

    If you change the order status to Pending Payment, does the plugin work for you as expected?

    Thread Starter jwa64orgau

    (@jwa64orgau)

    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 ??

    Plugin Author James

    (@volcommky)

    Thanks for the feedback, would you happen to know if you are using hosted fields of some sort?

    The plugin has not yet been written to handle functionality with hosted fields, for example Auth.net Accept.js and Braintree hosted fields

    Plugin Author WooDev

    (@woodev)

    Marking resolved

    I have the order set to “pending payment” and it still shows that order error message, please help?

    Plugin Author WooDev

    (@woodev)

    Are you using hosted fields for the payment gateway?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Manual Credit Card processing not working’ is closed to new replies.