Plugin Directory

Changeset 3337302


Ignore:
Timestamp:
07/31/2025 01:19:49 PM (8 months ago)
Author:
stancer
Message:

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

Location:
stancer/trunk
Files:
19 edited

Legend:

Unmodified
Added
Removed
  • stancer/trunk/includes/Controller/class-stancer-change-payment-method.php

    r3252105 r3337302  
    216216     */
    217217    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.
    219219        $trad = __( '%1$s finishing with %2$s', 'stancer' );
    220220        $card = $payment->card;
  • stancer/trunk/includes/class-stancer-api.php

    r3252105 r3337302  
    107107                    sprintf(
    108108                        // 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' ),
    110110                        $refund_amount / 100,
    111111                        $api_payment->getRefundableAmount() / 100,
  • stancer/trunk/includes/class-stancer-gateway.php

    r3252105 r3337302  
    278278            $this->title = vsprintf(
    279279                // 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' ),
    281281                [
    282282                    $result['brand_name'],
     
    468468     */
    469469    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).
    471471        $desc = __( 'Starts with "%s"', 'stancer' );
    472472
     
    919919                $order->add_order_note(
    920920                    sprintf(
    921                         // translators: %s: Stancer payment identifier.
     921                        // translators: "%s": Stancer payment identifier.
    922922                        __( 'Payment was completed via Stancer (Transaction ID: %s)', 'stancer' ),
    923923                        $api_payment->getId()
  • stancer/trunk/includes/traits/trait-stancer-subscription.php

    r3252105 r3337302  
    161161
    162162            if ( count( $subscriptions ) !== 1 ) {
    163                 throw new WC_Stancer_Exception( __( 'We were unable to locate the subscription.', 'stancer' ), 7802 );
     163                throw new WC_Stancer_Exception( __( 'We were unable to find the subscription.', 'stancer' ), 7802 );
    164164            }
    165165
     
    173173            if ( $api_payment->amount < 50 ) {
    174174                $message = sprintf(
    175                     // translators: 1: Currency.
     175                    // translators: "%s": Currency.
    176176                    __(
    177                         'In order to utilize 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.',
    178178                        'stancer',
    179179                    ),
     
    197197
    198198            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.
    200200                $message = __(
    201201                    'Your payment has been successfully processed through Stancer. (Transaction ID: %s)',
     
    227227            }
    228228        } 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.
    230230            $message = __(
    231231                'The transaction for renewing your subscription has failed. (%3$s: [%1$s] %2$s)',
     
    239239            return false;
    240240        } catch ( WC_Stancer_Exception $error ) {
    241             // translators: 1: Error code. 2: Error message.
     241            // translators: "%1$s": Error code. "%2$s": Error message.
    242242            $message = __( 'The transaction for renewing your subscription has failed. (%1$s: %2$s)', 'stancer' );
    243243            $order->update_status(
  • stancer/trunk/languages/readme-fr_FR.po

    r3335259 r3337302  
    1 # Copyright (C) 2023-2024 Stancer / Iliad 78
     1# Copyright (C) 2023-2025 Stancer / Iliad 78
    22# This file is distributed under the MIT.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: 1.3.1 - ffd9b1b03b8900288feac0e106d8ae78a56d9193\n"
     5"Project-Id-Version: 1.3.1 - 3880bad72848ce4dfc58a5d6436e941a3084b961\n"
    66"Report-Msgid-Bugs-To: https://gitlab.com/wearestancer/cms/woocommerce/-/"
    77"issues\n"
    88"POT-Creation-Date: 2024-07-31 12:09+0200\n"
    9 "PO-Revision-Date: 2024-06-27 14:57+0200\n"
     9"PO-Revision-Date: 2025-07-30 14:33+0000\n"
    1010"Last-Translator: Sebastien <sderen@stancer.com>\n"
    1111"Language-Team: \n"
     
    277277
    278278#. Found in changelog list item.
     279msgid "Fix a bug regarding iframe display"
     280msgstr "Réparation d'un bug d'affichage des paiements intégré à la page"
     281
     282#. Found in changelog list item.
    279283msgid "Add support for WooCommerce blocks"
    280284msgstr "Ajout du support pour les blocs WooCommerce"
  • stancer/trunk/languages/stancer-fr_FR.po

    r3335439 r3337302  
    1 # Copyright (C) 2023-2024 Stancer / Iliad 78
     1# Copyright (C) 2023-2025 Stancer / Iliad 78
    22# This file is distributed under the MIT.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: 1.3.1 - ffd9b1b03b8900288feac0e106d8ae78a56d9193\n"
     5"Project-Id-Version: 1.3.1 - 3880bad72848ce4dfc58a5d6436e941a3084b961\n"
    66"Report-Msgid-Bugs-To: https://gitlab.com/wearestancer/cms/woocommerce/-/"
    77"issues\n"
    8 "POT-Creation-Date: 2024-07-25 13:55+0000\n"
    9 "PO-Revision-Date: 2024-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"
    1010"Last-Translator: Sebastien <sderen@stancer.com>\n"
    1111"Language-Team: \n"
     
    4747#. translators: "%1f$.02f": refunded payment sums. "%2$.02f": the amount still refundable. "%3$s":  the currency of the transaction.
    4848#: 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
     50msgid ""
     51"You cannot refund %1$.02f %3$s, the order total with the already accounted "
     52"refund is %2$.02f %3$s."
    5253msgstr ""
    5354"Vous ne pouvez pas remboursez %1$.02f %3$s le prix total de votre commande "
     
    6061#. translators: "%1$s": the mode in which our API is (test mode or Live mode).
    6162#: includes/class-stancer-gateway.php
     63#, php-format
    6264msgid "You are on %1$s mode but your %1$s keys are not properly setup."
    6365msgstr ""
     
    7476
    7577#. 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
     80msgid "%1$s ending with %2$s"
    8181msgstr "%1$s finissant par %2$s"
    8282
    8383#. Translators: "%1$d": The minimum size of the description. "%2$d": The maximum size of the description.
    8484#: includes/class-stancer-gateway.php
     85#, php-format
    8586msgid ""
    8687"The description must be between %1$d and %2$d characters after variable "
     
    138139msgstr "Tous les types de cartes supportés suivi du logo complet Stancer."
    139140
    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
    142144msgid "Starts with \"%s\""
    143145msgstr "Commence avec \"%s\""
     
    165167#. Translators: "%1$d": the minimum size of the description "%2$d": the maximum size of the description.
    166168#: includes/class-stancer-gateway.php
     169#, php-format
    167170msgid "The description must be between %1$d and %2$d characters."
    168171msgstr "La description doit être comprise entre %1$d et %2$d caractères."
     
    348351msgstr "La tentative de paiement a échouée."
    349352
    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
    352356msgid "Payment was completed via Stancer (Transaction ID: %s)"
    353357msgstr "Le paiement a été complété via Stancer (ID Transaction : %s)"
     
    355359#. translators: "$1%d": The minimum description size. "$2%d": The maximum description size. "$3%s": The default description message already translated.
    356360#: includes/class-stancer-gateway.php
     361#, php-format
    357362msgid ""
    358363"Your payment description is not between %1$d and %2$d characters, it could "
     
    365370#. translators: "%s": The order ID.
    366371#: includes/class-stancer-payment-builder.php
     372#, php-format
    367373msgid "Payment for order n°%s"
    368374msgstr "Payment pour la commande n°%s"
     
    370376#. translators: "%s": Link to plugin settings.
    371377#: includes/class-stancer.php
     378#, php-format
    372379msgid ""
    373380"Stancer payment by popup is deprecated since 31st July 2024, it will be "
     
    395402msgstr "Moyen de paiement modifié avec succès."
    396403
     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
     408msgid "%1$s finishing with %2$s"
     409msgstr "%1$s finissant par %2$s"
     410
    397411#: includes/subscriptions/class-stancer-renewal-builder.php
    398412msgid "No card found for this subscription."
     
    401415#. translators: "%1$d": Subscription ID. "%2$d": Current order ID. This text shouldn't be longer than 64 characters!
    402416#: includes/subscriptions/class-stancer-renewal-builder.php
     417#, php-format
    403418msgid "Renewal payment for subscription n°%1$d, order n°%2$d"
    404419msgstr "Renouvellement de l'abonnement n°%1$d, commande n°%2$d"
     
    406421#. translators: "%1$.2f": Amount refunded. "%2$s": Currency. "%3$.2f": Total amount after all refunds.
    407422#: includes/traits/trait-stancer-refunds.php
     423#, php-format
    408424msgid ""
    409425"The payment has been partially refunded of %1$.2f %2$s, the payment is now "
     
    415431#. translators: "%1$.2f": the amount refunded. "%2$s": the currency.
    416432#: includes/traits/trait-stancer-refunds.php
     433#, php-format
    417434msgid "The payment has been fully refunded of %1$.2f %2$s via Stancer."
    418435msgstr ""
     
    421438#. translators: "%1$s": the reason for the refund process.
    422439#: includes/traits/trait-stancer-refunds.php
     440#, php-format
    423441msgid "Reason for refund: %1$s"
    424442msgstr "Raison du remboursement : %1$s"
    425443
    426444#: includes/traits/trait-stancer-subscription.php
    427 msgid "We were unable to locate the subscription."
     445msgid "We were unable to find the subscription."
    428446msgstr "Nous n’avons pas détecté l’abonnement."
    429447
    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
     451msgid ""
     452"In order to use this payment method, the minimum required order total is "
    434453"0.50 %s."
    435454msgstr ""
     
    442461"Une erreur est survenue, le paiement de renouvellement semble incomplet."
    443462
    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
    446466msgid ""
    447467"Your payment has been successfully processed through Stancer. (Transaction "
     
    452472#. translators: "%s": Payment status.
    453473#: includes/traits/trait-stancer-subscription.php
     474#, php-format
    454475msgid "The payment is not in a valid status (%s)."
    455476msgstr "Le paiement ne semble pas avoir un statut valide (%s)."
     
    463484"envisager d’utiliser une autre carte."
    464485
    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
    467489msgid ""
    468490"The transaction for renewing your subscription has failed. (%3$s: [%1$s] "
     
    472494"[%1$s] %2$s)"
    473495
    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
    476499msgid "The transaction for renewing your subscription has failed. (%1$s: %2$s)"
    477500msgstr ""
     
    500523
    501524#: subscription/change-payment-method.php
    502 msgid "Incorrect action method"
     525msgid "Incorrect action"
    503526msgstr "Action incorrecte"
  • stancer/trunk/stancer.php

    r3335439 r3337302  
    2828 */
    2929define( 'STANCER_WC_VERSION', '1.3.1' );
    30 define( 'STANCER_ASSETS_VERSION', '1753713893709' );
     30define( 'STANCER_ASSETS_VERSION', '1753967944579' );
    3131define( 'STANCER_FILE', __FILE__ );
    3232define( 'STANCER_DIRECTORY_PATH', plugin_dir_path( STANCER_FILE ) );
  • stancer/trunk/subscription/change-payment-method.php

    r3252105 r3337302  
    3131 */
    3232function 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.
    3434    $trad = __( '%1$s finishing with %2$s', 'stancer' );
    3535    $card = $payment->card;
     
    165165            break;
    166166        default:
    167             throw new Stancer\Exceptions\Exception( __( 'Incorrect action method', 'stancer' ) );
     167            throw new Stancer\Exceptions\Exception( __( 'Incorrect action', 'stancer' ) );
    168168    }
    169169} catch ( Stancer\Exceptions\Exception $exception ) {
  • stancer/trunk/vendor-prefixer/vendor/composer/installed.json

    r3054608 r3337302  
    112112        {
    113113            "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",
    116116            "source": {
    117117                "type": "git",
    118118                "url": "https:\/\/gitlab.com\/wearestancer\/library\/lib-php.git",
    119                 "reference": "ebd111ebdce45aedbf9a892d47009098b99a99d0"
     119                "reference": "7c39bf050525c22f21bc6b9134259614dde0fb86"
    120120            },
    121121            "dist": {
    122122                "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",
    125125                "shasum": ""
    126126            },
     
    148148                "monolog\/monolog": "Allows to log interaction with the API"
    149149            },
    150             "time": "2024-02-20T16:24:50+00:00",
     150            "time": "2024-11-15T16:45:53+00:00",
    151151            "type": "library",
    152152            "installation-source": "dist",
  • stancer/trunk/vendor-prefixer/vendor/composer/installed.php

    r3335439 r3337302  
    33namespace Stancer\Scoped\Isolated;
    44
    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)));
     5return 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  
    44The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
    55and 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
    612
    713## [1.1.3] - 2024-02-20
  • stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Config.php

    r3252105 r3337302  
    9090    public const TEST_MODE = 'test';
    9191    #[\Stancer\WillChange\PHP8_3\TypedClassConstants]
    92     public const VERSION = '1.1.3';
     92    public const VERSION = '1.1.4';
    9393    /** @var non-empty-array<string|null>[] */
    9494    protected $app = [];
  • stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Core/AbstractObject.php

    r3252105 r3337302  
    1818 * @method string get_entity_name() Get entity name.
    1919 * @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.
    2121 * @method string get_uri() Get entity resource location.
    2222 * @method boolean is_modified() Indicate if the current object is modified.
    2323 * @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.
    2525 * @method string to_json() Return a JSON representation of the current object.
    2626 * @method string to_string() Return a string representation (as a JSON) of the current object.
    27  *
    2827 * @property-read ?\DateTimeImmutable $created Creation date.
    2928 * @property-read ?\DateTimeImmutable $creationDate Creation date.
     
    3736 * @property-read boolean $is_modified Alias for `Stancer\Core\AbstractObject::isModified()`.
    3837 * @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()`.
    4241 * @property-read string $toJson Alias for `Stancer\Core\AbstractObject::toJson()`.
    4342 * @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()`.
    4544 * @property-read string $to_json Alias for `Stancer\Core\AbstractObject::toJson()`.
    4645 * @property-read string $to_string Alias for `Stancer\Core\AbstractObject::toString()`.
  • stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Http/Request.php

    r3252105 r3337302  
    1111/**
    1212 * 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.
    1335 */
    1436class Request implements Psr\Http\Message\RequestInterface
  • stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Http/Response.php

    r3252105 r3337302  
    1010/**
    1111 * 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.
    1230 */
    1331class Response implements Psr\Http\Message\ResponseInterface
  • stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Payment.php

    r3252105 r3337302  
    1111 * Representation of a payment.
    1212 *
    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.
    1515 * @method ?integer getAmount() Get transaction amount.
    1616 * @method ?\Stancer\Auth getAuth() Get auth object, must be set for 3-D Secure card payments.
     
    5252 * @method array<'card'|'sepa'> get_methods_allowed() Get list of payment methods allowed for this payment.
    5353 * @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.
    5556 * @method int get_refundable_amount() Return the refundable amount.
    5657 * @method int get_refunded_amount() Return the already refunded amount.
     
    6768 * @method boolean is_not_success() Indicates if payment is not a success.
    6869 * @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)
    7071 * @method $this setCapture(boolean $capture) Set capture immediately the payment.
    7172 * @method $this setCountry(string $country)
     
    282283     *
    283284     * @param array $params Parameters to add to the URL.
     285     * @param boolean $force Get the payment page url even without return URL.
    284286     * @return string
    285287     * @throws Stancer\Exceptions\MissingApiKeyException When no public key was given in configuration.
     
    289291     * @phpstan-param array{lang?: string} $params Parameters to add to the URL.
    290292     */
    291     public function getPaymentPageUrl(array $params = []) : string
     293    public function getPaymentPageUrl(array $params = [], bool $force = \false) : string
    292294    {
    293295        $config = Stancer\Config::getGlobal();
    294296        $data = [\str_replace('api', 'payment', $config->getHost()), $config->getPublicKey()];
    295         if (!$this->getReturnUrl()) {
     297        if (!$this->getReturnUrl() && !$force) {
    296298            $message = 'You must provide a return URL before asking for the payment page.';
    297299            throw new Stancer\Exceptions\MissingReturnUrlException($message);
  • stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Payout/Details.php

    r3252105 r3337302  
    1010 * Payout details.
    1111 *
    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.
    1313 * @method ?\DateTimeImmutable getCreated() Get creation date.
    1414 * @method ?\Stancer\Payout\Details\Inner getDisputes() Get disputes details.
     
    2424 * @method ?\Stancer\Payout\Details\Inner get_refunds() Get refunds details.
    2525 * @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.
    3131 *
    3232 * @phpstan-method \Generator<Stancer\Dispute> listDisputes(SearchFilters $terms) List every disputes in the payout.
    3333 * @phpstan-method \Generator<Stancer\Payment> listPayments(SearchFilters $terms) List every payments in the payout.
    3434 * @phpstan-method \Generator<Stancer\Refund> listRefunds(SearchFilters $terms) List every refunds in the payout.
    35  *
    3635 * @property-read ?\DateTimeImmutable $created Creation date.
    3736 * @property-read ?\DateTimeImmutable $creationDate Creation date.
Note: See TracChangeset for help on using the changeset viewer.