So when I have some products in my shopping cart at cart/view and then click on "checkout" which sends me to cart/checkout then click "Continue to payment details" which sends me to cart/checkout/process I get an error message that says:
"Validation error, please try again. If this error persists, please contact the site administrator. "
If I click on "Continue to payment details" again, I get sent along to the Authorize_net payment screen which will then work fine.
The source of the error seems to be that ec_form_token isn't getting the billing and shipping addresses in its key on cart/checkout because it is trying to read them from edit[], but they haven't seen set yet in edit.
I guess I could code around this myself, but I don't know if there's just something with my site that's set wrong. No one else seems to be reporting this error, so I'm wondering if it's just me.
I could code around these issues easy enough, but I don't know what I'd break.
Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | paypalpro.module.patch | 963 bytes | jeremy |
| #4 | cart.module.patch | 1.15 KB | jeremy |
Comments
Comment #1
syllance commentedi've also seen that problem, but i know matt westgate is working on this recently, so i'll let him finish his work before trying to patch anything.
i've also observed an additionnal issue in cart.module, in cart_checkout_submit. in 4.6, store_transaction_validate_* are called, while they are not in HEAD. and transaction are not keeping trace of the user email (only thing that i could see missing, but there might be other things). the email is added when other transaction operations are used, but it is not at first place. this sounds related to the validation thing that is currently being worked on.
before submitting additionnal issues, it would be nice to know the current status of cart module, as it seems to be currently in active dev :)
Comment #2
matt westgate commentedGuys - I've finished my 'sweeping' changes for cart module and heartily welcome your patches :-)
Comment #3
syllance commentedargh, i knew it :-) let's patch then ... after all, that's a healthy sport :-)
Comment #4
jeremy commentedFor form_token() and form_validate() to work, you have to use a key that doesn't change from page to page. The problem described above is because the 'aid' can change during the checkout process. This patch updates the logic to use the shippable flag, the subtotal and the gross as a key, form items that don't change at this point in the checkout process. Please apply.
Comment #5
jeremy commentedIf you apply that patch, please apply this patch to the paypalpro.module too. (It has to manually set the form_token, as it short-circuits the normal workflow to support PayPal Pro's Express Checkout.) This patch simply updates the paypalpro.module to set the form_token with the new fields.
Comment #6
matt westgate commentedCommitted to HEAD and 4.6. Thanks!
Comment #7
(not verified) commented