| Project: | UC Test Payment |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | fixed |
Jump to:
I'm testing our ubercart module and I can't seem to get to the review page. Every time I hit the check out button and the button of the page I get this error "To protect our customers from identity theft, credit card details are erased when a browser refreshes on the checkout review page. Please enter your card details again and re-submit the form." I have tried everything. I have updated to the latest module. I have tried disabling almost everything. In my reports, I'm getting this error 3 times anytime someone tries to click the checkout button. (image of error attached) I have spent all day trying to figure this out with no luck. I have tried both Test Payment gateway and authorize.net. Nothing is working.
There's this block of code in the uc_credit module that is stopping me. If I comment it out, I get to the review page but none of credit card details are getting passed to the page. I believe the $_POST['sescrd'] is never getting populated, but I dont know where/how to fix it.
if (isset($_SESSION['cc_pay']) && !isset($_SESSION['sescrd']) && empty($_POST['sescrd'])) {
// Send them back to the checkout form to put in their details again.
drupal_set_message(t('To protect our customers from identity theft, credit card details are erased when a browser refreshes on the checkout review page. Please enter your card details again and re-submit the form.'), 'error');
$_SESSION['clear_cc'] = TRUE;
unset($_SESSION['cc_pay']);
drupal_goto('cart/checkout');
}
| Preview | Attachment | Size |
|---|---|---|
![]() | Screen shot 2010-08-16 at 11.46.15 AM.png | 36.43 KB |

