Plugin Directory

Changeset 3160870


Ignore:
Timestamp:
10/01/2024 01:48:17 PM (16 months ago)
Author:
iyzico
Message:

+new version 3.5.0

Location:
iyzico-woocommerce
Files:
1167 added
3 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • iyzico-woocommerce/trunk/i18n/languages/woocommerce-iyzico-en_US.po

    r2893353 r3160870  
    200200msgid "Payment Checkout Value"
    201201msgstr "Payment Checkout Message "
     202
     203msgid "These payment method settings are made through the admin menu."
     204msgstr "These payment method settings are made through the admin menu."
     205
     206msgid "Click to go to settings."
     207msgstr "Click to go to settings."
     208
     209msgid "Your money safe with iyzico! Store your iyzico card and enjoy one-click payment. All your transactions under the iyzico Buyer Protection guarantee. Get live support 24/7."
     210msgstr "Your money safe with iyzico! Store your iyzico card and enjoy one-click payment. All your transactions under the iyzico Buyer Protection guarantee. Get live support 24/7."
     211
     212msgid "Save Settings"
     213msgstr "Save Settings"
     214
     215msgid "Permission denied."
     216msgstr "Permission denied."
     217
     218msgid "Error"
     219msgstr "Error"
     220
     221msgid "Checkout Form"
     222msgstr "Checkout Form"
     223
     224msgid "Total Earnings (30 Days)"
     225msgstr "Total Earnings (30 Days)"
     226
     227msgid "Growth from Last Month"
     228msgstr "Growth from Last Month"
     229
     230msgid "Total Orders (30 Days)"
     231msgstr "Total Orders (30 Days)"
     232
     233msgid "Last 30 Days Earnings"
     234msgstr "Last 30 Days Earnings"
     235
     236msgid "Growth Compared to Last Month"
     237msgstr "Growth Compared to Last Month"
     238
     239msgid "Number of Orders in the Last 30 Days"
     240msgstr "Number of Orders in the Last 30 Days"
     241
     242msgid "This order will be processed on the iyzico payment page."
     243msgstr "This order will be processed on the iyzico payment page."
     244
     245msgid "Token Not Found"
     246msgstr "Token Not Found"
     247
     248msgid "Payment token is missing. Please try again or contact the store owner if the problem persists."
     249msgtr "Payment token is missing. Please try again or contact the store owner if the problem persists."
     250
     251msgid "Payment process failed. Please try again or choose a different payment method."
     252msgstr "Payment process failed. Please try again or choose a different payment method."
     253
     254msgid "An unknown error occurred during the payment process. Please try again."
     255msgstr "An unknown error occurred during the payment process. Please try again."
     256
     257msgid "Currently in the process of applying for a shopping loan."
     258msgstr "Currently in the process of applying for a shopping loan."
     259
     260msgid "The shopping credit transaction has been initiated."
     261msgstr "The shopping credit transaction has been initiated."
  • iyzico-woocommerce/trunk/i18n/languages/woocommerce-iyzico-tr_TR.po

    r2893353 r3160870  
    212212msgid "Payment Checkout Value"
    213213msgstr "Ödeme Ekran Mesajı"
     214
     215msgid "These payment method settings are made through the admin menu."
     216msgstr "Bu ödeme yöntemi ayarları yönetici menüsünden yapılmaktadır."
     217
     218msgid "Click to go to settings."
     219msgstr "Ayarlar için tıklayınız."
     220
     221msgid "Your money safe with iyzico! Store your iyzico card and enjoy one-click payment. All your transactions under the iyzico Buyer Protection guarantee. Get live support 24/7."
     222msgstr "iyzico ile Öde-Şimdi Kolay! Alışverişini ister iyzico bakiyenle, ister saklı kartınla, ister havale/EFT yöntemi ile kolayca öde; aklına takılan herhangi bir konuda iyzico Korumalı Alışveriş avantajıyla 7/24 canlı destek al."
     223
     224msgid "Save Settings"
     225msgstr "Ayarları Kaydet"
     226
     227msgid "Permission denied."
     228msgstr "İzin reddedildi."
     229
     230msgid "Error"
     231msgstr "Hata"
     232
     233msgid "Checkout Form"
     234msgstr "Ödeme Formu"
     235
     236msgid "Total Earnings (30 Days)"
     237msgstr "Toplam Kazanç (30 Günlük)"
     238
     239msgid "Growth from Last Month"
     240msgstr "Geçen Aya Göre Büyüme"
     241
     242msgid "Total Orders (30 Days)"
     243msgstr "Toplam Sipariş (30 Günlük)"
     244
     245msgid "Last 30 Days Earnings"
     246msgstr "Son 30 Günlük Kazanç"
     247
     248msgid "Growth Compared to Last Month"
     249msgstr "Geçen Aya Göre Büyüme"
     250
     251msgid "Number of Orders in the Last 30 Days"
     252msgstr "Son 30 Gündeki Sipariş Sayısı"
     253
     254msgid "This order will be processed on the iyzico payment page."
     255msgstr "Bu sipariş, iyzico ödeme sayfasında işleme alınacaktır."
     256
     257msgid "Token Not Found"
     258msgstr "Üzgünüm, bir terslik oluştu. Token değeri olmadığından işlemine devam edilemedi."
     259
     260msgid "Payment token is missing. Please try again or contact the store owner if the problem persists."
     261msgstr "Ödemeye ait token bulunamadı. Lütfen tekrar deneyin veya mağaza sahibi ile iletişime geçiniz."
     262
     263msgid "Payment process failed. Please try again or choose a different payment method."
     264msgstr "Ödeme işleme hatası. Lütfen tekrar deneyin veya farklı ödeme seçeneği tekrar deneyiniz."
     265
     266msgid "An unknown error occurred during the payment process. Please try again."
     267msgstr "Ödeme işlemi sırasında bilinmeyen bir hata oluştu. Lütfen tekrar deneyin."
     268
     269msgid "Currently in the process of applying for a shopping loan."
     270msgstr "Alışveriş kredisi başvurusu sürecindedir."
     271
     272msgid "The shopping loan transaction was completed successfully."
     273msgstr "Alışveriş kredisi işlemi başarıyla tamamlandı."
     274
     275msgid "The shopping credit transaction has been initiated."
     276msgstr "Alışveriş kredisi işlemi başlatıldı."
  • iyzico-woocommerce/trunk/readme.txt

    r3036107 r3160870  
    11=== iyzico WooCommerce ===
    2 Contributors: iyzico,mehmetselim,sozgat,feyzullahdemir
     2Contributors: iyzico,mehmetselim,sozgat,feyzullahdemir,tarikkamat
    33Tags: payment, ecommerce, credit card, checkout woocommerce, iyzico, wordpress ecommerce
    4 Tested up to: 6.4.3
    5 Stable tag: 3.4.0
    6 Requires at least: 4.7
    7 Requires PHP: 5.4
     4Tested up to: 6.6.2
     5Stable tag: 3.5.0
     6Requires at least: 6.6.2
     7Requires PHP: 7.4
    88License: LGPL v3.0
    99License URI: https://www.gnu.org/licenses/lgpl-3.0.en.html
     
    3737
    3838Requirements
    39 PHP 5.4 and greater.
     39PHP 7.4 and greater.
    4040cURL
    41 WooCommerce 3.5 requires WordPress 3.5+
     41WooCommerce 9.0.0 requires WordPress 6.6.2+
    4242
    4343
     
    5858
    5959== Changelog ==
     60
     61= 3.5.0 =
     62  * New : WooCommerce HPOS Support
     63  * Fix : PHP functions fixed.
     64  * Fix : White page error fixed.
    6065
    6166= 3.4.0 =
  • iyzico-woocommerce/trunk/woocommerce-gateway-iyzico.php

    r3036107 r3160870  
    77 * Author: iyzico
    88 * Author URI: https://iyzico.com
    9  * Version: 3.4.0
     9 * Version: 3.5.0
     10 * Requires Plugins: woocommerce
     11 * Requires at least: 6.6.2
     12 * Tested up to: 6.6.2
     13 * WC requires at least: 9.0.0
     14 * WC tested up to: 9.3.3
    1015 * Text Domain: iyzico WooCommerce
    1116 * Domain Path: /i18n/languages/
    12  * WC requires at least: 3.0.0
    13  * WC tested up to: 8.5.2
     17 * Tags: payment gateway, WooCommerce, iyzico
    1418 */
    1519
    16 use Automattic\WooCommerce\Utilities\FeaturesUtil;
     20defined('ABSPATH') || exit;
    1721
    18 define('IYZICO_PATH', untrailingslashit(plugin_dir_path(__FILE__)));
    19 define('IYZICO_LANG_PATH', plugin_basename(dirname(__FILE__)) . '/i18n/languages/');
    20 define('IYZICO_PLUGIN_NAME', '/' . plugin_basename(dirname(__FILE__)));
    21 define('IYZICO_WEBHOOK_URL_KEY', 'iyzicoWebhookUrlKey');
     22/**
     23 * Constants
     24 *
     25 * These constants are used to define the plugin version, base file, path, url and language path.
     26 */
     27const PLUGIN_BASEFILE = __FILE__;
    2228
    23 if (!defined('ABSPATH')) {
    24     exit;
     29define('PLUGIN_PATH', untrailingslashit(plugin_dir_path(PLUGIN_BASEFILE)));
     30define('PLUGIN_URL', untrailingslashit(plugin_dir_url(PLUGIN_BASEFILE)));
     31define('PLUGIN_LANG_PATH', plugin_basename(dirname(PLUGIN_BASEFILE)) . '/i18n/languages/');
     32define('PLUGIN_ASSETS_DIR_URL', plugin_dir_url(__FILE__) . 'assets');
     33define('PLUGIN_DIR_PATH', plugin_dir_path(__FILE__));
     34define('PLUGIN_DIR_URL', plugin_dir_url(__FILE__));
     35define('WEBHOOK_URL_KEY', 'iyzicoWebhookUrlKey');
     36
     37/**
     38 * Composer Autoload
     39 * This is used to autoload the classes.
     40 */
     41if (file_exists(PLUGIN_PATH . '/vendor/autoload.php')) {
     42    require_once PLUGIN_PATH . '/vendor/autoload.php';
    2543}
    26 if (!class_exists('Iyzico_For_WooCommerce')) {
    27 
    28     class Iyzico_For_WooCommerce
    29     {
    30 
    31         public static $webhookUrlValue;
    32         protected static $instance;
    33 
    34         public static function get_instance()
    35         {
    36 
    37             if (null === self::$instance) {
    38                 self::$instance = new self();
    39             }
    40 
    41             return self::$instance;
    42         }
    43 
    44         protected function __construct()
    45         {
    46             add_action('plugins_loaded', array($this, 'init'));
    47             // Blocks Support
    48             add_action('woocommerce_blocks_loaded', array($this, 'iyzico_woocommerce_blocks_support'));
    49             add_action('before_woocommerce_init', array($this, 'iyzico_cart_checkout_blocks_compatibility'));
    50         }
    51 
    52         public static function IyzicoActive()
    53         {
    54 
    55             global $wpdb;
    56             $table_name = $wpdb->prefix . 'iyzico_order';
    57 
    58             $charset_collate = $wpdb->get_charset_collate();
    59 
    60             $sql = "CREATE TABLE $table_name (
    61                 iyzico_order_id int(11) NOT NULL AUTO_INCREMENT,
    62                 payment_id  bigint(11) NOT NULL,
    63                 order_id int(11) NOT NULL,
    64                 total_amount decimal( 10, 2 ) NOT NULL,
    65                 status varchar(20) NOT NULL,
    66                 created_at  timestamp DEFAULT current_timestamp,
    67               PRIMARY KEY (iyzico_order_id)
    68             ) $charset_collate;";
    69 
    70             require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
    71             dbDelta($sql);
    72 
    73             $table_name2 = $wpdb->prefix . 'iyzico_card';
    74             $sql = "CREATE TABLE $table_name2 (
    75                 iyzico_card_id int(11) NOT NULL AUTO_INCREMENT,
    76                 customer_id INT(11) NOT NULL,
    77                 card_user_key varchar(50) NOT NULL,
    78                 api_key varchar(50) NOT NULL,
    79                 created_at  timestamp DEFAULT current_timestamp,
    80                PRIMARY KEY (iyzico_card_id)
    81             ) $charset_collate;";
    82             dbDelta($sql);
    83         }
    84 
    85         public static function IyzicoDeactive()
    86         {
    87 
    88             global $wpdb;
    89 
    90             delete_option('iyzico_overlay_token');
    91             delete_option('iyzico_overlay_position');
    92             delete_option('iyzico_thank_you');
    93             delete_option('init_active_webhook_url');
    94 
    95             $table_name = $wpdb->prefix . 'iyzico_order';
    96             $table_name2 = $wpdb->prefix . 'iyzico_card';
    97             $charset_collate = $wpdb->get_charset_collate();
    98 
    99             $sql = "DROP TABLE IF EXISTS $table_name;";
    100             $wpdb->query($sql);
    101             $sql = "DROP TABLE IF EXISTS $table_name2;";
    102             $wpdb->query($sql);
    103             flush_rewrite_rules();
    104         }
    105 
    106         public static function paymentIdAlterTable()
    107         {
    108             global $wpdb;
    109             $table = $wpdb->prefix . 'iyzico_order';
    110             $sql = "ALTER TABLE `{$table}`
    111                 MODIFY COLUMN `payment_id` bigint(11) NOT NULL;";
    112             require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
    113             $query_result = $wpdb->query($sql);
    114         }
    115 
    116         public function init()
    117         {
    118             $this->InitIyzicoPaymentGateway();
    119             self::createIyzicoWebhookUrlKey();
    120             self::paymentIdAlterTable();
    121         }
    12244
    12345
    124         /**
    125          *
    126          * @since 3.2.0
    127          * @version 1.0.0
    128          * action: before_woocommerce_init
    129          *
    130          */
    131         public function iyzico_cart_checkout_blocks_compatibility()
    132         {
    133             if (class_exists('\Automattic\WooCommerce\Utilities\FeaturesUtil')) {
    134                 FeaturesUtil::declare_compatibility('cart_checkout_blocks', __FILE__, true);
    135             }
    136         }
     46/**
     47 * Plugin Activation and Deactivation
     48 */
     49register_activation_hook(PLUGIN_BASEFILE, ['\Iyzico\IyzipayWoocommerce\Core\Plugin', 'activate']);
     50register_deactivation_hook(PLUGIN_BASEFILE, ['\Iyzico\IyzipayWoocommerce\Core\Plugin', 'deactivate']);
    13751
    138         /**
    139          *
    140          * @since 3.2.0
    141          * @version 1.0.0
    142          * action: woocommerce_blocks_loaded
    143          *
    144          */
    145         public function iyzico_woocommerce_blocks_support()
    146         {
    147             if (!class_exists('Automattic\WooCommerce\Blocks\Payments\Integrations\AbstractPaymentMethodType')) {
    148                 return;
    149             }
    150 
    151             include_once IYZICO_PATH . '/library/iyzico-for-woocommerce-blocks.php';
    152 
    153             add_action(
    154                 'woocommerce_blocks_payment_method_type_registration',
    155                 function (Automattic\WooCommerce\Blocks\Payments\PaymentMethodRegistry $payment_method_registry) {
    156                     $payment_method_registry->register(new Iyzico_For_WooCommerce_Blocks);
    157                 }
    158             );
    159         }
    160 
    161 
    162 
    163         public static function installLanguage()
    164         {
    165 
    166             load_plugin_textdomain('woocommerce-iyzico', false, IYZICO_LANG_PATH);
    167         }
    168 
    169         public function InitIyzicoPaymentGateway()
    170         {
    171 
    172             if (!class_exists('WC_Payment_Gateway')) {
    173                 return;
    174             }
    175 
    176             include_once IYZICO_PATH . '/library/iyzico-for-woocommerce-gateway.php';
    177             include_once IYZICO_PATH . '/library/iyzico-for-woocommerce-gateway-fields.php';
    178             include_once IYZICO_PATH . '/library/iyzico-for-woocommerce-gateway-formobjectgenerate.php';
    179             include_once IYZICO_PATH . '/library/iyzico-for-woocommerce-gateway-helper.php';
    180             include_once IYZICO_PATH . '/library/iyzico-for-woocommerce-gateway-model.php';
    181             include_once IYZICO_PATH . '/library/iyzico-for-woocommerce-gateway-pkibuilder.php';
    182             include_once IYZICO_PATH . '/library/iyzico-for-woocommerce-gateway-iyzicorequest.php';
    183             include_once IYZICO_PATH . '/library/iyzico-for-woocommerce-gateway-responseobjectgenerate.php';
    184             include_once IYZICO_PATH . '/library/iyzico-for-woocommerce-buyer-protection.php';
    185             include_once IYZICO_PATH . '/library/iyzico-for-woocommerce-webhook.php';
    186             /* PWI */
    187             include_once IYZICO_PATH . '/library/iyzico-pwi-for-woocommerce-gateway.php';
    188             include_once IYZICO_PATH . '/library/iyzico-pwi-for-woocommerce-gateway-fields.php';
    189 
    190             add_action('rest_api_init', array('IyzicoWebhook', 'iyzicoRegisterRestRoutes'));
    191 
    192             add_filter('woocommerce_payment_gateways', array($this, 'AddIyzicoGateway'));
    193 
    194             add_action(
    195                 'wp_footer',
    196                 array(
    197                     'Iyzico_Checkout_For_WooCommerce_Buyer_Protection',
    198                     'iyzicoOverlayScriptMobileCss'
    199                 )
    200             );
    201 
    202             add_action(
    203                 'wp_footer',
    204                 array(
    205                     'Iyzico_Checkout_For_WooCommerce_Buyer_Protection',
    206                     'getOverlayScript'
    207                 )
    208             );
    209 
    210             add_action(
    211                 'woocommerce_admin_order_data_after_shipping_address',
    212                 array(
    213                     'Iyzico_Checkout_For_WooCommerce_Buyer_Protection',
    214                     'iyziCargoTracking'
    215                 )
    216             );
    217 
    218             add_action(
    219                 'woocommerce_process_shop_order_meta',
    220                 array(
    221                     'Iyzico_Checkout_For_WooCommerce_Buyer_Protection',
    222                     'iyziCargoTrackingSave'
    223                 )
    224             );
    225 
    226             if (is_admin()) {
    227                 add_filter(
    228                     'plugin_action_links_' . plugin_basename(__FILE__),
    229                     array(
    230                         $this,
    231                         'actionLinks'
    232                     )
    233                 );
    234             }
    235         }
    236 
    237         public function AddIyzicoGateway($methods)
    238         {
    239 
    240             $methods[] = 'Iyzico_Checkout_For_WooCommerce_Gateway';
    241             $methods[] = 'Iyzico_PWI_For_WooCommerce_Gateway';
    242 
    243             return $methods;
    244         }
    245 
    246         /**
    247          * Show action links on the plugin screen.
    248          *
    249          * @version 1.0.1
    250          * @since   3.1.0
    251          * @param   mixed $links Links array.
    252          * @return  array
    253          */
    254         public function actionLinks($links)
    255         {
    256             $custom_links   = array();
    257             $custom_links[] = '<a href="' . admin_url('admin.php?page=wc-settings&tab=checkout&section=iyzico') . '">' . __('Settings', 'woocommerce') . '</a>';
    258             $custom_links[] = '<a target="_blank" href="https://dev.iyzipay.com/tr/acik-kaynak/woocommerce">' . __('Docs', 'woocommerce') . '</a>';
    259             $custom_links[] = '<a target="_blank" href="https://www.iyzico.com/destek/iletisim">' . __('Support', 'woocommerce-iyzico') . '</a>';
    260             return array_merge($custom_links, $links);
    261         }
    262 
    263         /**
    264          * Create iyzico Webhook Url Key.
    265          *
    266          * @version 1.0.0
    267          * @since   3.1.0
    268          */
    269         private function createIyzicoWebhookUrlKey()
    270         {
    271             $uniqueUrlId = substr(base64_encode(time() . mt_rand()), 15, 6);
    272             $iyziUrlId = get_option(IYZICO_WEBHOOK_URL_KEY);
    273             if (!$iyziUrlId) {
    274                 add_option(IYZICO_WEBHOOK_URL_KEY, $uniqueUrlId, '', 'no');
    275             }
    276         }
    277     }
    278 
    279     Iyzico_For_WooCommerce::get_instance();
    280     add_action('plugins_loaded', array('Iyzico_For_WooCommerce', 'installLanguage'));
    281     register_activation_hook(__FILE__, array('Iyzico_For_WooCommerce', 'IyzicoActive'));
    282     register_deactivation_hook(__FILE__, array('Iyzico_For_WooCommerce', 'IyzicoDeactive'));
    283 }
     52/**
     53 * Initialize the plugin
     54 */
     55add_action('plugins_loaded', ['\Iyzico\IyzipayWoocommerce\Core\Plugin', 'init']);
Note: See TracChangeset for help on using the changeset viewer.