Skip to content

Instantly share code, notes, and snippets.

@ahmednasir91
Created March 24, 2019 11:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmednasir91/8d505e67a6e247535c3a911f485276ff to your computer and use it in GitHub Desktop.
Save ahmednasir91/8d505e67a6e247535c3a911f485276ff to your computer and use it in GitHub Desktop.
<file name="catalog/controller/payment_pro.php" error="skip">
<operation>
<search position="after"><![CDATA[
$result = curl_exec($curl);
]]></search>
<add trim="true"><![CDATA[
// Payment Pro
$id = $payment_data_array['id'];
// ...
$this->db->query("UPDATE " . DB_PREFIX . "payment_pro SET id = '" . $this->db->escape($id) . "', amount = '" .$this->db->escape($amount). "' WHERE `order_id` = '" . $order_info['order_id'] . "'");
// End Payment Pro
]]></add>
</operation>
</file>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment