Changeset 2872540
- Timestamp:
- 02/28/2023 04:57:15 PM (3 years ago)
- Location:
- solpress-payment-gateway
- Files:
-
- 2 deleted
- 6 edited
- 41 copied
-
tags/2.0.6 (copied) (copied from solpress-payment-gateway/trunk)
-
tags/2.0.6/README.txt (deleted)
-
tags/2.0.6/admin/class-solpress-admin.php (copied) (copied from solpress-payment-gateway/trunk/admin/class-solpress-admin.php)
-
tags/2.0.6/changes.txt (copied) (copied from solpress-payment-gateway/trunk/changes.txt) (1 diff)
-
tags/2.0.6/composer.json (copied) (copied from solpress-payment-gateway/trunk/composer.json)
-
tags/2.0.6/composer.lock (copied) (copied from solpress-payment-gateway/trunk/composer.lock)
-
tags/2.0.6/helper.php (copied) (copied from solpress-payment-gateway/trunk/helper.php)
-
tags/2.0.6/includes/class-solpress.php (copied) (copied from solpress-payment-gateway/trunk/includes/class-solpress.php)
-
tags/2.0.6/includes/class-wc-solpress-solana.php (copied) (copied from solpress-payment-gateway/trunk/includes/class-wc-solpress-solana.php) (6 diffs)
-
tags/2.0.6/public/class-solpress-public.php (copied) (copied from solpress-payment-gateway/trunk/public/class-solpress-public.php)
-
tags/2.0.6/public/front/.gitignore (copied) (copied from solpress-payment-gateway/trunk/public/front/.gitignore)
-
tags/2.0.6/public/front/README.md (copied) (copied from solpress-payment-gateway/trunk/public/front/README.md)
-
tags/2.0.6/public/front/analysis (copied) (copied from solpress-payment-gateway/trunk/public/front/analysis)
-
tags/2.0.6/public/front/build/asset-manifest.json (copied) (copied from solpress-payment-gateway/trunk/public/front/build/asset-manifest.json)
-
tags/2.0.6/public/front/build/favicon.ico (copied) (copied from solpress-payment-gateway/trunk/public/front/build/favicon.ico)
-
tags/2.0.6/public/front/build/index.html (copied) (copied from solpress-payment-gateway/trunk/public/front/build/index.html)
-
tags/2.0.6/public/front/build/manifest.json (copied) (copied from solpress-payment-gateway/trunk/public/front/build/manifest.json)
-
tags/2.0.6/public/front/build/robots.txt (copied) (copied from solpress-payment-gateway/trunk/public/front/build/robots.txt)
-
tags/2.0.6/public/front/build/static (copied) (copied from solpress-payment-gateway/trunk/public/front/build/static)
-
tags/2.0.6/public/front/config-overrides.js (copied) (copied from solpress-payment-gateway/trunk/public/front/config-overrides.js)
-
tags/2.0.6/public/front/package.json (copied) (copied from solpress-payment-gateway/trunk/public/front/package.json)
-
tags/2.0.6/public/front/public (copied) (copied from solpress-payment-gateway/trunk/public/front/public)
-
tags/2.0.6/public/front/src/App.tsx (copied) (copied from solpress-payment-gateway/trunk/public/front/src/App.tsx)
-
tags/2.0.6/public/front/src/api (copied) (copied from solpress-payment-gateway/trunk/public/front/src/api)
-
tags/2.0.6/public/front/src/components (copied) (copied from solpress-payment-gateway/trunk/public/front/src/components)
-
tags/2.0.6/public/front/src/contexts (copied) (copied from solpress-payment-gateway/trunk/public/front/src/contexts)
-
tags/2.0.6/public/front/src/hooks (copied) (copied from solpress-payment-gateway/trunk/public/front/src/hooks)
-
tags/2.0.6/public/front/src/images (copied) (copied from solpress-payment-gateway/trunk/public/front/src/images)
-
tags/2.0.6/public/front/src/index.tsx (copied) (copied from solpress-payment-gateway/trunk/public/front/src/index.tsx)
-
tags/2.0.6/public/front/src/react-app-env.d.ts (copied) (copied from solpress-payment-gateway/trunk/public/front/src/react-app-env.d.ts)
-
tags/2.0.6/public/front/src/reportWebVitals.ts (copied) (copied from solpress-payment-gateway/trunk/public/front/src/reportWebVitals.ts)
-
tags/2.0.6/public/front/src/services (copied) (copied from solpress-payment-gateway/trunk/public/front/src/services)
-
tags/2.0.6/public/front/src/setupTests.ts (copied) (copied from solpress-payment-gateway/trunk/public/front/src/setupTests.ts)
-
tags/2.0.6/public/front/src/styles (copied) (copied from solpress-payment-gateway/trunk/public/front/src/styles)
-
tags/2.0.6/public/front/src/types (copied) (copied from solpress-payment-gateway/trunk/public/front/src/types)
-
tags/2.0.6/public/front/src/utils (copied) (copied from solpress-payment-gateway/trunk/public/front/src/utils)
-
tags/2.0.6/public/front/tsconfig.json (copied) (copied from solpress-payment-gateway/trunk/public/front/tsconfig.json)
-
tags/2.0.6/public/front/yarn.lock (copied) (copied from solpress-payment-gateway/trunk/public/front/yarn.lock)
-
tags/2.0.6/public/js/solpress-public.js (copied) (copied from solpress-payment-gateway/trunk/public/js/solpress-public.js)
-
tags/2.0.6/readme.txt (copied) (copied from solpress-payment-gateway/trunk/readme.txt) (2 diffs)
-
tags/2.0.6/solpress.php (copied) (copied from solpress-payment-gateway/trunk/solpress.php) (2 diffs)
-
tags/2.0.6/utils (copied) (copied from solpress-payment-gateway/trunk/utils)
-
tags/2.0.6/utils/run_phpcs.sh (modified) (1 diff)
-
tags/2.0.6/vendor (deleted)
-
trunk/changes.txt (modified) (1 diff)
-
trunk/includes/class-wc-solpress-solana.php (modified) (6 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/solpress.php (modified) (2 diffs)
-
trunk/utils/run_phpcs.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
solpress-payment-gateway/tags/2.0.6/changes.txt
r2868534 r2872540 1 ### 2023.02.28 2 - Fixing file conflicts caused by version updates. 3 ### 2023.02.24 4 - Fixed issue with saving custom currency failing. 5 1 6 ### 2023.02.21 2 7 - Added fields for custom classes for payment buttons on the WC settings page. -
solpress-payment-gateway/tags/2.0.6/includes/class-wc-solpress-solana.php
r2868534 r2872540 114 114 if (strlen($this->get_option('custom_spl_symbol')) > 0 && strlen($this->get_option('custom_spl_name')) > 0) { 115 115 $this->addCustomTokenCurrency(); 116 } 117 116 117 add_action( 'woocommerce_settings_pricing_options', 'my_custom_pricing_options_description' ); 118 function my_custom_pricing_options_description( ) { 119 ?> 120 <p><?php echo esc_html( 'The currency is set by Solpress Payment Gateway.' ); ?></p> 121 <?php 122 123 } 124 125 } 126 118 127 } 119 128 … … 125 134 * Custom currency and currency symbol 126 135 */ 127 add_filter('woocommerce_currencies', function($currencies) use ($token_name ){128 $currencies[ 'CSPLT'] = __( $token_name , 'woocommerce');136 add_filter('woocommerce_currencies', function($currencies) use ($token_name, $token_symbol){ 137 $currencies[$token_symbol] = __( $token_name , 'woocommerce'); 129 138 return $currencies; 130 139 }); … … 132 141 add_filter('woocommerce_currency_symbol', function ($currency_symbol, $currency) use($token_symbol) { 133 142 switch ($currency) { 134 case 'CSPLT':143 case $token_symbol: 135 144 $currency_symbol = $token_symbol; 136 145 break; … … 139 148 }, 10, 2); 140 149 150 update_option('woocommerce_currency', $token_symbol); 141 151 142 152 } … … 338 348 $transaction_token = 'Gh9ZwEmdLJ8DscKNTkTqPbNwLNNBjuSzaG9Vp2KGtKJr'; 339 349 } else { 340 $end_point = strlen($this->network_url) > 0 ? $this->network_url : $default_mainnet_rpc;350 $end_point = $this->network_url; 341 351 $transaction_token = strlen($this->custom_spl_token) > 0 && $this->custom_spl_enabled !== 'no' ? $this->custom_spl_token : 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'; 342 352 } … … 372 382 if (!is_wp_error($confirmed)) { 373 383 $confirmed_body = isset($confirmed['body']) ? json_decode($confirmed['body'], true) : array(); 374 // $this->memo = $this->generate_memo();375 384 $program_index = $confirmed_body['result']['transaction']['message']['instructions'][0]['programIdIndex']; 376 385 $program_account = $confirmed_body['result']['transaction']['message']['accountKeys'][$program_index]; -
solpress-payment-gateway/tags/2.0.6/readme.txt
r2868534 r2872540 2 2 Contributors: solpressplugins 3 3 Donate link: https://solpress.dev 4 Tags: solana pay, woocommerce, payment, payment gateway, solana, crypto, phantom, phantom wallet 4 Tags: solana pay, woocommerce, payment, payment gateway, solana, crypto, phantom, phantom wallet, crypto payment, crypto woocommerce, payment crypto 5 5 Requires at least: 4.7 6 6 Tested up to: 6.1 7 Stable tag: 2.0. 07 Stable tag: 2.0.6 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later … … 46 46 47 47 = 1.0 = 48 * Initial launch of plugin supporting Phantom wallet and USDC on Solana. 48 * Initial launch of plugin supporting Phantom wallet and USDC on Solana. 49 50 Read `./changes.txt` for bug fixes. -
solpress-payment-gateway/tags/2.0.6/solpress.php
r2868543 r2872540 17 17 * Plugin URI: https://solpress.dev 18 18 * Description: A payment gateway using Solana Pay for your WooCommerce store. 19 * Version: 2.0. 019 * Version: 2.0.6 20 20 * Author: Solpress 21 21 * Author URI: https://profiles.wordpress.org/solpressplugins/ … … 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define( 'SOLPRESS_VERSION', '2.0. 0' );38 define( 'SOLPRESS_VERSION', '2.0.6' ); 39 39 define( 'SOLPRESS_ROOT', plugin_dir_path( __FILE__ ) ); 40 40 define( 'SOLPRESS_ASSETS', SOLPRESS_ROOT . '/assets/' ); -
solpress-payment-gateway/tags/2.0.6/utils/run_phpcs.sh
r2868534 r2872540 1 rm -f wp-vip-go.txt && phpcs --standard=WordPress-VIP-Go -sp --basepath=. --ignore='vendor ' --extensions=php . > wp-vip-go.txt & rm -f wp-var-analysis.txt && phpcs --standard=VariableAnalysis -sp --basepath=. --ignore='vendor' --extensions=php . > wp-var-analysis.txt & rm -f wp-vip-min.txt && phpcs --standard=WordPressVIPMinimum -sp --basepath=. --ignore='vendor' --extensions=php . > wp-vip-min.txt &1 rm -f wp-vip-go.txt && phpcs --standard=WordPress-VIP-Go -sp --basepath=. --ignore='vendor,release' --extensions=php . > wp-vip-go.txt & rm -f wp-var-analysis.txt && phpcs --standard=VariableAnalysis -sp --basepath=. --ignore='vendor,release' --extensions=php . > wp-var-analysis.txt & rm -f wp-vip-min.txt && phpcs --standard=WordPressVIPMinimum -sp --basepath=. --ignore='vendor,release' --extensions=php . > wp-vip-min.txt & -
solpress-payment-gateway/trunk/changes.txt
r2868534 r2872540 1 ### 2023.02.28 2 - Fixing file conflicts caused by version updates. 3 ### 2023.02.24 4 - Fixed issue with saving custom currency failing. 5 1 6 ### 2023.02.21 2 7 - Added fields for custom classes for payment buttons on the WC settings page. -
solpress-payment-gateway/trunk/includes/class-wc-solpress-solana.php
r2868534 r2872540 114 114 if (strlen($this->get_option('custom_spl_symbol')) > 0 && strlen($this->get_option('custom_spl_name')) > 0) { 115 115 $this->addCustomTokenCurrency(); 116 } 117 116 117 add_action( 'woocommerce_settings_pricing_options', 'my_custom_pricing_options_description' ); 118 function my_custom_pricing_options_description( ) { 119 ?> 120 <p><?php echo esc_html( 'The currency is set by Solpress Payment Gateway.' ); ?></p> 121 <?php 122 123 } 124 125 } 126 118 127 } 119 128 … … 125 134 * Custom currency and currency symbol 126 135 */ 127 add_filter('woocommerce_currencies', function($currencies) use ($token_name ){128 $currencies[ 'CSPLT'] = __( $token_name , 'woocommerce');136 add_filter('woocommerce_currencies', function($currencies) use ($token_name, $token_symbol){ 137 $currencies[$token_symbol] = __( $token_name , 'woocommerce'); 129 138 return $currencies; 130 139 }); … … 132 141 add_filter('woocommerce_currency_symbol', function ($currency_symbol, $currency) use($token_symbol) { 133 142 switch ($currency) { 134 case 'CSPLT':143 case $token_symbol: 135 144 $currency_symbol = $token_symbol; 136 145 break; … … 139 148 }, 10, 2); 140 149 150 update_option('woocommerce_currency', $token_symbol); 141 151 142 152 } … … 338 348 $transaction_token = 'Gh9ZwEmdLJ8DscKNTkTqPbNwLNNBjuSzaG9Vp2KGtKJr'; 339 349 } else { 340 $end_point = strlen($this->network_url) > 0 ? $this->network_url : $default_mainnet_rpc;350 $end_point = $this->network_url; 341 351 $transaction_token = strlen($this->custom_spl_token) > 0 && $this->custom_spl_enabled !== 'no' ? $this->custom_spl_token : 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'; 342 352 } … … 372 382 if (!is_wp_error($confirmed)) { 373 383 $confirmed_body = isset($confirmed['body']) ? json_decode($confirmed['body'], true) : array(); 374 // $this->memo = $this->generate_memo();375 384 $program_index = $confirmed_body['result']['transaction']['message']['instructions'][0]['programIdIndex']; 376 385 $program_account = $confirmed_body['result']['transaction']['message']['accountKeys'][$program_index]; -
solpress-payment-gateway/trunk/readme.txt
r2868534 r2872540 2 2 Contributors: solpressplugins 3 3 Donate link: https://solpress.dev 4 Tags: solana pay, woocommerce, payment, payment gateway, solana, crypto, phantom, phantom wallet 4 Tags: solana pay, woocommerce, payment, payment gateway, solana, crypto, phantom, phantom wallet, crypto payment, crypto woocommerce, payment crypto 5 5 Requires at least: 4.7 6 6 Tested up to: 6.1 7 Stable tag: 2.0. 07 Stable tag: 2.0.6 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later … … 46 46 47 47 = 1.0 = 48 * Initial launch of plugin supporting Phantom wallet and USDC on Solana. 48 * Initial launch of plugin supporting Phantom wallet and USDC on Solana. 49 50 Read `./changes.txt` for bug fixes. -
solpress-payment-gateway/trunk/solpress.php
r2868543 r2872540 17 17 * Plugin URI: https://solpress.dev 18 18 * Description: A payment gateway using Solana Pay for your WooCommerce store. 19 * Version: 2.0. 019 * Version: 2.0.6 20 20 * Author: Solpress 21 21 * Author URI: https://profiles.wordpress.org/solpressplugins/ … … 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define( 'SOLPRESS_VERSION', '2.0. 0' );38 define( 'SOLPRESS_VERSION', '2.0.6' ); 39 39 define( 'SOLPRESS_ROOT', plugin_dir_path( __FILE__ ) ); 40 40 define( 'SOLPRESS_ASSETS', SOLPRESS_ROOT . '/assets/' ); -
solpress-payment-gateway/trunk/utils/run_phpcs.sh
r2868534 r2872540 1 rm -f wp-vip-go.txt && phpcs --standard=WordPress-VIP-Go -sp --basepath=. --ignore='vendor ' --extensions=php . > wp-vip-go.txt & rm -f wp-var-analysis.txt && phpcs --standard=VariableAnalysis -sp --basepath=. --ignore='vendor' --extensions=php . > wp-var-analysis.txt & rm -f wp-vip-min.txt && phpcs --standard=WordPressVIPMinimum -sp --basepath=. --ignore='vendor' --extensions=php . > wp-vip-min.txt &1 rm -f wp-vip-go.txt && phpcs --standard=WordPress-VIP-Go -sp --basepath=. --ignore='vendor,release' --extensions=php . > wp-vip-go.txt & rm -f wp-var-analysis.txt && phpcs --standard=VariableAnalysis -sp --basepath=. --ignore='vendor,release' --extensions=php . > wp-var-analysis.txt & rm -f wp-vip-min.txt && phpcs --standard=WordPressVIPMinimum -sp --basepath=. --ignore='vendor,release' --extensions=php . > wp-vip-min.txt &
Note: See TracChangeset
for help on using the changeset viewer.