From a7268d41fedfe4af1ac653951499d7004edc3707 Mon Sep 17 00:00:00 2001 From: feyzullah Demir <101548542+feyzullahdemir@users.noreply.github.com> Date: Wed, 1 Mar 2023 10:52:46 +0300 Subject: [PATCH] +BaserUrl --- paywithiyzico/.DS_Store | Bin 0 -> 6148 bytes paywithiyzico/classes/PaywithiyzicoObject.php | 8 ++++---- paywithiyzico/config_tr.xml | 2 +- paywithiyzico/controllers/front/callback.php | 2 +- paywithiyzico/paywithiyzico.php | 12 ++++++------ paywithiyzico/views/.DS_Store | Bin 0 -> 6148 bytes paywithiyzico/views/templates/.DS_Store | Bin 0 -> 6148 bytes 7 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 paywithiyzico/.DS_Store create mode 100644 paywithiyzico/views/.DS_Store create mode 100644 paywithiyzico/views/templates/.DS_Store diff --git a/paywithiyzico/.DS_Store b/paywithiyzico/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..310b70c0ecdee5aedc157c9a0cfa7aeec4b29318 GIT binary patch literal 6148 zcmeHK%}T>S5Z>*NO({YS3VK`cTCfpX5icRu7cim+m718K!I&*gYYwH5yS|Vw;`2DO zyOB!u;6h6(ms%Dc6@t7RkbsvnArbWYb^;uiz{lDa!BC5WXU&FNL4| zNtVj&9-`Go)dqyb05L!etUCkd-m^OEeo#6eF+dFbngP5Y1Sq0wu+*ro4lrs20Bk^5 z3HUfmV2v>78Z0%!3JBMwfVz~M5rgY;hzpbF8Z0&Ha>mW@!OfGonNYZTI_xi0I^(WJ zvcv!}@Rb3a{XlH&|EE9C|0;paymentGroup = 'PRODUCT'; $paywithiyzico->callbackUrl = $httpProtocol.htmlspecialchars($_SERVER['HTTP_HOST'], ENT_COMPAT, 'UTF-8').__PS_BASE_URI__.'index.php?module_action=init&fc=module&module=paywithiyzico&controller=callback'; $paywithiyzico->cancelUrl = $httpProtocol.htmlspecialchars($_SERVER['HTTP_HOST'], ENT_COMPAT, 'UTF-8').__PS_BASE_URI__; - $paywithiyzico->paymentSource = _PS_VERSION_.'|PRESTASHOP|AIR|1.0.0|PWI'; + $paywithiyzico->paymentSource = _PS_VERSION_.'|PRESTASHOP|AIR|1.0.5|PWI'; return $paywithiyzico; } @@ -190,10 +190,10 @@ public static function checkoutFormObjectSort($objectData) $form_object->currency = $objectData->currency; $form_object->paidPrice = $objectData->paidPrice; $form_object->cancelUrl = $objectData->cancelUrl; - + return $form_object; - + } /** @@ -232,4 +232,4 @@ public static function cancelObject($locale, $paymentId, $ip) return $responseObject; } -} \ No newline at end of file +} diff --git a/paywithiyzico/config_tr.xml b/paywithiyzico/config_tr.xml index cc72911..f5a80d1 100644 --- a/paywithiyzico/config_tr.xml +++ b/paywithiyzico/config_tr.xml @@ -2,7 +2,7 @@ paywithiyzico - + diff --git a/paywithiyzico/controllers/front/callback.php b/paywithiyzico/controllers/front/callback.php index 4945628..55b73ea 100644 --- a/paywithiyzico/controllers/front/callback.php +++ b/paywithiyzico/controllers/front/callback.php @@ -45,7 +45,7 @@ public function init(){ $apiKey = Configuration::get('IYZICO_FORM_LIVE_API_ID'); $secretKey = Configuration::get('IYZICO_FORM_LIVE_SECRET'); $rand = rand(100000, 99999999); - $endpoint = Paywithiyzico::$baseUrl; + $endpoint = Configuration::get('IYZICO_FORM_BASEURL'); $responseObject = PaywithiyzicoObject::responseObject($orderCartId, $token, $locale); $pkiString = PaywithiyzicoPkiStringBuilder::pkiStringGenerate($responseObject); diff --git a/paywithiyzico/paywithiyzico.php b/paywithiyzico/paywithiyzico.php index 4dfd0b0..f356caa 100644 --- a/paywithiyzico/paywithiyzico.php +++ b/paywithiyzico/paywithiyzico.php @@ -9,13 +9,13 @@ class Paywithiyzico extends PaymentModule{ - public static $baseUrl = "https://sandbox-api.iyzipay.com"; + //public static $baseUrl = Configuration::get('IYZICO_FORM_BASEURL'); public function __construct() { $this->name = "paywithiyzico"; $this->tab = 'payments_gateways'; - $this->version = '1.0.0'; + $this->version = '1.0.5'; $this->author = 'iyzico'; $this->bootstrap = true; @@ -28,7 +28,7 @@ public function __construct() $this->checkAndSetCookieSameSite(); } - + public function install(){ if (!parent::install() @@ -128,7 +128,7 @@ public function PwiGenerate($params) $apiKey = Configuration::get('IYZICO_FORM_LIVE_API_ID'); $secretKey = Configuration::get('IYZICO_FORM_LIVE_SECRET'); $rand = rand(100000, 99999999); - $endpoint = self::$baseUrl; + $endpoint = Configuration::get('IYZICO_FORM_BASEURL'); $paywithiyzico = PaywithiyzicoObject::option($params, $context); $paywithiyzico->buyer = PaywithiyzicoObject::buyer($billingAddress); @@ -294,7 +294,7 @@ private function phpVersionCheck() .$phpVersion.'' : 'iyzico ile Öde modülünün çalışması için minimum PHP versiyonunuz '.$requiredVersion. ' olmalıdır. - PHP versiyonunuzu yükseltmek için hosting firmanızla iletişime geçebilirsiniz. Sunucu PHP + PHP versiyonunuzu yükseltmek için hosting firmanızla iletişime geçebilirsiniz. Sunucu PHP versiyonunuz: '.$phpVersion.''; } return false; @@ -318,4 +318,4 @@ private function createPwiOrderTable(){ return false; return true; } -} \ No newline at end of file +} diff --git a/paywithiyzico/views/.DS_Store b/paywithiyzico/views/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..10056238233eba57b8442c7233e67233521035c3 GIT binary patch literal 6148 zcmeHK%}T>S5Z-O8O(;SS3VK`cTCfpX5igw)NMr!sw_uXQS>Elw^IE;JvDvhmR?E8e9%bR>em=_v z{`4B3E~HF?YVHS@aa4@j+ov+k{Wy)LDj^Od2)Vh6(@+)zIZMM#<$Bs-*_J(O@6G2< zzuysu{obM@=8ki8+!4LLvsl>H&i=v4`RFMbr}9Pf$>FD`WXoU$uP|A$wJ^I+0{B!+ zTj758rfDM62k=%4R|^sn1H=F^ur3Uk`^{>t%Z6wl!~ikyYYgE1AV3jagQZ4wb-&gP2EH?Zy&p&$>;Ku${l5yLffyhL){_C=7<$72?9J5HrCnmJ6`*&ZC>U32 m{7iv~D#Z|srFa)q3D^Zr09}KnMzDa;9|1)J4aC5oGVlQdi&XId literal 0 HcmV?d00001 diff --git a/paywithiyzico/views/templates/.DS_Store b/paywithiyzico/views/templates/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..afaef7fefa6f24008a6fb3dd8f1bda652cb0359b GIT binary patch literal 6148 zcmeHK%}T>S5T3QErWT`xjwn)T(SAi#TnEac3YC!k~j8*Oy@&h*47v;~f{gu_S%B yE)++1El0gYC84-Xp-jO+U&nGnSMfHg6!dYLAi5eeg=j%BKLU~lGZ+Sbl!12!dXg6a literal 0 HcmV?d00001