I've been testing the latest version of the module from Github, and have identified a bug that causes PxPost to reject valid credit card details.

If you rearrange the checkout panes so that shipping and payment are on the same page (i.e. the first page), then the transaction sometimes fails. The issue seems to lie with the shipping calculator.

Specifically, the shipping calculator doesn't always automatically recalculate when you enter your address details. This depends on the users's behaviour (which fields they click in, and in which order), but seems random when you first encounter it. In this scenario, if you try to enter your credit card details and click to continue to the next page of the checkout, PxPost doesn't have a valid order value to work on, and rejects your credit card. You then see a warning to this effect, and you can't continue.

I have found a work around to this problem in this specific scenario by having a Terms and Conditions checkbox on the checkout page. When I moved the shipping calculator below this pane, I found that checking the box forced the shipping to recalculate, and my credit card was accepted and I was able to proceed to the next stage of checkout (and the order eventually went through successfully).

A better solution might be to force the recalculation when you click/tap into the first PxPost field? Or perhaps the patches on this issue might have the solution:

https://www.drupal.org/node/1287124

Comments

xurizaemon’s picture

Status: Active » Closed (works as designed)

Are you able to reproduce this behaviour with other onsite CC processors? If you can verify this is PxPost specific (as opposed to Commerce) then please re-open.