12852 - fix ensure at least the standard order info is passed to validate order
This commit is contained in:
parent
25cc700939
commit
fff52d067b
@ -1112,18 +1112,29 @@ class Systempay extends PaymentModule {
|
||||
$msg3ds .= $this->l('NO');
|
||||
}
|
||||
|
||||
// fix 12852
|
||||
$order_info = $systempayResponse->get('order_info');
|
||||
if (!is_string($order_info)) {
|
||||
$order_info = $this->l('Payment by bank card');
|
||||
}
|
||||
|
||||
if (empty(trim($order_info))) {
|
||||
$order_info = $this->l('Payment by bank card');
|
||||
}
|
||||
|
||||
// call payment module validateOrder
|
||||
$this->validateOrder(
|
||||
$cart->id,
|
||||
$orderStatus,
|
||||
$systempayResponse->getFloatAmount(),
|
||||
$systempayResponse->get('order_info'), // title defined in admin panel and sent to platform as order_info
|
||||
$order_info, // title defined in admin panel and sent to platform as order_info
|
||||
$systempayResponse->getLogString() . $msg3ds,
|
||||
array(), // $extraVars
|
||||
$currencyId, // $currency_special
|
||||
false, // $dont_touch_amount
|
||||
$customer->secure_key
|
||||
);
|
||||
// end fix 12852
|
||||
|
||||
// reload order
|
||||
$order = new Order((int)Order::getOrderByCartId($cart->id));
|
||||
|
Loading…
Reference in New Issue
Block a user