Changeset 3205102
- Timestamp:
- 12/09/2024 07:59:28 PM (16 months ago)
- Location:
- depay-payments-for-woocommerce
- Files:
-
- 10 edited
- 1 copied
-
tags/2.12.18 (copied) (copied from depay-payments-for-woocommerce/trunk)
-
tags/2.12.18/depay-woocommerce-payments.php (modified) (2 diffs)
-
tags/2.12.18/includes/class-depay-wc-payments-rest.php (modified) (2 diffs)
-
tags/2.12.18/languages/depay-woocommerce-payments.pot (modified) (1 diff)
-
tags/2.12.18/package.json (modified) (1 diff)
-
tags/2.12.18/readme.txt (modified) (2 diffs)
-
trunk/depay-woocommerce-payments.php (modified) (2 diffs)
-
trunk/includes/class-depay-wc-payments-rest.php (modified) (2 diffs)
-
trunk/languages/depay-woocommerce-payments.pot (modified) (1 diff)
-
trunk/package.json (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
depay-payments-for-woocommerce/tags/2.12.18/depay-woocommerce-payments.php
r3204303 r3205102 12 12 * Requires at least: 5.8 13 13 * Requires PHP: 7.0 14 * Version: 2.12.1 714 * Version: 2.12.18 15 15 * 16 16 * @package DePay\Payments … … 22 22 define( 'DEPAY_WC_ABSPATH', __DIR__ . '/' ); 23 23 define( 'DEPAY_MIN_WC_ADMIN_VERSION', '0.23.2' ); 24 define( 'DEPAY_CURRENT_VERSION', '2.12.1 7' );24 define( 'DEPAY_CURRENT_VERSION', '2.12.18' ); 25 25 26 26 require_once DEPAY_WC_ABSPATH . '/vendor/autoload.php'; -
depay-payments-for-woocommerce/tags/2.12.18/includes/class-depay-wc-payments-rest.php
r3172075 r3205102 82 82 'methods' => 'GET', 83 83 'callback' => [ $this, 'debug' ], 84 'permission_callback' => '__return_true'84 'permission_callback' => array( $this, 'must_be_signed_by_remote' ) 85 85 ] 86 86 ); … … 635 635 } 636 636 637 public function must_be_signed_by_remote( $request ) { 638 if ( !$request->get_param('challenge') || !$request->get_param('signature') ) { 639 return false; 640 } else { 641 $key = PublicKeyLoader::load( self::$key )->withHash( 'sha256' )->withPadding( RSA::SIGNATURE_PSS )->withMGFHash( 'sha256' )->withSaltLength( 64 ); 642 $signature = $request->get_param('signature'); 643 $signature = str_replace( '_', '/', $signature ); 644 $signature = str_replace( '-', '+', $signature ); 645 return $key->verify( $request->get_param('challenge'), base64_decode( $signature ) ); 646 } 647 } 648 637 649 public function must_be_wc_admin( $request ) { 638 650 -
depay-payments-for-woocommerce/tags/2.12.18/languages/depay-woocommerce-payments.pot
r3204303 r3205102 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: DePay WooCommerce Payments 2.12.1 7\n"5 "Project-Id-Version: DePay WooCommerce Payments 2.12.18\n" 6 6 "Report-Msgid-Bugs-To: " 7 7 "support@depay.com\n" -
depay-payments-for-woocommerce/tags/2.12.18/package.json
r3204303 r3205102 2 2 "name": "@depay/web3-woocommerce-depay-payments", 3 3 "moduleName": "WooCommerceDePayPayments", 4 "version": "2.12.1 7",4 "version": "2.12.18", 5 5 "description": "Accept Web3 Crypto Payments. Supports various tokens, blockchains and wallets. MetaMask, Phantom, USDC, USDT, ETH, SOL, BSC, POL, xDAI…", 6 6 "main": "./dist/umd/index.js", -
depay-payments-for-woocommerce/tags/2.12.18/readme.txt
r3204303 r3205102 5 5 Tested up to: 6.7 6 6 Requires PHP: 7.2 7 Stable tag: 2.12.1 77 Stable tag: 2.12.18 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 83 83 == Changelog == 84 84 85 = 2024-12-9 - v2.12.18 = 86 * improves debug endpoint 87 85 88 = 2024-12-8 - v2.12.17 = 86 89 * fixes blockchain icons on checkout page (on Safari and iPhone) -
depay-payments-for-woocommerce/trunk/depay-woocommerce-payments.php
r3204303 r3205102 12 12 * Requires at least: 5.8 13 13 * Requires PHP: 7.0 14 * Version: 2.12.1 714 * Version: 2.12.18 15 15 * 16 16 * @package DePay\Payments … … 22 22 define( 'DEPAY_WC_ABSPATH', __DIR__ . '/' ); 23 23 define( 'DEPAY_MIN_WC_ADMIN_VERSION', '0.23.2' ); 24 define( 'DEPAY_CURRENT_VERSION', '2.12.1 7' );24 define( 'DEPAY_CURRENT_VERSION', '2.12.18' ); 25 25 26 26 require_once DEPAY_WC_ABSPATH . '/vendor/autoload.php'; -
depay-payments-for-woocommerce/trunk/includes/class-depay-wc-payments-rest.php
r3172075 r3205102 82 82 'methods' => 'GET', 83 83 'callback' => [ $this, 'debug' ], 84 'permission_callback' => '__return_true'84 'permission_callback' => array( $this, 'must_be_signed_by_remote' ) 85 85 ] 86 86 ); … … 635 635 } 636 636 637 public function must_be_signed_by_remote( $request ) { 638 if ( !$request->get_param('challenge') || !$request->get_param('signature') ) { 639 return false; 640 } else { 641 $key = PublicKeyLoader::load( self::$key )->withHash( 'sha256' )->withPadding( RSA::SIGNATURE_PSS )->withMGFHash( 'sha256' )->withSaltLength( 64 ); 642 $signature = $request->get_param('signature'); 643 $signature = str_replace( '_', '/', $signature ); 644 $signature = str_replace( '-', '+', $signature ); 645 return $key->verify( $request->get_param('challenge'), base64_decode( $signature ) ); 646 } 647 } 648 637 649 public function must_be_wc_admin( $request ) { 638 650 -
depay-payments-for-woocommerce/trunk/languages/depay-woocommerce-payments.pot
r3204303 r3205102 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: DePay WooCommerce Payments 2.12.1 7\n"5 "Project-Id-Version: DePay WooCommerce Payments 2.12.18\n" 6 6 "Report-Msgid-Bugs-To: " 7 7 "support@depay.com\n" -
depay-payments-for-woocommerce/trunk/package.json
r3204303 r3205102 2 2 "name": "@depay/web3-woocommerce-depay-payments", 3 3 "moduleName": "WooCommerceDePayPayments", 4 "version": "2.12.1 7",4 "version": "2.12.18", 5 5 "description": "Accept Web3 Crypto Payments. Supports various tokens, blockchains and wallets. MetaMask, Phantom, USDC, USDT, ETH, SOL, BSC, POL, xDAI…", 6 6 "main": "./dist/umd/index.js", -
depay-payments-for-woocommerce/trunk/readme.txt
r3204303 r3205102 5 5 Tested up to: 6.7 6 6 Requires PHP: 7.2 7 Stable tag: 2.12.1 77 Stable tag: 2.12.18 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 83 83 == Changelog == 84 84 85 = 2024-12-9 - v2.12.18 = 86 * improves debug endpoint 87 85 88 = 2024-12-8 - v2.12.17 = 86 89 * fixes blockchain icons on checkout page (on Safari and iPhone)
Note: See TracChangeset
for help on using the changeset viewer.