Simplevape.ca

The task was to remove sensitive cart data from paypal standard payment module on opencart 1.5.6 file stands here catalog/controller/payment/pp_standard.php this peace of code:

$data[‘products’][] = array(
‘name’ => htmlspecialchars($product[‘name’]),
‘model’ => htmlspecialchars($product[‘model’]),
‘price’ => $this->currency->format($product[‘price’], $order_info[‘currency_code’], false, false),
‘quantity’ => $product[‘quantity’],
‘option’ => $option_data,
‘weight’ => $product[‘weight’]
);

was modified into:

$this->$data[‘products’][0] = array(
‘name’ =>  ‘Order number ‘.$this->session->data[‘order_id’],
‘price’ => $this->currency->format($order_info[‘total’], $order_info[‘currency_code’], false, false),
‘quantity’ => 1,
‘weight’ => $product[‘weight’]
);

Read more