This repository has been archived by the owner on Apr 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd176f2
commit e363d9e
Showing
259 changed files
with
5,323 additions
and
4,411 deletions.
There are no files selected for viewing
390 changes: 199 additions & 191 deletions
390
...r/payment/iyzico_checkout_installment.php → ...ntroller/payment/iyzico_checkout_form.php
Large diffs are not rendered by default.
Oops, something went wrong.
68 changes: 68 additions & 0 deletions
68
Payments/iyzico/upload/admin/language/en-GB/payment/iyzico_checkout_form.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<?php | ||
|
||
// Heading | ||
$_['heading_title'] = 'Iyzico Checkout Form'; | ||
|
||
// Text | ||
$_['text_link'] = 'Register to become iyzico Merchant'; | ||
$_['text_payment'] = 'Payment'; | ||
$_['text_success'] = 'iyzico checkout settings updated'; | ||
$_['text_iyzico_checkout_form'] = '<a href="https://www.iyzico.com/" target="_blank"><img src="view/image/payment/iyzico_checkout_form.png" alt="iyzico" title="iyzico"/></a>'; | ||
$_['text_iyzico_checkout_form_info'] = 'You can get your API ID and Secret Key values from <a href="https://merchant.iyzipay.com/settings" target="_blank">https://merchant.iyzipay.com/settings</a>'; | ||
// Entry | ||
$_['entry_api_id_live'] = 'Live API ID'; | ||
$_['entry_secret_key_live'] = 'Live Secret Key'; | ||
$_['entry_total'] = 'Total'; | ||
$_['entry_order_status'] = 'Order Status'; | ||
$_['entry_status'] = 'Status'; | ||
$_['entry_sort_order'] = 'Sort Order'; | ||
$_['entry_class'] = "Form Class "; | ||
$_['entry_class_popup'] = "Popup"; | ||
$_['entry_class_responsive'] = "Responsive"; | ||
$_['entry_test'] = "Test Mode"; | ||
$_['entry_cancel_order_status'] = "Cancel Order Status"; | ||
|
||
// Error | ||
$_['error_permission'] = 'You are not authorized!'; | ||
$_['error_api_id_live'] = 'API ID required!'; | ||
$_['error_secret_key_live'] = 'Secret key required!'; | ||
$_['error_invalid_order'] = 'Invalid Order'; | ||
|
||
$_['iyzico_single_keys_must_configured'] = "You must configure iyzico single payment keys to activate this plugin."; | ||
$_['Token Expired.'] = 'Token Expired.'; | ||
$_['Token is expired. Please try again.'] = 'Token is expired. Please try again.'; | ||
$_['Invalid call.'] = 'Invalid call.'; | ||
|
||
// Details | ||
$_['payment_transaction_type'] = 'Payment Transaction'; | ||
$_['cancel_transaction_type'] = 'Cancel'; | ||
$_['refund_transaction_type'] = 'Refund'; | ||
$_['cancel_done_success'] = 'Your order has been canceled successfully.'; | ||
|
||
$_['request_amount_not_greater_than'] = 'Requested amount should not be greater than %s.'; | ||
$_['refund_done_success'] = 'Refund done successfully. Item Id: %s, Item Name: %s, Amount: %s'; | ||
|
||
$_['order_status_after_payment_tooltip'] = 'Order status after successful payment'; | ||
$_['order_status_after_cancel_tooltip'] = 'Order status after successful cancel'; | ||
$_['test_tooltip'] = 'Use the live or testing (sandbox) gateway server to process transactions'; | ||
$_['total_tooltip'] = 'The checkout total the order must reach before this payment method becomes active'; | ||
|
||
$_['text_payment_cancel'] = 'Payment Cancel'; | ||
$_['text_order_cancel'] = 'Cancel Full Order'; | ||
$_['text_items'] = 'Item(s)'; | ||
$_['text_transactions'] = 'Transaction(s)'; | ||
$_['text_processing'] = 'Processing...'; | ||
$_['text_item_name'] = 'Item Name'; | ||
$_['text_paid_price'] = 'Paid Price'; | ||
$_['text_total_refunded_amount'] = 'Total Refunded Amount'; | ||
$_['text_action'] = 'Action'; | ||
$_['text_refund'] = 'Refund'; | ||
$_['text_date_added'] = 'Date Added'; | ||
$_['text_type'] = 'Type'; | ||
$_['text_status'] = 'Status'; | ||
$_['text_note'] = 'Note'; | ||
$_['text_are_you_sure'] = 'Are you sure?'; | ||
$_['text_please_enter_amount'] = 'Please Enter Amount.'; | ||
|
||
$_['text_enabled'] = 'Enabled'; | ||
$_['text_disabled'] = 'Disabled'; |
71 changes: 0 additions & 71 deletions
71
Payments/iyzico/upload/admin/language/en-GB/payment/iyzico_checkout_installment.php
This file was deleted.
Oops, something went wrong.
68 changes: 68 additions & 0 deletions
68
Payments/iyzico/upload/admin/language/tr-TR/payment/iyzico_checkout_form.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<?php | ||
|
||
// Heading | ||
$_['heading_title'] = 'Iyzico Ödeme Formu'; | ||
|
||
// Text | ||
$_['text_link'] = 'Iyzico Tüccar olmak için kayıt'; | ||
$_['text_payment'] = 'ödeme'; | ||
$_['text_success'] = 'Ayarlar güncellendi'; | ||
$_['text_iyzico_checkout_form'] = '<a href="https://www.iyzico.com/" target="_blank"><img src="view/image/payment/iyzico_checkout_form.png" alt="iyzico" title="iyzico"/></a>'; | ||
$_['text_iyzico_checkout_form_info'] = "Apı Id ve Secret Key anahtarlarınızı <a href='https://merchant.iyzipay.com/settings' target='_blank'>https://merchant.iyzipay.com/settings</a> 'dan alabilirsiniz."; | ||
// Entry | ||
$_['entry_api_id_live'] = 'Live Api Id'; | ||
$_['entry_secret_key_live'] = 'Live Secret Key'; | ||
$_['entry_total'] = 'Tutar'; | ||
$_['entry_order_status'] = 'Satın sonrası al Durum'; | ||
$_['entry_status'] = 'Durumu'; | ||
$_['entry_sort_order'] = 'Sıralama Türü'; | ||
$_['entry_class'] = "Form Gösterimi"; | ||
$_['entry_class_popup'] = "PopUp"; | ||
$_['entry_class_responsive'] = "Responsive"; | ||
$_['entry_cancel_order_status'] = "İptal"; | ||
$_['entry_test'] = "Test Modu"; | ||
|
||
// Error | ||
$_['error_permission'] = 'Sen yetkiniz yok!'; | ||
$_['error_api_id_live'] = 'Canlı API ID gereklidir!'; | ||
$_['error_secret_key_live'] = 'Canlı Gizli anahtarı gereklidir!'; | ||
$_['error_invalid_order'] = 'Geçersiz Sipariş'; | ||
|
||
$_['iyzico_single_keys_must_configured'] = "Bu eklenti etkinleştirmek için iyzico tek ödeme anahtarlarını yapılandırmanız gerekir."; | ||
$_['Token Expired.'] = 'Token süresi doldu.'; | ||
$_['Token is expired. Please try again.'] = 'Simge süresi dolmuş. Lütfen tekrar deneyiniz.'; | ||
$_['Invalid call.'] = 'Geçersiz arayın.'; | ||
|
||
// Details | ||
$_['payment_transaction_type'] = 'Ödeme İşlemi'; | ||
$_['cancel_transaction_type'] = 'İptal'; | ||
$_['refund_transaction_type'] = 'İade'; | ||
$_['cancel_done_success'] = 'Siparişiniz iptal edilmiştir.'; | ||
|
||
$_['request_amount_not_greater_than'] = "Sipariş tutarı %s 'dan büyük olamaz"; | ||
$_['refund_done_success'] = 'İade işlemi başarılı. Ürün no: %s, Ürün Adı:%s, Tutar: %s'; | ||
|
||
$_['order_status_after_payment_tooltip'] = 'Başarılı ödeme sornası sipariş durumu'; | ||
$_['order_status_after_cancel_tooltip'] = 'Başarılı iptal sonrası sipariş durumu'; | ||
$_['test_tooltip'] = 'Işlemleri gerçekleştirmek için Test veya canlı detay kullanın'; | ||
$_['total_tooltip'] = 'Bu ödeme metodun aktif olması için ulaşılması gereken sepet tutarı'; | ||
|
||
$_['text_payment_cancel'] = 'Ödeme İptal Edildi.'; | ||
$_['text_order_cancel'] = 'İşlemi İptal Et.'; | ||
$_['text_items'] = 'Ürünler'; | ||
$_['text_transactions'] = 'Ürünler'; | ||
$_['text_processing'] = 'İşlem Sürüyor.'; | ||
$_['text_item_name'] = 'Ürün Adı'; | ||
$_['text_paid_price'] = 'Tahsil Edilen Tutar'; | ||
$_['text_total_refunded_amount'] = 'İade Edilen Tutar.'; | ||
$_['text_action'] = 'Aksiyon'; | ||
$_['text_refund'] = 'İade'; | ||
$_['text_date_added'] = 'Eklenme Tarihi'; | ||
$_['text_type'] = 'Tip'; | ||
$_['text_status'] = 'Statu'; | ||
$_['text_note'] = 'Not'; | ||
$_['text_are_you_sure'] = 'Emin misiniz?'; | ||
$_['text_please_enter_amount'] = 'Lütfen Tutar Giriniz.'; | ||
|
||
$_['text_enabled'] = 'Enabled'; | ||
$_['text_disabled'] = 'Disabled'; |
71 changes: 0 additions & 71 deletions
71
Payments/iyzico/upload/admin/language/tr-TR/payment/iyzico_checkout_installment.php
This file was deleted.
Oops, something went wrong.
89 changes: 89 additions & 0 deletions
89
Payments/iyzico/upload/admin/model/payment/iyzico_checkout_form.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
<?php | ||
|
||
class ModelPaymentIyzicoCheckoutForm extends Model { | ||
|
||
/** | ||
* Create tables | ||
*/ | ||
public function install() { | ||
$this->db->query(" | ||
CREATE TABLE IF NOT EXISTS `" . DB_PREFIX . "iyzico_order` ( | ||
`iyzico_order_id` INT(11) NOT NULL AUTO_INCREMENT, | ||
`order_id` INT(11) NOT NULL, | ||
`item_id` INT(11) NOT NULL DEFAULT 0, | ||
`transaction_status` VARCHAR(50), | ||
`date_created` DATETIME NOT NULL, | ||
`date_modified` DATETIME NOT NULL, | ||
`processing_timestamp` DATETIME NOT NULL, | ||
`api_request` TEXT, | ||
`api_response` TEXT, | ||
`request_type` VARCHAR(50), | ||
`note` TEXT, | ||
PRIMARY KEY (`iyzico_order_id`) | ||
) ENGINE=MyISAM DEFAULT COLLATE=utf8_general_ci;"); | ||
|
||
$this->db->query(" | ||
CREATE TABLE IF NOT EXISTS `" . DB_PREFIX . "iyzico_order_refunds` ( | ||
`iyzico_order_refunds_id` INT(11) NOT NULL AUTO_INCREMENT, | ||
`order_id` INT(11) NOT NULL, | ||
`item_id` INT(11) NOT NULL, | ||
`payment_transaction_id` INT(11) NOT NULL, | ||
`paid_price` VARCHAR(50), | ||
`total_refunded` VARCHAR(50), | ||
PRIMARY KEY (`iyzico_order_refunds_id`) | ||
) ENGINE=MyISAM DEFAULT COLLATE=utf8_general_ci;"); | ||
} | ||
|
||
/** | ||
* Drop tables | ||
*/ | ||
public function uninstall() { | ||
$this->db->query("DROP TABLE IF EXISTS `" . DB_PREFIX . "iyzico_order`;"); | ||
$this->db->query("DROP TABLE IF EXISTS `" . DB_PREFIX . "iyzico_order_refunds`;"); | ||
} | ||
|
||
/** | ||
* Log | ||
* | ||
*/ | ||
public function logger($message) { | ||
$log = new Log('iyzico_checkout_form.log'); | ||
$log->write($message); | ||
} | ||
|
||
/** | ||
* Create order entry for iyzico transactions | ||
* | ||
*/ | ||
public function createOrderEntry($data) { | ||
|
||
$query_string = "INSERT INTO " . DB_PREFIX . "iyzico_order SET"; | ||
$data_array = array(); | ||
foreach ($data as $key => $value) { | ||
$data_array[] = "`$key` = '" . $this->db->escape($value) . "'"; | ||
} | ||
$data_string = implode(", ", $data_array); | ||
$query_string .= $data_string; | ||
$query_string .= ";"; | ||
$this->db->query($query_string); | ||
return $this->db->getLastId(); | ||
} | ||
|
||
/** | ||
* Update order details for iyzico transactions | ||
* | ||
*/ | ||
public function updateOrderEntry($data, $id) { | ||
|
||
$query_string = "UPDATE " . DB_PREFIX . "iyzico_order SET"; | ||
$data_array = array(); | ||
foreach ($data as $key => $value) { | ||
$data_array[] = "`$key` = '" . $this->db->escape($value) . "'"; | ||
} | ||
$data_string = implode(", ", $data_array); | ||
$query_string .= $data_string; | ||
$query_string .= " WHERE `iyzico_order_id` = {$id};"; | ||
return $this->db->query($query_string); | ||
} | ||
|
||
} |
Oops, something went wrong.