Plugin Directory

Changeset 3479119


Ignore:
Timestamp:
03/10/2026 01:28:26 PM (3 weeks ago)
Author:
stancer
Message:

Merge branch 'sd/V1-refunds' into 'main'

Location:
stancer/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • stancer/trunk/includes/class-stancer-api.php

    r3473441 r3479119  
    1414
    1515use Stancer\Scoped\Isolated\Stancer;
     16
    1617/**
    1718 * Stancer API.
     
    100101        $api_payment = new Stancer\Payment( $transaction_id );
    101102
     103        // We use API V1 for all refund related operation.
     104        Stancer\Config::get_global()->set_version( Stancer\Enum\ApiVersion::VERSION_1 );
    102105        try {
    103106            $api_payment->refund( (int) ( $refund_amount ) );
     
    114117                )
    115118            );
     119        } finally {
     120            Stancer\Config::get_global()->set_version( Stancer\Enum\ApiVersion::VERSION_2 );
    116121        }
    117122        return $api_payment;
  • stancer/trunk/includes/traits/trait-stancer-refunds.php

    r3464349 r3479119  
    9797        }
    9898
     99        // We use API V1 for refund related operation.
     100        Stancer\Config::get_global()->set_version( Stancer\Enum\ApiVersion::VERSION_1 );
    99101        $stancer_payment = $this->api->send_refund( $wc_order, $amount ? (int) (string) ( $amount * 100 ) : null );
    100102        $refundable = $stancer_payment->getRefundableAmount();
     103        Stancer\Config::get_global()->set_version( Stancer\Enum\ApiVersion::VERSION_2 );
     104
    101105        $currency = $stancer_payment->currency;
    102106
  • stancer/trunk/languages/readme-fr_FR.po

    r3478242 r3479119  
    66"Report-Msgid-Bugs-To: https://gitlab.com/wearestancer/cms/woocommerce/-/"
    77"issues\n"
    8 "POT-Creation-Date: 2024-12-16 17:26+0100\n"
     8"POT-Creation-Date: 2025-07-09 11:41+0200\n"
    99"PO-Revision-Date: 2026-02-18 10:23+0000\n"
    1010"Last-Translator: Sebastien <sderen@stancer.com>\n"
  • stancer/trunk/languages/stancer-fr_FR.po

    r3478242 r3479119  
    77"Report-Msgid-Bugs-To: https://gitlab.com/wearestancer/cms/woocommerce/-/"
    88"issues\n"
    9 "POT-Creation-Date: 2024-12-16 17:26+0100\n"
     9"POT-Creation-Date: 2025-07-09 11:41+0200\n"
    1010"PO-Revision-Date: 2026-03-09 14:35+0000\n"
    1111"Last-Translator: Sébastien DEREN <sderen@stancer.com>\n"
  • stancer/trunk/stancer.php

    r3478242 r3479119  
    3030 */
    3131define( 'STANCER_WC_VERSION', '1.4.0' );
    32 define( 'STANCER_ASSETS_VERSION', '1773067971869' );
     32define( 'STANCER_ASSETS_VERSION', '1773149246130' );
    3333define( 'STANCER_FILE', __FILE__ );
    3434define( 'STANCER_DIRECTORY_PATH', plugin_dir_path( STANCER_FILE ) );
  • stancer/trunk/vendor-prefixer/vendor/composer/installed.php

    r3478242 r3479119  
    33namespace Stancer\Scoped\Isolated;
    44
    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)));
     5return 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.