You are here

function commerce_sermepa_set_merchant_code in Commerce sermepa 7

Action: Set the Sermepa gateway Ds_Merchant_MerchantCode parameter.

Parameters

\CommerceRedsys\Payment\Sermepa $gateway: The Sermepa gateway instance.

string $value: The Ds_Merchant_MerchantCode value to being setted.

File

./commerce_sermepa.rules.inc, line 475
Rules integration for the commerce sermepa module.

Code

function commerce_sermepa_set_merchant_code($gateway, $value) {
  $gateway
    ->setMerchantCode($value);
}