Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

unallowed payment


pldtm

Recommended Posts

hi,

 

 

With MS1, i have a problem. When i add the recommanded lines in each payment module i use , no payment at all appears in admin part payment even the module i don't use (no modified)

 

as anyone the same problem

 

 

pldtm

PL DTM

-----------------------------------------

Sur un malentendu, ... ?a pourrait marcher

Link to comment
Share on other sites

I get this error with Unallowed payment when i add the function to each of the payment modules....

 

Fatal error: Call to undefined function: tep_get_payment_unallowed() in /home/virtual/site26/fst/var/www/html/includes/modules/payment/cc.php on line 26

Link to comment
Share on other sites

ok

i found for this message ans as it isn't noticed in the readme that we have to copy the function tep_get... either in catalog and admin file called general.php

 

 

 

pldtm

PL DTM

-----------------------------------------

Sur un malentendu, ... ?a pourrait marcher

Link to comment
Share on other sites

  • 1 year later...
I get this error with Unallowed payment when i add the function to each of the payment modules....

Fatal error: Call to undefined function: tep_get_payment_unallowed() in /home/virtual/site26/fst/var/www/html/includes/modules/payment/cc.php on line 26

 

Has anyone solved this problem? I get the same error.

Link to comment
Share on other sites

  • 4 months later...

The following instruction needs to be added to the admin/includes/function/general.php file as well as on the catalog side!

 

"File changes on catalog side:

------------------------------------------------------------------------------------------------

in catalog/includes/function/general.php

 

add this function:

 

////

// Verify if Payment is allowed

function tep_get_payment_unallowed ($pay_check) {

global $customer_id;

$payments = tep_db_query("select customers_payment_unallowed from " . TABLE_CUSTOMERS . " where customers_id = '" . $customer_id . "'");

$payments_not_allowed = tep_db_fetch_array($payments);

$payments_unallowed = explode (",",$payments_not_allowed['customers_payment_unallowed']);

$clearance = (!in_array ($pay_check, $payments_unallowed)) ? true : false;

return $clearance;

}

////

Link to comment
Share on other sites

  • 3 weeks later...

i have the same error in osc ms2

 

Fatal error: Call to undefined function: tep_get_payment_unallowed() in /home/virtual/site26/fst/var/www/html/includes/modules/payment/cc.php on line 26

 

 

my funktion in the general.php

 

////
// Verify if Payment is allowed
function tep_get_payment_unallowed ($pay_check) {
 global $customer_id;
 $payments = tep_db_query("select customers_payment_unallowed from " . TABLE_CUSTOMERS . " where customers_id = '" . $customer_id . "'");
 $payments_not_allowed = tep_db_fetch_array($payments);
 $payments_unallowed = explode (",",$payments_not_allowed['customers_payment_unallowed']);
 $clearance = (!in_array ($pay_check, $payments_unallowed)) ?  true : false;
 return $clearance;
}

 

 

regards

rainer

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...