Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

Commit

Permalink
close #1 Fixed: Remove affiliate links of Daniel from payment gateways
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed Dec 2, 2016
1 parent 56e5a05 commit 44a8680
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Payments/eway/upload/catalog/controller/payment/eway.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public function index()
}

$request->TransactionType = 'Purchase';
$request->DeviceID = 'opencart-' . VERSION . ' eway-trans-2.1.2';
$request->DeviceID = 'arastta-' . VERSION . ' eway-trans-2.1.2';
$request->CustomerIP = $this->request->server['REMOTE_ADDR'];

$this->load->model('payment/eway');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
$_['text_confirm_void'] = 'Are you sure you want to void the payment?';
$_['text_confirm_capture'] = 'Are you sure you want to capture the payment?';
$_['text_confirm_rebate'] = 'Are you sure you want to rebate the payment?';
$_['text_globalpay'] = '<a target="_blank" href="https://resourcecentre.globaliris.com/getting-started.php?id=OpenCart"><img src="view/image/payment/globalpay.png" alt="Globalpay" title="Globalpay" style="border: 1px solid #EEEEEE;" /></a>';
$_['text_globalpay'] = '<a target="_blank" href="https://resourcecentre.globaliris.com/getting-started.php?id=Arastta"><img src="view/image/payment/globalpay.png" alt="Globalpay" title="Globalpay" style="border: 1px solid #EEEEEE;" /></a>';

// Entry
$_['entry_merchant_id'] = 'Merchant ID';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
$_['text_confirm_void'] = 'Are you sure you want to void the payment?';
$_['text_confirm_capture'] = 'Are you sure you want to capture the payment?';
$_['text_confirm_rebate'] = 'Are you sure you want to rebate the payment?';
$_['text_globalpay_remote'] = '<a target="_blank" href="https://resourcecentre.globaliris.com/getting-started.php?id=OpenCart"><img src="view/image/payment/globalpay.png" alt="Globalpay" title="Globalpay" style="border: 1px solid #EEEEEE;" /></a>';
$_['text_globalpay_remote'] = '<a target="_blank" href="https://resourcecentre.globaliris.com/getting-started.php?id=Arastta"><img src="view/image/payment/globalpay.png" alt="Globalpay" title="Globalpay" style="border: 1px solid #EEEEEE;" /></a>';

// Column
$_['text_column_amount'] = 'Amount';
Expand Down
6 changes: 3 additions & 3 deletions Payments/globalpay/upload/admin/model/payment/globalpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function void($order_id)
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://epage.payandshop.com/epage-remote.cgi");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_USERAGENT, "OpenCart " . VERSION);
curl_setopt($ch, CURLOPT_USERAGENT, "Arastta " . VERSION);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
Expand Down Expand Up @@ -140,7 +140,7 @@ public function capture($order_id, $amount)
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://epage.payandshop.com/epage-remote.cgi");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_USERAGENT, "OpenCart " . VERSION);
curl_setopt($ch, CURLOPT_USERAGENT, "Arastta " . VERSION);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
Expand Down Expand Up @@ -211,7 +211,7 @@ public function rebate($order_id, $amount)
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://epage.payandshop.com/epage-remote.cgi");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_USERAGENT, "OpenCart " . VERSION);
curl_setopt($ch, CURLOPT_USERAGENT, "Arastta " . VERSION);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function void($order_id)
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://epage.payandshop.com/epage-remote.cgi");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_USERAGENT, "OpenCart " . VERSION);
curl_setopt($ch, CURLOPT_USERAGENT, "Arastta " . VERSION);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
Expand Down Expand Up @@ -139,7 +139,7 @@ public function capture($order_id, $amount)
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://epage.payandshop.com/epage-remote.cgi");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_USERAGENT, "OpenCart " . VERSION);
curl_setopt($ch, CURLOPT_USERAGENT, "Arastta " . VERSION);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
Expand Down Expand Up @@ -210,7 +210,7 @@ public function rebate($order_id, $amount)
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://epage.payandshop.com/epage-remote.cgi");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_USERAGENT, "OpenCart " . VERSION);
curl_setopt($ch, CURLOPT_USERAGENT, "Arastta " . VERSION);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function checkEnrollment($account, $amount, $currency, $order_ref)
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://remote.globaliris.com/realmpi");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_USERAGENT, "OpenCart " . VERSION);
curl_setopt($ch, CURLOPT_USERAGENT, "Arastta " . VERSION);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
Expand Down Expand Up @@ -120,7 +120,7 @@ public function enrollmentSignature($account, $amount, $currency, $order_ref, $c
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://remote.globaliris.com/realmpi");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_USERAGENT, "OpenCart " . VERSION);
curl_setopt($ch, CURLOPT_USERAGENT, "Arastta " . VERSION);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
Expand Down Expand Up @@ -155,7 +155,7 @@ public function capturePayment($account, $amount, $currency, $order_id, $order_r
$xml .= '<orderid>' . $order_ref . '</orderid>';
$xml .= '<amount currency="' . $currency . '">' . $amount . '</amount>';
$xml .= '<comments>';
$xml .= '<comment id="1">OpenCart</comment>';
$xml .= '<comment id="1">Arastta</comment>';
$xml .= '</comments>';
$xml .= '<card>';
$xml .= '<number>' . $card_number . '</number>';
Expand Down Expand Up @@ -235,7 +235,7 @@ public function capturePayment($account, $amount, $currency, $order_id, $order_r
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://remote.globaliris.com/realauth");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_USERAGENT, "OpenCart " . VERSION);
curl_setopt($ch, CURLOPT_USERAGENT, "Arastta " . VERSION);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<input type=hidden name="SHIPPING_CODE" value="<?php echo $shipping_code; ?>">
<input type=hidden name="SHIPPING_CO" value="<?php echo $shipping_country; ?>">
<input type=hidden name="MERCHANT_RESPONSE_URL" value="<?php echo $response_url; ?>">
<input type=hidden name="COMMENT1" value="OpenCart">
<input type=hidden name="COMMENT1" value="Arastta">
<?php if ($card_select == true) { ?>
<fieldset id="payment">
<div class="form-group required">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public function call($data)
'PWD' => $password,
'SIGNATURE' => $signature,
'VERSION' => '84',
'BUTTONSOURCE' => 'OpenCart_Cart_EC',
'BUTTONSOURCE' => 'Arastta_EC',
);

$this->log($data, 'Call data');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function call($data)
'PWD' => $password,
'SIGNATURE' => $signature,
'VERSION' => '109.0',
'BUTTONSOURCE' => 'OpenCart_2.0_EC',
'BUTTONSOURCE' => 'Arastta_EC',
);

$this->log($data, 'Call data');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,9 @@ protected function getAPIInstance()
$agentid = $agent[$store];
$md5key = $md5[$store];

$credentials = new PaysonCredentials(trim($agentid), trim($md5key), null, 'payson_opencart|' . $this->config->get('paysondirect_modul_version') . '|' . VERSION);
$credentials = new PaysonCredentials(trim($agentid), trim($md5key), null, 'payson_arastta|' . $this->config->get('paysondirect_modul_version') . '|' . VERSION);
} else {
$credentials = new PaysonCredentials(4, '2acab30d-fe50-426f-90d7-8c60a7eb31d4', null, 'payson_opencart|' . $this->config->get('paysondirect_modul_version') . '|' . VERSION);
$credentials = new PaysonCredentials(4, '2acab30d-fe50-426f-90d7-8c60a7eb31d4', null, 'payson_arastta|' . $this->config->get('paysondirect_modul_version') . '|' . VERSION);
}

$api = new PaysonApi($credentials, $this->testMode);
Expand Down

0 comments on commit 44a8680

Please sign in to comment.