Plugin Directory

Changeset 3420526


Ignore:
Timestamp:
12/15/2025 09:57:45 PM (4 months ago)
Author:
maalypay
Message:

feat: update version to 1.1.7

Location:
maaly-pay/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • maaly-pay/trunk/includes/class-maaly-pay-admin.php

    r3399516 r3420526  
    186186                        $requestedAmount = isset($res['requestedAmount']) ? $res['requestedAmount'] : '—';
    187187                        $status = isset($res['status']) ? ($res['status'] ? esc_html__('✅ Completed', 'maaly-pay') : esc_html__('⏳ Pending/Failed', 'maaly-pay')) : esc_html__('Unknown', 'maaly-pay');
     188
     189                        $paymentStatus = isset($res['status']) ? isset($res['requestedAmount']) ? $res['status'] : false : false;
     190
     191                        $orders = wc_get_orders([
     192                            'limit' => 1,
     193                            'meta_key' => 'maaly_merchant_tx_id',
     194                            'meta_value' => $merchant_tx_id,
     195                        ]);
     196
     197                        if (!empty($orders)) {
     198                            $order = $orders[0];
     199
     200                            if ($paymentStatus) {
     201                                $order->payment_complete();
     202                                $order->add_order_note('Payment completed via Maaly.');
     203                            }
     204                        }
    188205
    189206                        echo '<h2>' . esc_html__('Result', 'maaly-pay') . '</h2>';
  • maaly-pay/trunk/includes/class-maaly-pay-gateway-blocks.php

    r3411419 r3420526  
    6060            : array(
    6161                'dependencies' => array(),
    62                 'version' => '1.1.5'
     62                'version' => '1.1.7'
    6363            );
    6464        $script_url = MAALY_PAY_REL_PLUGIN_URL . $script_path;
  • maaly-pay/trunk/includes/class-maaly-pay-settings.php

    r3399516 r3420526  
    8080        );
    8181
    82         add_settings_field(
    83             'maaly_fiat_amount',
    84             __('Fiat Amount', 'maaly-pay'),
    85             [__CLASS__, 'render_fiat_amount_field'],
    86             'maaly_settings',
    87             'maaly_settings_section'
    88         );
     82        // add_settings_field(
     83        //     'maaly_fiat_amount',
     84        //     __('Fiat Amount', 'maaly-pay'),
     85        //     [__CLASS__, 'render_fiat_amount_field'],
     86        //     'maaly_settings',
     87        //     'maaly_settings_section'
     88        // );
    8989
    9090        add_settings_field(
     
    112112        );
    113113
    114         add_settings_field(
    115             'maaly_open_checkout',
    116             __('Open Checkout', 'maaly-pay'),
    117             [__CLASS__, 'render_open_checkout_field'],
    118             'maaly_settings',
    119             'maaly_settings_section'
    120         );
     114        // add_settings_field(
     115        //     'maaly_open_checkout',
     116        //     __('Open Checkout', 'maaly-pay'),
     117        //     [__CLASS__, 'render_open_checkout_field'],
     118        //     'maaly_settings',
     119        //     'maaly_settings_section'
     120        // );
    121121    }
    122122
     
    197197            __('Maaly Pay', 'maaly-pay'),
    198198            'manage_options',
    199             'maaly-pay-create',
    200             ['Maaly_Pay_Admin', 'render_create_page'],
     199            'maaly-pay-settings',
     200            ['Maaly_Pay_Admin', 'render_settings_page'],
    201201            'dashicons-tickets',
    202202            56
    203203        );
    204204
     205        // add_submenu_page(
     206        //     'maaly-pay-create',
     207        //     __('Create Payment', 'maaly-pay'),
     208        //     __('Create Payment', 'maaly-pay'),
     209        //     'manage_options',
     210        //     'maaly-pay-create',
     211        //     ['Maaly_Pay_Admin', 'render_create_page']
     212        // );
     213
    205214        add_submenu_page(
    206             'maaly-pay-create',
    207             __('Create Payment', 'maaly-pay'),
    208             __('Create Payment', 'maaly-pay'),
    209             'manage_options',
    210             'maaly-pay-create',
    211             ['Maaly_Pay_Admin', 'render_create_page']
    212         );
    213 
    214         add_submenu_page(
    215             'maaly-pay-create',
     215            'maaly-pay-settings',
    216216            __('Check Status', 'maaly-pay'),
    217217            __('Check Status', 'maaly-pay'),
     
    222222
    223223        add_submenu_page(
    224             'maaly-pay-create',
     224            'maaly-pay-settings',
    225225            __('Settings', 'maaly-pay'),
    226226            __('Settings', 'maaly-pay'),
  • maaly-pay/trunk/maaly-pay.php

    r3411708 r3420526  
    33Plugin Name: Maaly Pay
    44Description: Accept cryptocurrency payments via Maaly Pay API (WooCommerce gateway integration).
    5 Version: 1.1.5
     5Version: 1.1.7
    66Author: Your Name
    77Requires at least: 5.2
     
    2222// CONSTANTS
    2323// -----------------------------------------------------------------------------
    24 define('MAALY_PAY_VERSION', '1.1.5');
     24define('MAALY_PAY_VERSION', '1.1.7');
    2525define('MAALY_PAY_PLUGIN_FILE', __FILE__);
    2626define('MAALY_PAY_PLUGIN_DIR', plugin_dir_path(__FILE__));
     
    240240                        .'</div>'
    241241                        .'<h1 style="color: #012169; font-size: 20px; margin: 10px 0;">Payment Successful!</h1><br>'
    242                         .'<h1 style="color: #FFF33; font-size: 12px; margin: 10px 0;">You will be redirected to main page soon...</h1>'
     242                        .'<h1 style="color: #00000066; font-size: 12px; margin: 10px 0;">You will be redirected to orders page soon...</h1>'
    243243                    .'</div>'
    244244                .'</div>'
     
    246246                <script>
    247247                    setTimeout(() => {
    248                         document.location.href = "'. get_home_url() .'/"
     248                        document.location.href = "'. wc_get_account_endpoint_url('orders') .'/"
    249249                    }, 5000)
    250250                </script>
  • maaly-pay/trunk/readme.txt

    r3399304 r3420526  
    4646
    4747== Usage ==
    48 - Create Payment: fill the form, submit, open/iframe the Checkout URL.
    49 - Check Status: enter merchant_tx_id and submit to view status/amount.
     48- You could accept cryptocurrencies with Maaly Pay.
    5049
    5150== Changelog ==
    52 = 1.1.0 =
     51= 1.1.7 =
    5352Initial release.
Note: See TracChangeset for help on using the changeset viewer.