Changeset 3337302
- Timestamp:
- 07/31/2025 01:19:49 PM (8 months ago)
- Location:
- stancer/trunk
- Files:
-
- 19 edited
-
includes/Controller/class-stancer-change-payment-method.php (modified) (1 diff)
-
includes/class-stancer-api.php (modified) (1 diff)
-
includes/class-stancer-gateway.php (modified) (3 diffs)
-
includes/traits/trait-stancer-subscription.php (modified) (5 diffs)
-
languages/readme-fr_FR.mo (modified) (previous)
-
languages/readme-fr_FR.po (modified) (2 diffs)
-
languages/stancer-fr_FR.mo (modified) (previous)
-
languages/stancer-fr_FR.po (modified) (20 diffs)
-
stancer.php (modified) (1 diff)
-
subscription/change-payment-method.php (modified) (2 diffs)
-
vendor-prefixer/vendor/composer/installed.json (modified) (2 diffs)
-
vendor-prefixer/vendor/composer/installed.php (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/CHANGELOG.md (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/src/Config.php (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/src/Core/AbstractObject.php (modified) (2 diffs)
-
vendor-prefixer/vendor/stancer/stancer/src/Http/Request.php (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/src/Http/Response.php (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/src/Payment.php (modified) (5 diffs)
-
vendor-prefixer/vendor/stancer/stancer/src/Payout/Details.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
stancer/trunk/includes/Controller/class-stancer-change-payment-method.php
r3252105 r3337302 216 216 */ 217 217 public function create_card_info( Stancer\Payment $payment ): string { 218 // translators: "%1$s": Card brand. "%2$ d"Last 4.218 // translators: "%1$s": Card brand. "%2$s": Last 4. 219 219 $trad = __( '%1$s finishing with %2$s', 'stancer' ); 220 220 $card = $payment->card; -
stancer/trunk/includes/class-stancer-api.php
r3252105 r3337302 107 107 sprintf( 108 108 // translators: "%1f$.02f": refunded payment sums. "%2$.02f": the amount still refundable. "%3$s": the currency of the transaction. 109 __( 'You cannot refund %1$.02f %3$s the order total with already acounted refund is %2$.02f %3$s', 'stancer' ),109 __( 'You cannot refund %1$.02f %3$s, the order total with the already accounted refund is %2$.02f %3$s.', 'stancer' ), 110 110 $refund_amount / 100, 111 111 $api_payment->getRefundableAmount() / 100, -
stancer/trunk/includes/class-stancer-gateway.php
r3252105 r3337302 278 278 $this->title = vsprintf( 279 279 // translators: $1 Card brand. $2 Last 4. $3 Expiration month. $4 Expiration year. 280 __( '%1$s finishing with %2$s', 'stancer' ),280 __( '%1$s ending with %2$s', 'stancer' ), 281 281 [ 282 282 $result['brand_name'], … … 468 468 */ 469 469 public function get_configurations() { 470 // translators: %s: Key prefixes (aka sprod, pprod, stest or ptest).470 // translators: "%s": Key prefixes (aka sprod, pprod, stest or ptest). 471 471 $desc = __( 'Starts with "%s"', 'stancer' ); 472 472 … … 919 919 $order->add_order_note( 920 920 sprintf( 921 // translators: %s: Stancer payment identifier.921 // translators: "%s": Stancer payment identifier. 922 922 __( 'Payment was completed via Stancer (Transaction ID: %s)', 'stancer' ), 923 923 $api_payment->getId() -
stancer/trunk/includes/traits/trait-stancer-subscription.php
r3252105 r3337302 161 161 162 162 if ( count( $subscriptions ) !== 1 ) { 163 throw new WC_Stancer_Exception( __( 'We were unable to locatethe subscription.', 'stancer' ), 7802 );163 throw new WC_Stancer_Exception( __( 'We were unable to find the subscription.', 'stancer' ), 7802 ); 164 164 } 165 165 … … 173 173 if ( $api_payment->amount < 50 ) { 174 174 $message = sprintf( 175 // translators: 1: Currency.175 // translators: "%s": Currency. 176 176 __( 177 'In order to u tilize this payment method, the minimum required order total is 0.50 %s.',177 'In order to use this payment method, the minimum required order total is 0.50 %s.', 178 178 'stancer', 179 179 ), … … 197 197 198 198 if ( in_array( $api_payment->status, $allowed_status, true ) ) { 199 // translators: 1: Payment id or transaction id.199 // translators: "%s": Payment id or transaction id. 200 200 $message = __( 201 201 'Your payment has been successfully processed through Stancer. (Transaction ID: %s)', … … 227 227 } 228 228 } catch ( Stancer\Exceptions\Exception $error ) { 229 // translators: 1: Error code. 2: Error message. 3. Exception name.229 // translators: "%1$s": Error code. "%2$s": Error message. "%3$s". Exception name. 230 230 $message = __( 231 231 'The transaction for renewing your subscription has failed. (%3$s: [%1$s] %2$s)', … … 239 239 return false; 240 240 } catch ( WC_Stancer_Exception $error ) { 241 // translators: 1: Error code. 2: Error message.241 // translators: "%1$s": Error code. "%2$s": Error message. 242 242 $message = __( 'The transaction for renewing your subscription has failed. (%1$s: %2$s)', 'stancer' ); 243 243 $order->update_status( -
stancer/trunk/languages/readme-fr_FR.po
r3335259 r3337302 1 # Copyright (C) 2023-202 4Stancer / Iliad 781 # Copyright (C) 2023-2025 Stancer / Iliad 78 2 2 # This file is distributed under the MIT. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: 1.3.1 - ffd9b1b03b8900288feac0e106d8ae78a56d9193\n"5 "Project-Id-Version: 1.3.1 - 3880bad72848ce4dfc58a5d6436e941a3084b961\n" 6 6 "Report-Msgid-Bugs-To: https://gitlab.com/wearestancer/cms/woocommerce/-/" 7 7 "issues\n" 8 8 "POT-Creation-Date: 2024-07-31 12:09+0200\n" 9 "PO-Revision-Date: 202 4-06-27 14:57+0200\n"9 "PO-Revision-Date: 2025-07-30 14:33+0000\n" 10 10 "Last-Translator: Sebastien <sderen@stancer.com>\n" 11 11 "Language-Team: \n" … … 277 277 278 278 #. Found in changelog list item. 279 msgid "Fix a bug regarding iframe display" 280 msgstr "Réparation d'un bug d'affichage des paiements intégré à la page" 281 282 #. Found in changelog list item. 279 283 msgid "Add support for WooCommerce blocks" 280 284 msgstr "Ajout du support pour les blocs WooCommerce" -
stancer/trunk/languages/stancer-fr_FR.po
r3335439 r3337302 1 # Copyright (C) 2023-202 4Stancer / Iliad 781 # Copyright (C) 2023-2025 Stancer / Iliad 78 2 2 # This file is distributed under the MIT. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: 1.3.1 - ffd9b1b03b8900288feac0e106d8ae78a56d9193\n"5 "Project-Id-Version: 1.3.1 - 3880bad72848ce4dfc58a5d6436e941a3084b961\n" 6 6 "Report-Msgid-Bugs-To: https://gitlab.com/wearestancer/cms/woocommerce/-/" 7 7 "issues\n" 8 "POT-Creation-Date: 2024-07-2 5 13:55+0000\n"9 "PO-Revision-Date: 202 4-06-27 14:57+0200\n"8 "POT-Creation-Date: 2024-07-29 08:16+0000\n" 9 "PO-Revision-Date: 2025-07-30 14:33+0000\n" 10 10 "Last-Translator: Sebastien <sderen@stancer.com>\n" 11 11 "Language-Team: \n" … … 47 47 #. translators: "%1f$.02f": refunded payment sums. "%2$.02f": the amount still refundable. "%3$s": the currency of the transaction. 48 48 #: includes/class-stancer-api.php 49 msgid "" 50 "You cannot refund %1$.02f %3$s the order total with already acounted refund " 51 "is %2$.02f %3$s" 49 #, php-format 50 msgid "" 51 "You cannot refund %1$.02f %3$s, the order total with the already accounted " 52 "refund is %2$.02f %3$s." 52 53 msgstr "" 53 54 "Vous ne pouvez pas remboursez %1$.02f %3$s le prix total de votre commande " … … 60 61 #. translators: "%1$s": the mode in which our API is (test mode or Live mode). 61 62 #: includes/class-stancer-gateway.php 63 #, php-format 62 64 msgid "You are on %1$s mode but your %1$s keys are not properly setup." 63 65 msgstr "" … … 74 76 75 77 #. translators: $1 Card brand. $2 Last 4. $3 Expiration month. $4 Expiration year. 76 #. translators: "%1$s": Card brand. "%2$d" Last 4. 77 #: includes/class-stancer-gateway.php 78 #: includes/Controller/class-stancer-change-payment-method.php 79 #: subscription/change-payment-method.php 80 msgid "%1$s finishing with %2$s" 78 #: includes/class-stancer-gateway.php 79 #, php-format 80 msgid "%1$s ending with %2$s" 81 81 msgstr "%1$s finissant par %2$s" 82 82 83 83 #. Translators: "%1$d": The minimum size of the description. "%2$d": The maximum size of the description. 84 84 #: includes/class-stancer-gateway.php 85 #, php-format 85 86 msgid "" 86 87 "The description must be between %1$d and %2$d characters after variable " … … 138 139 msgstr "Tous les types de cartes supportés suivi du logo complet Stancer." 139 140 140 #. translators: %s: Key prefixes (aka sprod, pprod, stest or ptest). 141 #: includes/class-stancer-gateway.php 141 #. translators: "%s": Key prefixes (aka sprod, pprod, stest or ptest). 142 #: includes/class-stancer-gateway.php 143 #, php-format 142 144 msgid "Starts with \"%s\"" 143 145 msgstr "Commence avec \"%s\"" … … 165 167 #. Translators: "%1$d": the minimum size of the description "%2$d": the maximum size of the description. 166 168 #: includes/class-stancer-gateway.php 169 #, php-format 167 170 msgid "The description must be between %1$d and %2$d characters." 168 171 msgstr "La description doit être comprise entre %1$d et %2$d caractères." … … 348 351 msgstr "La tentative de paiement a échouée." 349 352 350 #. translators: %s: Stancer payment identifier. 351 #: includes/class-stancer-gateway.php 353 #. translators: "%s": Stancer payment identifier. 354 #: includes/class-stancer-gateway.php 355 #, php-format 352 356 msgid "Payment was completed via Stancer (Transaction ID: %s)" 353 357 msgstr "Le paiement a été complété via Stancer (ID Transaction : %s)" … … 355 359 #. translators: "$1%d": The minimum description size. "$2%d": The maximum description size. "$3%s": The default description message already translated. 356 360 #: includes/class-stancer-gateway.php 361 #, php-format 357 362 msgid "" 358 363 "Your payment description is not between %1$d and %2$d characters, it could " … … 365 370 #. translators: "%s": The order ID. 366 371 #: includes/class-stancer-payment-builder.php 372 #, php-format 367 373 msgid "Payment for order n°%s" 368 374 msgstr "Payment pour la commande n°%s" … … 370 376 #. translators: "%s": Link to plugin settings. 371 377 #: includes/class-stancer.php 378 #, php-format 372 379 msgid "" 373 380 "Stancer payment by popup is deprecated since 31st July 2024, it will be " … … 395 402 msgstr "Moyen de paiement modifié avec succès." 396 403 404 #. translators: "%1$s": Card brand. "%2$s": Last 4. 405 #: includes/Controller/class-stancer-change-payment-method.php 406 #: subscription/change-payment-method.php 407 #, php-format 408 msgid "%1$s finishing with %2$s" 409 msgstr "%1$s finissant par %2$s" 410 397 411 #: includes/subscriptions/class-stancer-renewal-builder.php 398 412 msgid "No card found for this subscription." … … 401 415 #. translators: "%1$d": Subscription ID. "%2$d": Current order ID. This text shouldn't be longer than 64 characters! 402 416 #: includes/subscriptions/class-stancer-renewal-builder.php 417 #, php-format 403 418 msgid "Renewal payment for subscription n°%1$d, order n°%2$d" 404 419 msgstr "Renouvellement de l'abonnement n°%1$d, commande n°%2$d" … … 406 421 #. translators: "%1$.2f": Amount refunded. "%2$s": Currency. "%3$.2f": Total amount after all refunds. 407 422 #: includes/traits/trait-stancer-refunds.php 423 #, php-format 408 424 msgid "" 409 425 "The payment has been partially refunded of %1$.2f %2$s, the payment is now " … … 415 431 #. translators: "%1$.2f": the amount refunded. "%2$s": the currency. 416 432 #: includes/traits/trait-stancer-refunds.php 433 #, php-format 417 434 msgid "The payment has been fully refunded of %1$.2f %2$s via Stancer." 418 435 msgstr "" … … 421 438 #. translators: "%1$s": the reason for the refund process. 422 439 #: includes/traits/trait-stancer-refunds.php 440 #, php-format 423 441 msgid "Reason for refund: %1$s" 424 442 msgstr "Raison du remboursement : %1$s" 425 443 426 444 #: includes/traits/trait-stancer-subscription.php 427 msgid "We were unable to locatethe subscription."445 msgid "We were unable to find the subscription." 428 446 msgstr "Nous n’avons pas détecté l’abonnement." 429 447 430 #. translators: 1: Currency. 431 #: includes/traits/trait-stancer-subscription.php 432 msgid "" 433 "In order to utilize this payment method, the minimum required order total is " 448 #. translators: "%s": Currency. 449 #: includes/traits/trait-stancer-subscription.php 450 #, php-format 451 msgid "" 452 "In order to use this payment method, the minimum required order total is " 434 453 "0.50 %s." 435 454 msgstr "" … … 442 461 "Une erreur est survenue, le paiement de renouvellement semble incomplet." 443 462 444 #. translators: 1: Payment id or transaction id. 445 #: includes/traits/trait-stancer-subscription.php 463 #. translators: "%s": Payment id or transaction id. 464 #: includes/traits/trait-stancer-subscription.php 465 #, php-format 446 466 msgid "" 447 467 "Your payment has been successfully processed through Stancer. (Transaction " … … 452 472 #. translators: "%s": Payment status. 453 473 #: includes/traits/trait-stancer-subscription.php 474 #, php-format 454 475 msgid "The payment is not in a valid status (%s)." 455 476 msgstr "Le paiement ne semble pas avoir un statut valide (%s)." … … 463 484 "envisager d’utiliser une autre carte." 464 485 465 #. translators: 1: Error code. 2: Error message. 3. Exception name. 466 #: includes/traits/trait-stancer-subscription.php 486 #. translators: "%1$s": Error code. "%2$s": Error message. "%3$s". Exception name. 487 #: includes/traits/trait-stancer-subscription.php 488 #, php-format 467 489 msgid "" 468 490 "The transaction for renewing your subscription has failed. (%3$s: [%1$s] " … … 472 494 "[%1$s] %2$s)" 473 495 474 #. translators: 1: Error code. 2: Error message. 475 #: includes/traits/trait-stancer-subscription.php 496 #. translators: "%1$s": Error code. "%2$s": Error message. 497 #: includes/traits/trait-stancer-subscription.php 498 #, php-format 476 499 msgid "The transaction for renewing your subscription has failed. (%1$s: %2$s)" 477 500 msgstr "" … … 500 523 501 524 #: subscription/change-payment-method.php 502 msgid "Incorrect action method"525 msgid "Incorrect action" 503 526 msgstr "Action incorrecte" -
stancer/trunk/stancer.php
r3335439 r3337302 28 28 */ 29 29 define( 'STANCER_WC_VERSION', '1.3.1' ); 30 define( 'STANCER_ASSETS_VERSION', '1753 713893709' );30 define( 'STANCER_ASSETS_VERSION', '1753967944579' ); 31 31 define( 'STANCER_FILE', __FILE__ ); 32 32 define( 'STANCER_DIRECTORY_PATH', plugin_dir_path( STANCER_FILE ) ); -
stancer/trunk/subscription/change-payment-method.php
r3252105 r3337302 31 31 */ 32 32 function create_card_info( Stancer\Payment $payment ): string { 33 // translators: $1 Card brand. $2 Last 4. $3 Expiration month. $4 Expiration year.33 // translators: "%1$s": Card brand. "%2$s": Last 4. 34 34 $trad = __( '%1$s finishing with %2$s', 'stancer' ); 35 35 $card = $payment->card; … … 165 165 break; 166 166 default: 167 throw new Stancer\Exceptions\Exception( __( 'Incorrect action method', 'stancer' ) );167 throw new Stancer\Exceptions\Exception( __( 'Incorrect action', 'stancer' ) ); 168 168 } 169 169 } catch ( Stancer\Exceptions\Exception $exception ) { -
stancer/trunk/vendor-prefixer/vendor/composer/installed.json
r3054608 r3337302 112 112 { 113 113 "name": "stancer\/stancer", 114 "version": "v1.1. 3",115 "version_normalized": "1.1. 3.0",114 "version": "v1.1.4", 115 "version_normalized": "1.1.4.0", 116 116 "source": { 117 117 "type": "git", 118 118 "url": "https:\/\/gitlab.com\/wearestancer\/library\/lib-php.git", 119 "reference": " ebd111ebdce45aedbf9a892d47009098b99a99d0"119 "reference": "7c39bf050525c22f21bc6b9134259614dde0fb86" 120 120 }, 121 121 "dist": { 122 122 "type": "zip", 123 "url": "https:\/\/gitlab.com\/api\/v4\/projects\/wearestancer%2Flibrary%2Flib-php\/repository\/archive.zip?sha= ebd111ebdce45aedbf9a892d47009098b99a99d0",124 "reference": " ebd111ebdce45aedbf9a892d47009098b99a99d0",123 "url": "https:\/\/gitlab.com\/api\/v4\/projects\/wearestancer%2Flibrary%2Flib-php\/repository\/archive.zip?sha=7c39bf050525c22f21bc6b9134259614dde0fb86", 124 "reference": "7c39bf050525c22f21bc6b9134259614dde0fb86", 125 125 "shasum": "" 126 126 }, … … 148 148 "monolog\/monolog": "Allows to log interaction with the API" 149 149 }, 150 "time": "2024- 02-20T16:24:50+00:00",150 "time": "2024-11-15T16:45:53+00:00", 151 151 "type": "library", 152 152 "installation-source": "dist", -
stancer/trunk/vendor-prefixer/vendor/composer/installed.php
r3335439 r3337302 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' => ' 0e78489ba00fe6256948e725891c01d1b341530a', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev' => \false), 'versions' => array('psr/http-message' => array('pretty_version' => '1.1', 'version' => '1.1.0.0', 'reference' => 'cb6ce4845ce34a8ad9e68117c10ee90a29919eba', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-message', 'aliases' => array(), 'dev_requirement' => \false), 'psr/log' => array('pretty_version' => '1.1.4', 'version' => '1.1.4.0', 'reference' => 'd49695b909c3b7628b6289db5479a1c204601f11', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/log', 'aliases' => array(), 'dev_requirement' => \false), 'stancer/cms-woocommerce' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '0e78489ba00fe6256948e725891c01d1b341530a', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev_requirement' => \false), 'stancer/stancer' => array('pretty_version' => 'v1.1.3', 'version' => '1.1.3.0', 'reference' => 'ebd111ebdce45aedbf9a892d47009098b99a99d0', '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' => 'f82bcd2d87ff11dd196c2216cbae6134a048c3b0', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev' => \false), 'versions' => array('psr/http-message' => array('pretty_version' => '1.1', 'version' => '1.1.0.0', 'reference' => 'cb6ce4845ce34a8ad9e68117c10ee90a29919eba', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-message', 'aliases' => array(), 'dev_requirement' => \false), 'psr/log' => array('pretty_version' => '1.1.4', 'version' => '1.1.4.0', 'reference' => 'd49695b909c3b7628b6289db5479a1c204601f11', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/log', 'aliases' => array(), 'dev_requirement' => \false), 'stancer/cms-woocommerce' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'f82bcd2d87ff11dd196c2216cbae6134a048c3b0', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev_requirement' => \false), 'stancer/stancer' => array('pretty_version' => 'v1.1.4', 'version' => '1.1.4.0', 'reference' => '7c39bf050525c22f21bc6b9134259614dde0fb86', 'type' => 'library', 'install_path' => __DIR__ . '/../stancer/stancer', 'aliases' => array(), 'dev_requirement' => \false))); -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/CHANGELOG.md
r3054608 r3337302 4 4 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), 5 5 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 6 7 ## [1.1.4] - 2024-11-15 8 9 ### Added 10 - Force parameter for payment page (CMS-259) 11 6 12 7 13 ## [1.1.3] - 2024-02-20 -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Config.php
r3252105 r3337302 90 90 public const TEST_MODE = 'test'; 91 91 #[\Stancer\WillChange\PHP8_3\TypedClassConstants] 92 public const VERSION = '1.1. 3';92 public const VERSION = '1.1.4'; 93 93 /** @var non-empty-array<string|null>[] */ 94 94 protected $app = []; -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Core/AbstractObject.php
r3252105 r3337302 18 18 * @method string get_entity_name() Get entity name. 19 19 * @method ?string get_id() Get object ID. 20 * @method ?array get_model(string $property = null) Return property model.20 * @method ?array<mixed> get_model(string $property = null) Return property model. 21 21 * @method string get_uri() Get entity resource location. 22 22 * @method boolean is_modified() Indicate if the current object is modified. 23 23 * @method boolean is_not_modified() Indicate if the current object is not modified. 24 * @method array to_array() Return a array representation of the current object.24 * @method array<mixed> to_array() Return a array representation of the current object. 25 25 * @method string to_json() Return a JSON representation of the current object. 26 26 * @method string to_string() Return a string representation (as a JSON) of the current object. 27 *28 27 * @property-read ?\DateTimeImmutable $created Creation date. 29 28 * @property-read ?\DateTimeImmutable $creationDate Creation date. … … 37 36 * @property-read boolean $is_modified Alias for `Stancer\Core\AbstractObject::isModified()`. 38 37 * @property-read boolean $is_not_modified Alias for `Stancer\Core\AbstractObject::isNotModified()`. 39 * @property-read mixed $jsonSerialize Alias for `Stancer\Core\AbstractObject::jsonSerialize()`.40 * @property-read mixed $json_serialize Alias for `Stancer\Core\AbstractObject::jsonSerialize()`.41 * @property-read array $toArray Alias for `Stancer\Core\AbstractObject::toArray()`.38 * @property-read ?mixed $jsonSerialize Alias for `Stancer\Core\AbstractObject::jsonSerialize()`. 39 * @property-read ?mixed $json_serialize Alias for `Stancer\Core\AbstractObject::jsonSerialize()`. 40 * @property-read array<mixed> $toArray Alias for `Stancer\Core\AbstractObject::toArray()`. 42 41 * @property-read string $toJson Alias for `Stancer\Core\AbstractObject::toJson()`. 43 42 * @property-read string $toString Alias for `Stancer\Core\AbstractObject::toString()`. 44 * @property-read array $to_array Alias for `Stancer\Core\AbstractObject::toArray()`.43 * @property-read array<mixed> $to_array Alias for `Stancer\Core\AbstractObject::toArray()`. 45 44 * @property-read string $to_json Alias for `Stancer\Core\AbstractObject::toJson()`. 46 45 * @property-read string $to_string Alias for `Stancer\Core\AbstractObject::toString()`. -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Http/Request.php
r3252105 r3337302 11 11 /** 12 12 * Basic HTTP request. 13 * 14 * @method static with_body(Psr\Http\Message\StreamInterface $body) Return an instance with the specified message body. 15 * @method static with_method(string $method) Return an instance with the provided HTTP method. 16 * @method static without_header(string $name) Return an instance without the specified header. 17 * @method static with_header(string $name, $value) Return an instance with the provided value replacing the 18 * specified header. 19 * @method static with_modified_body($in, $out) Return an instance with obfuscated message body. 20 * @method static with_request_target(mixed $request_target) Return an instance with the specific request-target. 21 * @method static with_uri(Psr\Http\Message\UriInterface $uri, boolean $preserve_host = false) Returns an 22 * instance with the provided URI. 23 * @method static with_protocol_version(string $version) Return an instance with the specified HTTP protocol version. 24 * 25 * @method static update_uri($uri) Update URI and host header. 26 * @method Psr\Http\Message\StreamInterface get_body() Gets the body of the message. 27 * @method array<mixed> get_header(string $name) Retrieves a message header value by the given case-insensitive name. 28 * @method string get_header_line(string $name) Retrieves a comma-separated string of the values for a single header. 29 * @method array<mixed> get_headers() Retrieves all message header values. 30 * @method string get_method() Retrieves the HTTP method of the request. 31 * @method string get_protocol_version() Retrieves the HTTP protocol version as a string. 32 * @method string get_request_target() Retrieves the message's request target. 33 * @method Psr\Http\Message\UriInterface get_uri() Retrieves the URI instance. 34 * @method boolean has_header(string $name) Checks if a header exists by the given case-insensitive name. 13 35 */ 14 36 class Request implements Psr\Http\Message\RequestInterface -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Http/Response.php
r3252105 r3337302 10 10 /** 11 11 * Basic HTTP response. 12 * 13 * @method static with_body(Psr\Http\Message\StreamInterface $body) Return an instance with the specified message body. 14 * @method static with_status(int $code, string $reason_phrase = null) Return an instance with the specified 15 * status code and, optionally, reason phrase. 16 * @method static without_header(string $name) Return an instance without the specified header. 17 * @method static with_header(string $name, $value) Return an instance with the provided value replacing the 18 * specified header. 19 * @method static with_modified_body($in, $out) Return an instance with obfuscated message body. 20 * @method static with_protocol_version(string $version) Return an instance with the specified HTTP protocol version. 21 * 22 * @method Psr\Http\Message\StreamInterface get_body() Gets the body of the message. 23 * @method array<mixed> get_header(string $name) Retrieves a message header value by the given case-insensitive name. 24 * @method string get_header_line(string $name) Retrieves a comma-separated string of the values for a single header. 25 * @method array<mixed> get_headers() Retrieves all message header values. 26 * @method string get_protocol_version() Retrieves the HTTP protocol version as a string. 27 * @method string get_reason_phrase() Gets the response reason phrase associated with the status code. 28 * @method int get_status_code() Gets the response status code. 29 * @method boolean has_header(string $name) Checks if a header exists by the given case-insensitive name. 12 30 */ 13 31 class Response implements Psr\Http\Message\ResponseInterface -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Payment.php
r3252105 r3337302 11 11 * Representation of a payment. 12 12 * 13 * @method $this add_methods_allowed(string$method) Add an allowed method.14 * @method static array filter_list_params(array$terms) Filter for list method.13 * @method static add_methods_allowed($method) Add an allowed method. 14 * @method static array<mixed> filter_list_params(array<mixed> $terms) Filter for list method. 15 15 * @method ?integer getAmount() Get transaction amount. 16 16 * @method ?\Stancer\Auth getAuth() Get auth object, must be set for 3-D Secure card payments. … … 52 52 * @method array<'card'|'sepa'> get_methods_allowed() Get list of payment methods allowed for this payment. 53 53 * @method ?string get_order_id() Get order identifier. 54 * @method string get_payment_page_url(array $params = []) Return the URL for Stancer payment page. 54 * @method string get_payment_page_url(array<mixed> $params = [], boolean $force = false) Return the URL for Stancer 55 * payment page. 55 56 * @method int get_refundable_amount() Return the refundable amount. 56 57 * @method int get_refunded_amount() Return the already refunded amount. … … 67 68 * @method boolean is_not_success() Indicates if payment is not a success. 68 69 * @method boolean is_success() Indicates if payment is a success. 69 * @method static Generator<static> list(SearchFilters $terms)70 * @method static \Generator<static> list(SearchFilters $terms) 70 71 * @method $this setCapture(boolean $capture) Set capture immediately the payment. 71 72 * @method $this setCountry(string $country) … … 282 283 * 283 284 * @param array $params Parameters to add to the URL. 285 * @param boolean $force Get the payment page url even without return URL. 284 286 * @return string 285 287 * @throws Stancer\Exceptions\MissingApiKeyException When no public key was given in configuration. … … 289 291 * @phpstan-param array{lang?: string} $params Parameters to add to the URL. 290 292 */ 291 public function getPaymentPageUrl(array $params = [] ) : string293 public function getPaymentPageUrl(array $params = [], bool $force = \false) : string 292 294 { 293 295 $config = Stancer\Config::getGlobal(); 294 296 $data = [\str_replace('api', 'payment', $config->getHost()), $config->getPublicKey()]; 295 if (!$this->getReturnUrl() ) {297 if (!$this->getReturnUrl() && !$force) { 296 298 $message = 'You must provide a return URL before asking for the payment page.'; 297 299 throw new Stancer\Exceptions\MissingReturnUrlException($message); -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Payout/Details.php
r3252105 r3337302 10 10 * Payout details. 11 11 * 12 * @method \Generator<Stancer\Dispute> disputes(array $terms) List every disputes in the payout.12 * @method \Generator<Stancer\Dispute> disputes(array<mixed> $terms) List every disputes in the payout. 13 13 * @method ?\DateTimeImmutable getCreated() Get creation date. 14 14 * @method ?\Stancer\Payout\Details\Inner getDisputes() Get disputes details. … … 24 24 * @method ?\Stancer\Payout\Details\Inner get_refunds() Get refunds details. 25 25 * @method string get_uri() Get entity resource location. 26 * @method \Generator<Stancer\Dispute> listDisputes(array $terms) List every disputes in the payout.27 * @method \Generator<Stancer\Payment> listPayments(array $terms) List every payments in the payout.28 * @method \Generator<Stancer\Refund> listRefunds(array $terms) List every refunds in the payout.29 * @method \Generator<Stancer\Payment> payments(array $terms) List every payments in the payout.30 * @method \Generator<Stancer\Refund> refunds(array $terms) List every refunds in the payout.26 * @method \Generator<Stancer\Dispute> listDisputes(array<mixed> $terms) List every disputes in the payout. 27 * @method \Generator<Stancer\Payment> listPayments(array<mixed> $terms) List every payments in the payout. 28 * @method \Generator<Stancer\Refund> listRefunds(array<mixed> $terms) List every refunds in the payout. 29 * @method \Generator<Stancer\Payment> payments(array<mixed> $terms) List every payments in the payout. 30 * @method \Generator<Stancer\Refund> refunds(array<mixed> $terms) List every refunds in the payout. 31 31 * 32 32 * @phpstan-method \Generator<Stancer\Dispute> listDisputes(SearchFilters $terms) List every disputes in the payout. 33 33 * @phpstan-method \Generator<Stancer\Payment> listPayments(SearchFilters $terms) List every payments in the payout. 34 34 * @phpstan-method \Generator<Stancer\Refund> listRefunds(SearchFilters $terms) List every refunds in the payout. 35 *36 35 * @property-read ?\DateTimeImmutable $created Creation date. 37 36 * @property-read ?\DateTimeImmutable $creationDate Creation date.
Note: See TracChangeset
for help on using the changeset viewer.