Hello everyone
I am having an issue with Dotpay payment module. It sends to server a shop name as payment description. I was trying to make it in such syntax: cart id, firstname, lastname, city, email of client but i am not into SMARTY so there was no effect but only such errors in Apache errorlog:
PHP Parse error: syntax error, unexpected ''description'' (T_CONSTANT_ENCAPSED_STRING), expecting ')'
Below you can se i made one change in script:
$params = array(
'id' => Configuration::get('DP_ID'),
'amount' => (float)$cart->getOrderTotal(true, Cart::BOTH),
'currency' => $currency["iso_code"],
// 'description' => Configuration::get('PS_SHOP_NAME'), // <--- original
'url' => $this->context->link->getModuleLink('dotpay', 'payment', array('control' => $cart->id), Configuration::get('DP_SSL', false)),
'type' => 0,
'urlc' => $this->context->link->getModuleLink('dotpay', 'callback', array('ajax' => '1'), Configuration::get('DP_SSL', false)),
'control' => $cart->id,
'firstname' => $customer->firstname,
'lastname' => $customer->lastname,
'email' => $customer->email,
'street' => $address->address1,
'city' => $address->city,
'postcode'=> $address->postcode,
'api_version' => 'legacy'
'description' = $params['id'].$params['firstname'].$params['lastname'].$params['city'].$params['email'] <--- changed
);
I would appreciate any help.