Online Payment Module Architecture: Difference between revisions

m
Tag: 2017 source edit
Tag: 2017 source edit
Line 52: Line 52:
public function getValidPayment($parameters, &$object, &$action, $hookmanager)
public function getValidPayment($parameters, &$object, &$action, $hookmanager)
{
{
global $langs;
$error = "";


$error = 0; // Error counter
$validpaymentmethod = array();
$error = "";


if (array_key_exists("paymentmethod", $parameters) && (empty($parameters["paymentmethod"]) || $parameters["paymentmethod"] == 'payplug') && isModEnabled('payplugdolicloud')) {
if (array_key_exists("paymentmethod", $parameters) && (empty($parameters["paymentmethod"]) || $parameters["paymentmethod"] == 'payplug') && isModEnabled('payplugdolicloud')) {