Re: X-Cart offline payment method
You should use \XLite\Model\Payment\Method::getSetting($name) method.
If you have a transaction model in the $transaction variable, you can get the setting from this object as follows:
$transaction->getPaymentMethod()->getSetting($name);
So, basically you need the payment method model to get values of its settings.
|