Changeset 3473441
- Timestamp:
- 03/03/2026 09:39:20 AM (4 weeks ago)
- Location:
- stancer/trunk
- Files:
-
- 12 edited
-
includes/class-stancer-api.php (modified) (1 diff)
-
includes/class-stancer-config.php (modified) (2 diffs)
-
includes/class-stancer-gateway.php (modified) (1 diff)
-
includes/class-stancer-payment-builder.php (modified) (2 diffs)
-
includes/class-stancer.php (modified) (1 diff)
-
languages/readme-fr_FR.po (modified) (1 diff)
-
languages/stancer-fr_FR.mo (modified) (previous)
-
languages/stancer-fr_FR.po (modified) (2 diffs)
-
languages/stancer-it_IT.mo (modified) (previous)
-
languages/stancer-it_IT.po (modified) (2 diffs)
-
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
r3463615 r3473441 52 52 * @param WC_Order $order Order. 53 53 * @param string|null $card_id Card identifier. 54 * @param bool|null $force_auth Force authentication, keep `null` to let the configuration decide.55 54 * 56 55 * @return Stancer\Payment|null 57 56 */ 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 { 59 58 $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(); 61 60 $api_payment = $data_builder->create_api_payment( $card_id ); 62 61 if ( $api_payment ) { -
stancer/trunk/includes/class-stancer-config.php
r3464349 r3473441 24 24 */ 25 25 class WC_Stancer_Config { 26 /**27 * Auth limit.28 *29 * @since 1.0.030 * @var string31 */32 public $auth_limit;33 26 34 27 /** … … 104 97 */ 105 98 public function __construct( $settings ) { 106 $this->auth_limit = $settings['auth_limit'] ?? 0;107 99 $this->description = $settings['payment_description'] ?? ''; 108 100 $this->host = $settings['host'] ?? ''; -
stancer/trunk/includes/class-stancer-gateway.php
r3464926 r3473441 662 662 'type' => 'select', 663 663 ]; 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 ];681 664 $paym_desc_description = $desc_description( 682 665 __( -
stancer/trunk/includes/class-stancer-payment-builder.php
r3463615 r3473441 64 64 * @since 1.2.5 Moved from `WC_Stancer_Api` to `WC_Stancer_Payment_Builder` 65 65 * 66 * @param bool|null $force_auth Do we need to force authentication.67 *68 66 * @return void 69 67 */ 70 public function build_payment_data( $force_auth = null): void {68 public function build_payment_data(): void { 71 69 $total = $this->order->get_total(); 72 70 $amount = static::prepare_amount( $total ); 73 $auth = $force_auth;74 71 $currency_code = $this->order->get_currency(); 75 72 $params = [ … … 86 83 sprintf( __( 'Payment for order n°%s', 'stancer' ), $this->order->get_id() ) 87 84 ); 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 93 85 $this->parameters = [ 94 86 'amount' => $amount, 95 'auth' => $auth,87 'auth' => true, 96 88 'capture' => false, 97 89 'currency' => strtolower( $currency_code ), -
stancer/trunk/includes/class-stancer.php
r3464926 r3473441 334 334 $updated = true; 335 335 } 336 if ( array_key_exists( 'auth_limit', $options ) ) { 337 unset( $options['auth_limit'] ); 338 } 336 339 } 337 340 -
stancer/trunk/languages/readme-fr_FR.po
r3464928 r3473441 6 6 "Report-Msgid-Bugs-To: https://gitlab.com/wearestancer/cms/woocommerce/-/" 7 7 "issues\n" 8 "POT-Creation-Date: 2024-09-26 12:0 3+0000\n"8 "POT-Creation-Date: 2024-09-26 12:05+0000\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
r3464928 r3473441 4 4 msgid "" 5 5 msgstr "" 6 "Project-Id-Version: 1.4.0 - 2a77757dd64c9134f31787b55df4b0ca98579547\n"6 "Project-Id-Version: 1.4.0 - dc38c6cad60b491af9e9b70fd1e2121965346077\n" 7 7 "Report-Msgid-Bugs-To: https://gitlab.com/wearestancer/cms/woocommerce/-/" 8 8 "issues\n" 9 "POT-Creation-Date: 2024-09-26 12:0 3+0000\n"10 "PO-Revision-Date: 2026-02-17 1 3: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" 11 11 "Last-Translator: Sebastien <sderen@stancer.com>\n" 12 12 "Language: fr-FR \n" … … 295 295 msgstr "Rediriger vers une page externe" 296 296 297 #: includes/class-stancer-gateway.php298 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.php306 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.php314 msgid "Authentication limit"315 msgstr "Limite pour les paiements authentifiés"316 297 317 298 #: includes/class-stancer-gateway.php -
stancer/trunk/languages/stancer-it_IT.po
r3464926 r3473441 4 4 msgid "" 5 5 msgstr "" 6 "Project-Id-Version: 1.4.0 - 2a77757dd64c9134f31787b55df4b0ca98579547\n"6 "Project-Id-Version: 1.4.0 - dc38c6cad60b491af9e9b70fd1e2121965346077\n" 7 7 "Report-Msgid-Bugs-To: https://gitlab.com/wearestancer/cms/woocommerce/-/" 8 8 "issues\n" 9 9 "POT-Creation-Date: 2025-12-12 14:07+0100\n" 10 "PO-Revision-Date: 2026-02-17 1 3:56+0000\n"10 "PO-Revision-Date: 2026-02-17 11:25+0100\n" 11 11 "Last-Translator: Sebastien <sderen@stancer.com>\n" 12 12 "Language: it-IT \n" … … 299 299 #: includes/class-stancer-gateway.php 300 300 msgid "" 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.php308 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.php316 msgid "Authentication limit"317 msgstr "Limite per i pagamenti autenticati"318 319 #: includes/class-stancer-gateway.php320 msgid ""321 301 "Will be used as description for every payment made, and will be visible to " 322 302 "your customer in redirect mode." -
stancer/trunk/stancer.php
r3464928 r3473441 30 30 */ 31 31 define( 'STANCER_WC_VERSION', '1.4.0' ); 32 define( 'STANCER_ASSETS_VERSION', '177 1494005656' );32 define( 'STANCER_ASSETS_VERSION', '1772530704950' ); 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
r3464928 r3473441 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' => ' 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)));5 return 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.