Superflous API call, adding sth. to the cart
K-Duke opened this issue · 1 comments
K-Duke commented
Invoking an ajax call to add articles to the cart using the request-uri "checkout/addArticle/sAdd/ARTICLENUMBER" results in the plugin calling executing onCheckoutConfirm.
This is due to the only cancel condition depending on sTargetAction which is not set in this circumstance.
Therefore adding article to the users shopping cart (action == "addArticle") is unnecessarily long. It should be checked if the actual action is "confirm" as well before issuing any API calls to Paymill.
This is on line 122 of Bootstrap.php