• Resolved mkdev

    (@mkdev)


    In get this error on checkout:
    notDigits: ‘-16001’ must contain only digits

    It’s on latest wordpress and latest woocommerce and paymill plugins version. Default theme.

    If I help, the errors I get with debbug true:

    Notice: Undefined index: paymill_webhook in /home/nginx/domains/mydomain.com/public/client/wp-content/plugins/paymill/lib/integration/woocommerce.inc.php on line 52 Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/nginx/domains/mydomain.com/public/client/wp-includes/functions.php on line 2998 Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/nginx/domains/mydomain.com/public/client/wp-includes/functions.php on line 2998 Notice: Undefined index: products in /home/nginx/domains/mydomain.com/public/client/wp-content/plugins/paymill/lib/config.inc.php on line 148 Notice: Undefined index: products in /home/nginx/domains/mydomain.com/public/client/wp-content/plugins/paymill/lib/config.inc.php on line 148 Notice: Undefined index: products in /home/nginx/domains/mydomain.com/public/client/wp-content/plugins/paymill/lib/config.inc.php on line 150 Notice: Undefined index: flat_shipping in /home/nginx/domains/mydomain.com/public/client/wp-content/plugins/paymill/lib/config.inc.php on line 173 Notice: Undefined index: flat_shipping in /home/nginx/domains/mydomain.com/public/client/wp-content/plugins/paymill/lib/config.inc.php on line 173 Notice: Undefined index: flat_shipping in /home/nginx/domains/mydomain.com/public/client/wp-content/plugins/paymill/lib/config.inc.php on line 175 Notice: Undefined index: flat_shipping in /home/nginx/domains/mydomain.com/public/client/wp-content/plugins/paymill/lib/config.inc.php on line 182 Notice: Undefined index: flat_shipping in /home/nginx/domains/mydomain.com/public/client/wp-content/plugins/paymill/lib/config.inc.php on line 183 Notice: Undefined index: flat_shipping in /home/nginx/domains/mydomain.com/public/client/wp-content/plugins/paymill/lib/config.inc.php on line 182 Notice: Undefined index: flat_shipping in /home/nginx/domains/mydomain.com/public/client/wp-content/plugins/paymill/lib/config.inc.php on line 183 Notice: Undefined index: flat_shipping in /home/nginx/domains/mydomain.com/public/client/wp-content/plugins/paymill/lib/config.inc.php on line 182 Notice: Undefined index: flat_shipping in /home/nginx/domains/mydomain.com/public/client/wp-content/plugins/paymill/lib/config.inc.php on line 183 Notice: Undefined index: flat_shipping in /home/nginx/domains/mydomain.com/public/client/wp-content/plugins/paymill/lib/config.inc.php on line 182 Notice: Undefined index: flat_shipping in /home/nginx/domains/mydomain.com/public/client/wp-content/plugins/paymill/lib/config.inc.php on line 183 Notice: Undefined index: flat_shipping in /home/nginx/domains/mydomain.com/public/client/wp-content/plugins/paymill/lib/config.inc.php on line 182 Notice: Undefined index: flat_shipping in /home/nginx/domains/mydomain.com/public/client/wp-content/plugins/paymill/lib/config.inc.php on line 183

    https://www.ads-software.com/plugins/paymill/

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author straightvisions GmbH

    (@matthias-reuter)

    Hi,

    unfortunately, I can not reproduce this issue. Could you make a screenshot of your product’s settings?

    Kind regards,

    Matthias

    Thread Starter mkdev

    (@mkdev)

    I forgot to metion that I use it with subscription product from woo.

    Product setting is basic: simple subscription; virtual product;

    Plugin Author straightvisions GmbH

    (@matthias-reuter)

    Did you set any negative value on your subscription settings? I’ve tested subscriptions and still can’t reproduce this issue ??

    I am facing the same problem. I have WordPress installed locally and am testing the Paymill plugin. I have XDebug installed and Eclipse and configured such that I can step through the PHP code. Anything I should look at to help debug this? I am not yet an experienced PHP developer, but more than willing to help out!

    One curious bit of information: My purchases actually went through, despite this error! I can see them in the Paymill dashboard.

    Thread Starter mkdev

    (@mkdev)

    No. There’s no negative value in the settings.

    stippi

    (@stippi)

    BTW, what is also very disturbing is that all my test Subscription purchases actually appeared in the Paymill backend! So this error must happen after contacting the Paymill server. IMHO, if the payment actually went through, the plugin should /never/ display any error for anything and suggest to the user that nothing indeed happened. Users will just try again and then set up multiple subscriptions before giving up.

    Thread Starter mkdev

    (@mkdev)

    After upgrading to 3.7.1 the error disappeared.

    Plugin Author straightvisions GmbH

    (@matthias-reuter)

    big thx for the notice about that fix with upgrading! So I’ll stop investigating until the issue occurs again.

    Thread Starter mkdev

    (@mkdev)

    Ahhh. It seems it’s not gone forever.

    But I think I know how you can reproduce it.
    The error seems to occur only if I create a new user.
    When I checkout with admin user it’s ok.

    So set up Woo as this:
    Allow registration on the checkout page: yes
    Register using the email address for the username: yes

    Also the error now is “-16015” instead of ‘-16001’.

    stippi

    (@stippi)

    I was already using 3.7.1 when I reported seeing the error. I am also not a fan of “oh, it magically went away, let’s forget it”. The problem needs to be fully understood. We are talking about a product with which real users pay real money.

    Plugin Author straightvisions GmbH

    (@matthias-reuter)

    Hi Stippi,

    as I’m currently working on a totally rewritten payment process, this issue could be fixed automaticly on next release.

    I’ll check the issue as I’ve got new information about this bug from mkdev which could make it reproducable.

    Kind regards,

    Matthias

    stippi

    (@stippi)

    Ok, thank you very much for keeping me in the loop! When you design the new payment process, try to think of possible points of failure and how to minimize them. IMHO, after the Paymill server has been successfully contacted, it should not be possible for anything to go wrong anymore, except perhaps for power outage or server reboot. For example, the database entries for the order should be made preliminarily, so that they already exist before contacting Paymill. And if contacting Paymill failed, there should be a roll-back. Placing the order should work like an all or nothing transaction. I don’t know if that’s even possible in the Woocommerce workflow of hooks that all sorts of plug-ins can insert themselves… but one can dream. Alternatively, if points of failure after placing the order at Paymill can not be eliminated, perhaps there is an API for revoking the order there? That should then be incorporated into a general roll-back flow.

    In short: If the order technically went through, the user should never see an error, or if that is not possible, the payment needs to be cancelled if an error happens after it is placed at Paymill.

    Plugin Author straightvisions GmbH

    (@matthias-reuter)

    Hi Stippi,

    thank you for your feedback ?? I’m happy that the plugin is growing and get’s more and more powerusers. I’ll take care that the plugin will not confirm any order except there is a 100% guarantee for successful payment.

    I’m looking forward making the payment process more robust.

    Kind regards,

    Matthias

    Plugin Author straightvisions GmbH

    (@matthias-reuter)

    Hi,

    the issue has been solved with v1.5.1

    Kind regards,

    Matthias

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘notDigits: '-16001' must contain only digits’ is closed to new replies.