I've seen no documentation which confirms or supports what you're asking for (apart from the fix I posted in the link a few posts back), but I'm sure you have a reason for it.
So, as you wish. The following makes ALL of Maestro, Solo, and Switch cards treated the SAME. ** USE AT OWN RISK ** I've not tested this with any live transactions, so cannot confirm what errors or other problems you'll run into.
And beware that you may have some customers unable to checkout because they're confused about why you're asking for dates/numbers/values that they don't have on their cards.
In /includes/modules/payment/paypaldp.php, change this:
Code:
function selection() {
global $order;
$this->cc_type_check =
'var value = document.checkout_payment.paypalwpp_cc_type.value;' .
'if (value == "Solo") {' .
' document.checkout_payment.paypalwpp_cc_issue_month.disabled = false;' .
' document.checkout_payment.paypalwpp_cc_issue_year.disabled = false;' .
' document.checkout_payment.paypalwpp_cc_checkcode.disabled = true;' .
' if (document.checkout_payment.paypalwpp_cc_issuenumber) document.checkout_payment.paypalwpp_cc_issuenumber.disabled = true;' .
'} else if (value == "Maestro" || value == "Switch") {' .
' document.checkout_payment.paypalwpp_cc_issuenumber.disabled = false;' .
' if (document.checkout_payment.paypalwpp_cc_issue_month) document.checkout_payment.paypalwpp_cc_issue_month.disabled = true;' .
' if (document.checkout_payment.paypalwpp_cc_issue_year) document.checkout_payment.paypalwpp_cc_issue_year.disabled = true;' .
' document.checkout_payment.paypalwpp_cc_checkcode.disabled = false;' .
'} else {' .
' if (document.checkout_payment.paypalwpp_cc_issuenumber) document.checkout_payment.paypalwpp_cc_issuenumber.disabled = true;' .
' if (document.checkout_payment.paypalwpp_cc_issue_month) document.checkout_payment.paypalwpp_cc_issue_month.disabled = true;' .
' if (document.checkout_payment.paypalwpp_cc_issue_year) document.checkout_payment.paypalwpp_cc_issue_year.disabled = true;' .
' document.checkout_payment.paypalwpp_cc_checkcode.disabled = false;' .
'}';
if (sizeof($this->cards) == 0) $this->cc_type_check = '';
to this:
Code:
function selection() {
global $order;
$this->cc_type_check =
'var value = document.checkout_payment.paypalwpp_cc_type.value;' .
'if (value == "Solo" || value == "Maestro" || value == "Switch") {' .
' document.checkout_payment.paypalwpp_cc_issue_month.disabled = false;' .
' document.checkout_payment.paypalwpp_cc_issue_year.disabled = false;' .
' document.checkout_payment.paypalwpp_cc_checkcode.disabled = false;' .
'} else {' .
' if (document.checkout_payment.paypalwpp_cc_issuenumber) document.checkout_payment.paypalwpp_cc_issuenumber.disabled = true;' .
' if (document.checkout_payment.paypalwpp_cc_issue_month) document.checkout_payment.paypalwpp_cc_issue_month.disabled = true;' .
' if (document.checkout_payment.paypalwpp_cc_issue_year) document.checkout_payment.paypalwpp_cc_issue_year.disabled = true;' .
' document.checkout_payment.paypalwpp_cc_checkcode.disabled = false;' .
'}';
if (sizeof($this->cards) == 0) $this->cc_type_check = '';
Bookmarks