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’]

Basically removed all the product info like name (was changed into order number) and description, price changed to total was asked to do one quantity with shipping all included here is how it looks now:
order summary
Here is also a short feedback from my client:

Did the job, then a few times helped fix the remaining minor bugs. I recommend!

Mikas.Owner of simplevape.casimplevape.ca
2 replies
  1. gradon
    gradon says:

    I like the valuable info you supply on your articles.
    I’ll bookmark your blog and test once more here regularly.
    I am somewhat sure I’ll be informed many new stuff right
    here! Best of luck for the following!

    • webadmin
      webadmin says:

      Thanks for support, that means to me a lot.
      Sorry for my lack articles in english.
      Keep on following, some new stuff are coming right away!


Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *