fix: remove stale shipping receipt line breaking Pay URL
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
class ControllerExtensionPaymentPayanyway extends Controller {
|
||||
const MODULE_NAME = 'payanyway';
|
||||
const MODULE_VERSION = '1.0.4';
|
||||
const MODULE_VERSION = '1.0.5';
|
||||
const CMS_NAME = 'OpenCart';
|
||||
|
||||
const PAYMENT_SERVER_PROD = 'prod';
|
||||
@@ -871,18 +871,6 @@ class ControllerExtensionPaymentPayanyway extends Controller {
|
||||
$inventory[] = $position;
|
||||
}
|
||||
|
||||
$name = isset($deliveryInfo['title']) ? $deliveryInfo['title'] : '';
|
||||
$price = isset($deliveryInfo['value']) ? (float)$deliveryInfo['value'] : 0;
|
||||
$inventory[] = array(
|
||||
'name' => $this->validateString($name, self::ITEM_NAME_MAX_LENGTH),
|
||||
'price' => $this->formatPrice($price),
|
||||
'quantity' => '1',
|
||||
'vatTag' => $this->vatRate,
|
||||
'pm' => self::DEFAULT_PAYMENT_METHOD,
|
||||
'po' => self::SHIPPING_PAYMENT_OBJECT,
|
||||
'measure' => self::DEFAULT_MEASURE,
|
||||
);
|
||||
|
||||
return json_encode($inventory, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
|
||||
}
|
||||
|
||||
@@ -1263,13 +1251,4 @@ class ControllerExtensionPaymentPayanyway extends Controller {
|
||||
|
||||
return self::CMS_NAME;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function getAccountOrderProducts() {
|
||||
$this->load->model('account/order');
|
||||
return $this->model_account_order->getOrderProducts($this->orderId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user