Skip to content

Commit

Permalink
Merge pull request #3 from mehmetselim/master
Browse files Browse the repository at this point in the history
Plug-In Update
  • Loading branch information
mehmetselim authored Jan 15, 2019
2 parents 77075e1 + 9314639 commit 6ba589a
Show file tree
Hide file tree
Showing 48 changed files with 449 additions and 49 deletions.
2 changes: 1 addition & 1 deletion iyzipay/LICENSE
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
4 changes: 2 additions & 2 deletions iyzipay/classes/IyzipayCheckoutFormObject.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static function option($params, $currency, $context, $apiKey)
$iyzico->forceThreeDS = '0';
$iyzico->callbackUrl = $httpProtocol.htmlspecialchars($_SERVER['HTTP_HOST'], ENT_COMPAT, 'UTF-8').__PS_BASE_URI__.'index.php?module_action=init&fc=module&module=iyzipay&controller=callback';
$iyzico->cardUserKey = IyzipayModel::findUserCardKey($params['cookie']->id_customer, $apiKey);
$iyzico->paymentSource = _PS_VERSION_.'|PIE|1.0';
$iyzico->paymentSource = _PS_VERSION_.'|PRESTASHOP|PIE|1.0.1';

return $iyzico;
}
Expand Down Expand Up @@ -235,4 +235,4 @@ public static function cancelObject($locale, $paymentId, $ip)

return $responseObject;
}
}
}
2 changes: 1 addition & 1 deletion iyzipay/classes/IyzipayHelper.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ public static function priceParser($price)

return strrev(substr($priceReversed, $subStrIndex));
}
}
}
2 changes: 1 addition & 1 deletion iyzipay/classes/IyzipayModel.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,4 @@ public static function updateOrderPayment($price, $reference)

return Db::getInstance()->execute($sql);
}
}
}
2 changes: 1 addition & 1 deletion iyzipay/classes/IyzipayOverlayScript.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ public static function generateOverlayScriptObject($isoCode, $randNumer)

return $overlayObject;
}
}
}
2 changes: 1 addition & 1 deletion iyzipay/classes/IyzipayPkiStringBuilder.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,4 @@ public static function authorization($pkiString, $apiKey, $secretKey, $rand)

return $authorization;
}
}
}
2 changes: 1 addition & 1 deletion iyzipay/classes/IyzipayRequest.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,4 @@ public static function curlPost($json, $authorization, $endpoint)

return $result;
}
}
}
2 changes: 1 addition & 1 deletion iyzipay/classes/index.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
header('Pragma: no-cache');

header('Location: ../');
exit;
exit;
Empty file modified iyzipay/config.xml
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion iyzipay/config_tr.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<module>
<name>iyzipay</name>
<displayName><![CDATA[iyzico &Ouml;deme Mod&uuml;l&uuml;]]></displayName>
<version><![CDATA[1.0.0]]></version>
<version><![CDATA[1.0.1]]></version>
<description><![CDATA[PrestaShop i&ccedil;in iyzico &Ouml;deme Ge&ccedil;idi]]></description>
<author><![CDATA[iyzico]]></author>
<tab><![CDATA[payments_gateways]]></tab>
Expand Down
2 changes: 1 addition & 1 deletion iyzipay/controllers/front/callback.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -240,4 +240,4 @@ private function cancelPayment($locale, $paymentId, $remoteIpAddr, $apiKey, $sec
$errorMessage = $this->l('uniqError');
throw new \Exception($errorMessage);
}
}
}
2 changes: 1 addition & 1 deletion iyzipay/controllers/front/index.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
header('Pragma: no-cache');

header('Location: ../');
exit;
exit;
2 changes: 1 addition & 1 deletion iyzipay/controllers/index.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
header('Pragma: no-cache');

header('Location: ../');
exit;
exit;
2 changes: 1 addition & 1 deletion iyzipay/index.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
header('Pragma: no-cache');

header('Location: ../');
exit;
exit;
8 changes: 6 additions & 2 deletions iyzipay/iyzipay.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function __construct()
{
$this->name = 'iyzipay';
$this->tab = 'payments_gateways';
$this->version = '1.0.0';
$this->version = '1.0.1';
$this->author = 'iyzico';
$this->need_instance = 1;

Expand Down Expand Up @@ -373,6 +373,10 @@ public function hookFooter($params)

public function hookPaymentOptions($params)
{

if(!$params['cart']->id_carrier)
return $this->paymentOptionResult();

$iyzicoCheckoutFormResponse = $this->checkoutFormGenerate($params);

$phpCheckVersion = $this->versionCheck();
Expand Down Expand Up @@ -570,4 +574,4 @@ private function iyziMultipLangTitle($title, $isoCode)

return $title;
}
}
}
Binary file modified iyzipay/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion iyzipay/sql/index.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
header('Pragma: no-cache');

header('Location: ../');
exit;
exit;
2 changes: 1 addition & 1 deletion iyzipay/sql/install.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@
if (Db::getInstance()->execute($query) == false) {
return false;
}
}
}
2 changes: 1 addition & 1 deletion iyzipay/sql/uninstall.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@
if (Db::getInstance()->execute($query) == false) {
return false;
}
}
}
2 changes: 1 addition & 1 deletion iyzipay/translations/en.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@
$_MODULE['<{iyzipay}prestashop>confirmation_cd430c2eb4b87fb3b49320bd21af074e'] = 'expert customer support team.';
$_MODULE['<{iyzipay}prestashop>confirmation_7569ab9b5973795ce8c9fc870d38d8e1'] = 'Your order on %s has not been accepted.';
$_MODULE['<{iyzipay}prestashop>confirmation_caa4088f1d295cf8ce8e358eb975ab32'] = 'Please, try to order again.';
$_MODULE['<{iyzipay}prestashop>error_a25c753ee3e4be15ec0daa5a40deb7b8'] = 'An error occurred';
$_MODULE['<{iyzipay}prestashop>error_a25c753ee3e4be15ec0daa5a40deb7b8'] = 'An error occurred';
2 changes: 1 addition & 1 deletion iyzipay/translations/index.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
header('Pragma: no-cache');

header('Location: ../');
exit;
exit;
2 changes: 1 addition & 1 deletion iyzipay/translations/tr.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@
$_MODULE['<{iyzipay}prestashop>confirmation_cd430c2eb4b87fb3b49320bd21af074e'] = 'uzman müşteri destek ekibi.';
$_MODULE['<{iyzipay}prestashop>confirmation_7569ab9b5973795ce8c9fc870d38d8e1'] = '%s üzerindeki siparişiniz kabul edilmedi. ';
$_MODULE['<{iyzipay}prestashop>confirmation_caa4088f1d295cf8ce8e358eb975ab32'] = 'Lütfen, tekrar deneyiniz.';
$_MODULE['<{iyzipay}prestashop>error_a25c753ee3e4be15ec0daa5a40deb7b8'] = 'Bir hata oluştu';
$_MODULE['<{iyzipay}prestashop>error_a25c753ee3e4be15ec0daa5a40deb7b8'] = 'Bir hata oluştu';
2 changes: 1 addition & 1 deletion iyzipay/views/css/back.css
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/
*/
2 changes: 1 addition & 1 deletion iyzipay/views/css/front.css
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/
*/
2 changes: 1 addition & 1 deletion iyzipay/views/css/index.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
header('Pragma: no-cache');

header('Location: ../');
exit;
exit;
Binary file modified iyzipay/views/img/cards.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion iyzipay/views/img/index.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
header('Pragma: no-cache');

header('Location: ../');
exit;
exit;
Binary file removed iyzipay/views/img/template_1_cards.png
Binary file not shown.
Binary file removed iyzipay/views/img/template_1_logo.png
Binary file not shown.
Binary file removed iyzipay/views/img/template_2_cards.png
Binary file not shown.
Binary file removed iyzipay/views/img/template_2_logo.png
Binary file not shown.
2 changes: 1 addition & 1 deletion iyzipay/views/index.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
header('Pragma: no-cache');

header('Location: ../');
exit;
exit;
Empty file modified iyzipay/views/js/back.js
100644 → 100755
Empty file.
3 changes: 1 addition & 2 deletions iyzipay/views/js/front.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/

*/
2 changes: 1 addition & 1 deletion iyzipay/views/js/index.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
header('Pragma: no-cache');

header('Location: ../');
exit;
exit;
2 changes: 1 addition & 1 deletion iyzipay/views/templates/admin/configure.tpl
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
<div class="tab-pane active" id="template_1">{include file='./template_1.tpl'}</div>
<div class="tab-pane" id="template_2">{include file='./template_2.tpl'}</div>
<div class="tab-pane" id="template_3">{include file='./template_3.tpl'}</div>
</div>
</div>
2 changes: 1 addition & 1 deletion iyzipay/views/templates/admin/index.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
header('Pragma: no-cache');

header('Location: ../');
exit;
exit;
Loading

0 comments on commit 6ba589a

Please sign in to comment.