Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Saving CC Number when typed incorrectly on checkout_payment.php


Transition

Recommended Posts

A slight annoyance to me is that on the checkout_payment.php page if you type your CC incorrectly it of course gives you the notification your CC was entered incorrectly, but doesn't retain that number so you can just make the quick fix. Is there a way to save the CC number (not in the db) so that when a customer submits their CC to goto the checkout_confirmation.php page that it doesn't 'forget' it if they've made a typo?

Link to comment
Share on other sites

you could change the payment error return but I would not recommend it (not safe).

 

currently you have this in the cc.php

 

$payment_error_return = 'payment_error=' . $this->code . '&error=' . urlencode($error) . '&cc_owner=' . urlencode($HTTP_POST_VARS['cc_owner']) . '&cc_expires_month=' . $HTTP_POST_VARS['cc_expires_month'] . '&cc_expires_year=' . $HTTP_POST_VARS['cc_expires_year'];

 

so you could add the cc number

$payment_error_return = 'payment_error=' . $this->code . '&error=' . urlencode($error) . '&cc_owner=' . urlencode($HTTP_POST_VARS['cc_owner']) . '&cc_number=' . $HTTP_POST_VARS['cc_number'] . '&cc_expires_month=' . $HTTP_POST_VARS['cc_expires_month'] . '&cc_expires_year=' . $HTTP_POST_VARS['cc_expires_year'];

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...