Changeset 3479119
- Timestamp:
- 03/10/2026 01:28:26 PM (3 weeks ago)
- Location:
- stancer/trunk
- Files:
-
- 6 edited
-
includes/class-stancer-api.php (modified) (3 diffs)
-
includes/traits/trait-stancer-refunds.php (modified) (1 diff)
-
languages/readme-fr_FR.po (modified) (1 diff)
-
languages/stancer-fr_FR.po (modified) (1 diff)
-
stancer.php (modified) (1 diff)
-
vendor-prefixer/vendor/composer/installed.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
stancer/trunk/includes/class-stancer-api.php
r3473441 r3479119 14 14 15 15 use Stancer\Scoped\Isolated\Stancer; 16 16 17 /** 17 18 * Stancer API. … … 100 101 $api_payment = new Stancer\Payment( $transaction_id ); 101 102 103 // We use API V1 for all refund related operation. 104 Stancer\Config::get_global()->set_version( Stancer\Enum\ApiVersion::VERSION_1 ); 102 105 try { 103 106 $api_payment->refund( (int) ( $refund_amount ) ); … … 114 117 ) 115 118 ); 119 } finally { 120 Stancer\Config::get_global()->set_version( Stancer\Enum\ApiVersion::VERSION_2 ); 116 121 } 117 122 return $api_payment; -
stancer/trunk/includes/traits/trait-stancer-refunds.php
r3464349 r3479119 97 97 } 98 98 99 // We use API V1 for refund related operation. 100 Stancer\Config::get_global()->set_version( Stancer\Enum\ApiVersion::VERSION_1 ); 99 101 $stancer_payment = $this->api->send_refund( $wc_order, $amount ? (int) (string) ( $amount * 100 ) : null ); 100 102 $refundable = $stancer_payment->getRefundableAmount(); 103 Stancer\Config::get_global()->set_version( Stancer\Enum\ApiVersion::VERSION_2 ); 104 101 105 $currency = $stancer_payment->currency; 102 106 -
stancer/trunk/languages/readme-fr_FR.po
r3478242 r3479119 6 6 "Report-Msgid-Bugs-To: https://gitlab.com/wearestancer/cms/woocommerce/-/" 7 7 "issues\n" 8 "POT-Creation-Date: 202 4-12-16 17:26+0100\n"8 "POT-Creation-Date: 2025-07-09 11:41+0200\n" 9 9 "PO-Revision-Date: 2026-02-18 10:23+0000\n" 10 10 "Last-Translator: Sebastien <sderen@stancer.com>\n" -
stancer/trunk/languages/stancer-fr_FR.po
r3478242 r3479119 7 7 "Report-Msgid-Bugs-To: https://gitlab.com/wearestancer/cms/woocommerce/-/" 8 8 "issues\n" 9 "POT-Creation-Date: 202 4-12-16 17:26+0100\n"9 "POT-Creation-Date: 2025-07-09 11:41+0200\n" 10 10 "PO-Revision-Date: 2026-03-09 14:35+0000\n" 11 11 "Last-Translator: Sébastien DEREN <sderen@stancer.com>\n" -
stancer/trunk/stancer.php
r3478242 r3479119 30 30 */ 31 31 define( 'STANCER_WC_VERSION', '1.4.0' ); 32 define( 'STANCER_ASSETS_VERSION', '1773 067971869' );32 define( 'STANCER_ASSETS_VERSION', '1773149246130' ); 33 33 define( 'STANCER_FILE', __FILE__ ); 34 34 define( 'STANCER_DIRECTORY_PATH', plugin_dir_path( STANCER_FILE ) ); -
stancer/trunk/vendor-prefixer/vendor/composer/installed.php
r3478242 r3479119 3 3 namespace Stancer\Scoped\Isolated; 4 4 5 return array('root' => array('name' => 'stancer/cms-woocommerce', 'pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => ' d3e367f6be8512c2018fdcb852be734f640af25e', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev' => \false), 'versions' => array('psr/http-message' => array('pretty_version' => '2.0', 'version' => '2.0.0.0', 'reference' => '402d35bcb92c70c026d1a6a9883f06b2ead23d71', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-message', 'aliases' => array(), 'dev_requirement' => \false), 'psr/log' => array('pretty_version' => '3.0.2', 'version' => '3.0.2.0', 'reference' => 'f16e1d5863e37f8d8c2a01719f5b34baa2b714d3', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/log', 'aliases' => array(), 'dev_requirement' => \false), 'stancer/cms-woocommerce' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'd3e367f6be8512c2018fdcb852be734f640af25e', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev_requirement' => \false), 'stancer/stancer' => array('pretty_version' => 'v2.1.0', 'version' => '2.1.0.0', 'reference' => '91b90a8d843faf680aa1680373268069ab15b6b5', 'type' => 'library', 'install_path' => __DIR__ . '/../stancer/stancer', 'aliases' => array(), 'dev_requirement' => \false)));5 return array('root' => array('name' => 'stancer/cms-woocommerce', 'pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'c01589e2f17b6e0acd0a548169030b8c1f4b2523', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev' => \false), 'versions' => array('psr/http-message' => array('pretty_version' => '2.0', 'version' => '2.0.0.0', 'reference' => '402d35bcb92c70c026d1a6a9883f06b2ead23d71', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-message', 'aliases' => array(), 'dev_requirement' => \false), 'psr/log' => array('pretty_version' => '3.0.2', 'version' => '3.0.2.0', 'reference' => 'f16e1d5863e37f8d8c2a01719f5b34baa2b714d3', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/log', 'aliases' => array(), 'dev_requirement' => \false), 'stancer/cms-woocommerce' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'c01589e2f17b6e0acd0a548169030b8c1f4b2523', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev_requirement' => \false), 'stancer/stancer' => array('pretty_version' => 'v2.1.0', 'version' => '2.1.0.0', 'reference' => '91b90a8d843faf680aa1680373268069ab15b6b5', 'type' => 'library', 'install_path' => __DIR__ . '/../stancer/stancer', 'aliases' => array(), 'dev_requirement' => \false)));
Note: See TracChangeset
for help on using the changeset viewer.