Changeset 3420526
- Timestamp:
- 12/15/2025 09:57:45 PM (4 months ago)
- Location:
- maaly-pay/trunk
- Files:
-
- 5 edited
-
includes/class-maaly-pay-admin.php (modified) (1 diff)
-
includes/class-maaly-pay-gateway-blocks.php (modified) (1 diff)
-
includes/class-maaly-pay-settings.php (modified) (4 diffs)
-
maaly-pay.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
maaly-pay/trunk/includes/class-maaly-pay-admin.php
r3399516 r3420526 186 186 $requestedAmount = isset($res['requestedAmount']) ? $res['requestedAmount'] : '—'; 187 187 $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 } 188 205 189 206 echo '<h2>' . esc_html__('Result', 'maaly-pay') . '</h2>'; -
maaly-pay/trunk/includes/class-maaly-pay-gateway-blocks.php
r3411419 r3420526 60 60 : array( 61 61 'dependencies' => array(), 62 'version' => '1.1. 5'62 'version' => '1.1.7' 63 63 ); 64 64 $script_url = MAALY_PAY_REL_PLUGIN_URL . $script_path; -
maaly-pay/trunk/includes/class-maaly-pay-settings.php
r3399516 r3420526 80 80 ); 81 81 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 // ); 89 89 90 90 add_settings_field( … … 112 112 ); 113 113 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 // ); 121 121 } 122 122 … … 197 197 __('Maaly Pay', 'maaly-pay'), 198 198 'manage_options', 199 'maaly-pay- create',200 ['Maaly_Pay_Admin', 'render_ create_page'],199 'maaly-pay-settings', 200 ['Maaly_Pay_Admin', 'render_settings_page'], 201 201 'dashicons-tickets', 202 202 56 203 203 ); 204 204 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 205 214 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', 216 216 __('Check Status', 'maaly-pay'), 217 217 __('Check Status', 'maaly-pay'), … … 222 222 223 223 add_submenu_page( 224 'maaly-pay- create',224 'maaly-pay-settings', 225 225 __('Settings', 'maaly-pay'), 226 226 __('Settings', 'maaly-pay'), -
maaly-pay/trunk/maaly-pay.php
r3411708 r3420526 3 3 Plugin Name: Maaly Pay 4 4 Description: Accept cryptocurrency payments via Maaly Pay API (WooCommerce gateway integration). 5 Version: 1.1. 55 Version: 1.1.7 6 6 Author: Your Name 7 7 Requires at least: 5.2 … … 22 22 // CONSTANTS 23 23 // ----------------------------------------------------------------------------- 24 define('MAALY_PAY_VERSION', '1.1. 5');24 define('MAALY_PAY_VERSION', '1.1.7'); 25 25 define('MAALY_PAY_PLUGIN_FILE', __FILE__); 26 26 define('MAALY_PAY_PLUGIN_DIR', plugin_dir_path(__FILE__)); … … 240 240 .'</div>' 241 241 .'<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 mainpage soon...</h1>'242 .'<h1 style="color: #00000066; font-size: 12px; margin: 10px 0;">You will be redirected to orders page soon...</h1>' 243 243 .'</div>' 244 244 .'</div>' … … 246 246 <script> 247 247 setTimeout(() => { 248 document.location.href = "'. get_home_url() .'/"248 document.location.href = "'. wc_get_account_endpoint_url('orders') .'/" 249 249 }, 5000) 250 250 </script> -
maaly-pay/trunk/readme.txt
r3399304 r3420526 46 46 47 47 == 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. 50 49 51 50 == Changelog == 52 = 1.1. 0=51 = 1.1.7 = 53 52 Initial release.
Note: See TracChangeset
for help on using the changeset viewer.