Plugin Directory

Changeset 3473441


Ignore:
Timestamp:
03/03/2026 09:39:20 AM (4 weeks ago)
Author:
stancer
Message:

Merge branch 'sd/CMS-480' into 'main'

Location:
stancer/trunk
Files:
12 edited

Legend:

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

    r3463615 r3473441  
    5252     * @param WC_Order $order Order.
    5353     * @param string|null $card_id Card identifier.
    54      * @param bool|null $force_auth Force authentication, keep `null` to let the configuration decide.
    5554     *
    5655     * @return Stancer\Payment|null
    5756     */
    58     public function send_payment( WC_Order $order, $card_id = null, $force_auth = null ): ?Stancer\Payment {
     57    public function send_payment( WC_Order $order, $card_id = null ): ?Stancer\Payment {
    5958        $data_builder = new WC_Stancer_Payment_Builder( $order, $this->api_config );
    60         $data_builder->build_payment_data( $force_auth );
     59        $data_builder->build_payment_data();
    6160        $api_payment = $data_builder->create_api_payment( $card_id );
    6261        if ( $api_payment ) {
  • stancer/trunk/includes/class-stancer-config.php

    r3464349 r3473441  
    2424 */
    2525class WC_Stancer_Config {
    26     /**
    27      * Auth limit.
    28      *
    29      * @since 1.0.0
    30      * @var string
    31      */
    32     public $auth_limit;
    3326
    3427    /**
     
    10497     */
    10598    public function __construct( $settings ) {
    106         $this->auth_limit = $settings['auth_limit'] ?? 0;
    10799        $this->description = $settings['payment_description'] ?? '';
    108100        $this->host = $settings['host'] ?? '';
  • stancer/trunk/includes/class-stancer-gateway.php

    r3464926 r3473441  
    662662            'type' => 'select',
    663663        ];
    664 
    665         $desc_auth_limit = __(
    666             'Minimum amount to trigger an authenticated payment (3DS, Verified by Visa, Mastercard Secure Code...).',
    667             'stancer',
    668         );
    669         $desc_auth_limit .= '<br/>';
    670         $desc_auth_limit .= __(
    671             'Leave blank if you do not wish to authenticate payments, at zero all payments will be authenticated.',
    672             'stancer',
    673         );
    674 
    675         $inputs['auth_limit'] = [
    676             'default' => '0',
    677             'title' => __( 'Authentication limit', 'stancer' ),
    678             'type' => 'text',
    679             'description' => $desc_auth_limit,
    680         ];
    681664        $paym_desc_description = $desc_description(
    682665            __(
  • stancer/trunk/includes/class-stancer-payment-builder.php

    r3463615 r3473441  
    6464     * @since 1.2.5 Moved from `WC_Stancer_Api` to `WC_Stancer_Payment_Builder`
    6565     *
    66      * @param bool|null $force_auth Do we need to force authentication.
    67      *
    6866     * @return void
    6967     */
    70     public function build_payment_data( $force_auth = null ): void {
     68    public function build_payment_data(): void {
    7169        $total = $this->order->get_total();
    7270        $amount = static::prepare_amount( $total );
    73         $auth = $force_auth;
    7471        $currency_code = $this->order->get_currency();
    7572        $params = [
     
    8683            sprintf( __( 'Payment for order n°%s', 'stancer' ), $this->order->get_id() )
    8784        );
    88         if ( null === $auth ) {
    89             $auth_limit = $this->api_config->auth_limit;
    90             $auth = is_null( $auth_limit ) || '' === $auth_limit ? false : $total >= $auth_limit;
    91         }
    92 
    9385        $this->parameters = [
    9486            'amount' => $amount,
    95             'auth' => $auth,
     87            'auth' => true,
    9688            'capture' => false,
    9789            'currency' => strtolower( $currency_code ),
  • stancer/trunk/includes/class-stancer.php

    r3464926 r3473441  
    334334                $updated = true;
    335335            }
     336            if ( array_key_exists( 'auth_limit', $options ) ) {
     337                unset( $options['auth_limit'] );
     338            }
    336339        }
    337340
  • stancer/trunk/languages/readme-fr_FR.po

    r3464928 r3473441  
    66"Report-Msgid-Bugs-To: https://gitlab.com/wearestancer/cms/woocommerce/-/"
    77"issues\n"
    8 "POT-Creation-Date: 2024-09-26 12:03+0000\n"
     8"POT-Creation-Date: 2024-09-26 12:05+0000\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

    r3464928 r3473441  
    44msgid ""
    55msgstr ""
    6 "Project-Id-Version: 1.4.0 - 2a77757dd64c9134f31787b55df4b0ca98579547\n"
     6"Project-Id-Version: 1.4.0 - dc38c6cad60b491af9e9b70fd1e2121965346077\n"
    77"Report-Msgid-Bugs-To: https://gitlab.com/wearestancer/cms/woocommerce/-/"
    88"issues\n"
    9 "POT-Creation-Date: 2024-09-26 12:03+0000\n"
    10 "PO-Revision-Date: 2026-02-17 13:56+0000\n"
     9"POT-Creation-Date: 2024-09-26 12:05+0000\n"
     10"PO-Revision-Date: 2026-02-17 11:25+0100\n"
    1111"Last-Translator: Sebastien <sderen@stancer.com>\n"
    1212"Language: fr-FR \n"
     
    295295msgstr "Rediriger vers une page externe"
    296296
    297 #: includes/class-stancer-gateway.php
    298 msgid ""
    299 "Minimum amount to trigger an authenticated payment (3DS, Verified by Visa, "
    300 "Mastercard Secure Code...)."
    301 msgstr ""
    302 "Montant minimum pour le déclenchement d'un paiement authentifié (3DS, "
    303 "Verified by Visa, Mastercard Secure Code...)."
    304 
    305 #: includes/class-stancer-gateway.php
    306 msgid ""
    307 "Leave blank if you do not wish to authenticate payments, at zero all "
    308 "payments will be authenticated."
    309 msgstr ""
    310 "Laissez vide si vous ne souhaitez pas faire de paiement authentifié, à zéro "
    311 "tous les paiements seront authentifiés."
    312 
    313 #: includes/class-stancer-gateway.php
    314 msgid "Authentication limit"
    315 msgstr "Limite pour les paiements authentifiés"
    316297
    317298#: includes/class-stancer-gateway.php
  • stancer/trunk/languages/stancer-it_IT.po

    r3464926 r3473441  
    44msgid ""
    55msgstr ""
    6 "Project-Id-Version: 1.4.0 - 2a77757dd64c9134f31787b55df4b0ca98579547\n"
     6"Project-Id-Version: 1.4.0 - dc38c6cad60b491af9e9b70fd1e2121965346077\n"
    77"Report-Msgid-Bugs-To: https://gitlab.com/wearestancer/cms/woocommerce/-/"
    88"issues\n"
    99"POT-Creation-Date: 2025-12-12 14:07+0100\n"
    10 "PO-Revision-Date: 2026-02-17 13:56+0000\n"
     10"PO-Revision-Date: 2026-02-17 11:25+0100\n"
    1111"Last-Translator: Sebastien <sderen@stancer.com>\n"
    1212"Language: it-IT \n"
     
    299299#: includes/class-stancer-gateway.php
    300300msgid ""
    301 "Minimum amount to trigger an authenticated payment (3DS, Verified by Visa, "
    302 "Mastercard Secure Code...)."
    303 msgstr ""
    304 "Importo minimo per l'attivazione di un pagamento autenticato (3DS, Verified "
    305 "by Visa, Mastercard Secure Code...)."
    306 
    307 #: includes/class-stancer-gateway.php
    308 msgid ""
    309 "Leave blank if you do not wish to authenticate payments, at zero all "
    310 "payments will be authenticated."
    311 msgstr ""
    312 "Lascia il campo vuoto se non vuoi eseguire pagamenti autenticati; "
    313 "impostandolo a zero tutti i pagamenti saranno autenticati."
    314 
    315 #: includes/class-stancer-gateway.php
    316 msgid "Authentication limit"
    317 msgstr "Limite per i pagamenti autenticati"
    318 
    319 #: includes/class-stancer-gateway.php
    320 msgid ""
    321301"Will be used as description for every payment made, and will be visible to "
    322302"your customer in redirect mode."
  • stancer/trunk/stancer.php

    r3464928 r3473441  
    3030 */
    3131define( 'STANCER_WC_VERSION', '1.4.0' );
    32 define( 'STANCER_ASSETS_VERSION', '1771494005656' );
     32define( 'STANCER_ASSETS_VERSION', '1772530704950' );
    3333define( 'STANCER_FILE', __FILE__ );
    3434define( 'STANCER_DIRECTORY_PATH', plugin_dir_path( STANCER_FILE ) );
  • stancer/trunk/vendor-prefixer/vendor/composer/installed.php

    r3464928 r3473441  
    33namespace Stancer\Scoped\Isolated;
    44
    5 return array('root' => array('name' => 'stancer/cms-woocommerce', 'pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'df61d007fea01f40bc9950e2bc05c70b0f2c0a06', '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' => 'df61d007fea01f40bc9950e2bc05c70b0f2c0a06', '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' => '906d0f59e3c0ba7aa5f697a03b9850309de26157', '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' => '906d0f59e3c0ba7aa5f697a03b9850309de26157', '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.