Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions lib/Checkout/Payments/Sessions/PaymentMethodsType.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,64 @@

namespace Checkout\Payments\Sessions;

/**
* The type of payment method that can be enabled or disabled for a payment session.
*
* This is a consolidated list covering every payment method the Flow API accepts for
* enabled_payment_methods / disabled_payment_methods. Constants marked @deprecated are no
* longer part of the specification but are kept for backward compatibility.
*/
class PaymentMethodsType
{
public $ALIPAY_CN = "alipay_cn";

Check warning on line 14 in lib/Checkout/Payments/Sessions/PaymentMethodsType.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this field "$ALIPAY_CN" to match the regular expression ^[a-z][a-zA-Z0-9]*$.

See more on https://sonarcloud.io/project/issues?id=checkout_checkout-sdk-php&issues=AaDskPQxaZA5WhIAQFO3&open=AaDskPQxaZA5WhIAQFO3&pullRequest=385
public $ALIPAY_HK = "alipay_hk";

Check warning on line 15 in lib/Checkout/Payments/Sessions/PaymentMethodsType.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this field "$ALIPAY_HK" to match the regular expression ^[a-z][a-zA-Z0-9]*$.

See more on https://sonarcloud.io/project/issues?id=checkout_checkout-sdk-php&issues=AaDskPQyaZA5WhIAQFO4&open=AaDskPQyaZA5WhIAQFO4&pullRequest=385
public $ALMA = "alma";

Check warning on line 16 in lib/Checkout/Payments/Sessions/PaymentMethodsType.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this field "$ALMA" to match the regular expression ^[a-z][a-zA-Z0-9]*$.

See more on https://sonarcloud.io/project/issues?id=checkout_checkout-sdk-php&issues=AaDskPQyaZA5WhIAQFO5&open=AaDskPQyaZA5WhIAQFO5&pullRequest=385
public $APPLEPAY = "applepay";
public $BANCONTACT = "bancontact";
public $BENEFIT = "benefit";

Check warning on line 19 in lib/Checkout/Payments/Sessions/PaymentMethodsType.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this field "$BENEFIT" to match the regular expression ^[a-z][a-zA-Z0-9]*$.

See more on https://sonarcloud.io/project/issues?id=checkout_checkout-sdk-php&issues=AaDskPQyaZA5WhIAQFO6&open=AaDskPQyaZA5WhIAQFO6&pullRequest=385
public $BIZUM = "bizum";

Check warning on line 20 in lib/Checkout/Payments/Sessions/PaymentMethodsType.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this field "$BIZUM" to match the regular expression ^[a-z][a-zA-Z0-9]*$.

See more on https://sonarcloud.io/project/issues?id=checkout_checkout-sdk-php&issues=AaDskPQyaZA5WhIAQFO7&open=AaDskPQyaZA5WhIAQFO7&pullRequest=385
public $CARD = "card";
public $DANA = "dana";

Check warning on line 22 in lib/Checkout/Payments/Sessions/PaymentMethodsType.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this field "$DANA" to match the regular expression ^[a-z][a-zA-Z0-9]*$.

See more on https://sonarcloud.io/project/issues?id=checkout_checkout-sdk-php&issues=AaDskPQyaZA5WhIAQFO8&open=AaDskPQyaZA5WhIAQFO8&pullRequest=385
public $EPS = "eps";

/**
* @deprecated No longer part of the specification.
*/
public $GIROPAY = "giropay";
public $GCASH = "gcash";

Check warning on line 29 in lib/Checkout/Payments/Sessions/PaymentMethodsType.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this field "$GCASH" to match the regular expression ^[a-z][a-zA-Z0-9]*$.

See more on https://sonarcloud.io/project/issues?id=checkout_checkout-sdk-php&issues=AaDskPQyaZA5WhIAQFO9&open=AaDskPQyaZA5WhIAQFO9&pullRequest=385
public $GOOGLEPAY = "googlepay";
public $IDEAL = "ideal";
public $KAKAOPAY = "kakaopay";

Check warning on line 32 in lib/Checkout/Payments/Sessions/PaymentMethodsType.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this field "$KAKAOPAY" to match the regular expression ^[a-z][a-zA-Z0-9]*$.

See more on https://sonarcloud.io/project/issues?id=checkout_checkout-sdk-php&issues=AaDskPQyaZA5WhIAQFO-&open=AaDskPQyaZA5WhIAQFO-&pullRequest=385
public $KLARNA = "klarna";

Check warning on line 33 in lib/Checkout/Payments/Sessions/PaymentMethodsType.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this field "$KLARNA" to match the regular expression ^[a-z][a-zA-Z0-9]*$.

See more on https://sonarcloud.io/project/issues?id=checkout_checkout-sdk-php&issues=AaDskPQyaZA5WhIAQFO_&open=AaDskPQyaZA5WhIAQFO_&pullRequest=385
public $KNET = "knet";
public $MBWAY = "mbway";

Check warning on line 35 in lib/Checkout/Payments/Sessions/PaymentMethodsType.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this field "$MBWAY" to match the regular expression ^[a-z][a-zA-Z0-9]*$.

See more on https://sonarcloud.io/project/issues?id=checkout_checkout-sdk-php&issues=AaDskPQyaZA5WhIAQFPA&open=AaDskPQyaZA5WhIAQFPA&pullRequest=385
public $MOBILEPAY = "mobilepay";

Check warning on line 36 in lib/Checkout/Payments/Sessions/PaymentMethodsType.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this field "$MOBILEPAY" to match the regular expression ^[a-z][a-zA-Z0-9]*$.

See more on https://sonarcloud.io/project/issues?id=checkout_checkout-sdk-php&issues=AaDskPQyaZA5WhIAQFPB&open=AaDskPQyaZA5WhIAQFPB&pullRequest=385
public $MULTIBANCO = "multibanco";
public $OCTOPUS = "octopus";

Check warning on line 38 in lib/Checkout/Payments/Sessions/PaymentMethodsType.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this field "$OCTOPUS" to match the regular expression ^[a-z][a-zA-Z0-9]*$.

See more on https://sonarcloud.io/project/issues?id=checkout_checkout-sdk-php&issues=AaDskPQyaZA5WhIAQFPC&open=AaDskPQyaZA5WhIAQFPC&pullRequest=385
public $PRZELEWY24 = "p24";
public $PAYNOW = "paynow";

Check warning on line 40 in lib/Checkout/Payments/Sessions/PaymentMethodsType.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this field "$PAYNOW" to match the regular expression ^[a-z][a-zA-Z0-9]*$.

See more on https://sonarcloud.io/project/issues?id=checkout_checkout-sdk-php&issues=AaDskPQyaZA5WhIAQFPD&open=AaDskPQyaZA5WhIAQFPD&pullRequest=385
public $PAYPAL = "paypal";
public $PLAID = "plaid";

Check warning on line 42 in lib/Checkout/Payments/Sessions/PaymentMethodsType.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this field "$PLAID" to match the regular expression ^[a-z][a-zA-Z0-9]*$.

See more on https://sonarcloud.io/project/issues?id=checkout_checkout-sdk-php&issues=AaDskPQyaZA5WhIAQFPE&open=AaDskPQyaZA5WhIAQFPE&pullRequest=385
public $QPAY = "qpay";

Check warning on line 43 in lib/Checkout/Payments/Sessions/PaymentMethodsType.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this field "$QPAY" to match the regular expression ^[a-z][a-zA-Z0-9]*$.

See more on https://sonarcloud.io/project/issues?id=checkout_checkout-sdk-php&issues=AaDskPQyaZA5WhIAQFPF&open=AaDskPQyaZA5WhIAQFPF&pullRequest=385

/**
* Fully supported by the API but deliberately unlisted in the public specification, so that
* merchants do not disable Remember Me en masse. Do not remove it as an unspecified value.
*/
public $REMEMBER_ME = "remember_me";

Check warning on line 49 in lib/Checkout/Payments/Sessions/PaymentMethodsType.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this field "$REMEMBER_ME" to match the regular expression ^[a-z][a-zA-Z0-9]*$.

See more on https://sonarcloud.io/project/issues?id=checkout_checkout-sdk-php&issues=AaDskPQyaZA5WhIAQFPG&open=AaDskPQyaZA5WhIAQFPG&pullRequest=385
public $SEPA = "sepa";

Check warning on line 50 in lib/Checkout/Payments/Sessions/PaymentMethodsType.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this field "$SEPA" to match the regular expression ^[a-z][a-zA-Z0-9]*$.

See more on https://sonarcloud.io/project/issues?id=checkout_checkout-sdk-php&issues=AaDskPQyaZA5WhIAQFPH&open=AaDskPQyaZA5WhIAQFPH&pullRequest=385

/**
* @deprecated No longer part of the specification.
*/
public $SOFORT = "sofort";
public $STCPAY = "stcpay";

Check warning on line 56 in lib/Checkout/Payments/Sessions/PaymentMethodsType.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this field "$STCPAY" to match the regular expression ^[a-z][a-zA-Z0-9]*$.

See more on https://sonarcloud.io/project/issues?id=checkout_checkout-sdk-php&issues=AaDskPQyaZA5WhIAQFPI&open=AaDskPQyaZA5WhIAQFPI&pullRequest=385
public $STORED_CARD = "stored_card";

Check warning on line 57 in lib/Checkout/Payments/Sessions/PaymentMethodsType.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this field "$STORED_CARD" to match the regular expression ^[a-z][a-zA-Z0-9]*$.

See more on https://sonarcloud.io/project/issues?id=checkout_checkout-sdk-php&issues=AaDskPQyaZA5WhIAQFPJ&open=AaDskPQyaZA5WhIAQFPJ&pullRequest=385
public $TABBY = "tabby";

Check warning on line 58 in lib/Checkout/Payments/Sessions/PaymentMethodsType.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this field "$TABBY" to match the regular expression ^[a-z][a-zA-Z0-9]*$.

See more on https://sonarcloud.io/project/issues?id=checkout_checkout-sdk-php&issues=AaDskPQyaZA5WhIAQFPK&open=AaDskPQyaZA5WhIAQFPK&pullRequest=385
public $TAMARA = "tamara";

Check warning on line 59 in lib/Checkout/Payments/Sessions/PaymentMethodsType.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this field "$TAMARA" to match the regular expression ^[a-z][a-zA-Z0-9]*$.

See more on https://sonarcloud.io/project/issues?id=checkout_checkout-sdk-php&issues=AaDskPQyaZA5WhIAQFPL&open=AaDskPQyaZA5WhIAQFPL&pullRequest=385
public $TNG = "tng";

Check warning on line 60 in lib/Checkout/Payments/Sessions/PaymentMethodsType.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this field "$TNG" to match the regular expression ^[a-z][a-zA-Z0-9]*$.

See more on https://sonarcloud.io/project/issues?id=checkout_checkout-sdk-php&issues=AaDskPQyaZA5WhIAQFPM&open=AaDskPQyaZA5WhIAQFPM&pullRequest=385
public $TRUEMONEY = "truemoney";

Check warning on line 61 in lib/Checkout/Payments/Sessions/PaymentMethodsType.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this field "$TRUEMONEY" to match the regular expression ^[a-z][a-zA-Z0-9]*$.

See more on https://sonarcloud.io/project/issues?id=checkout_checkout-sdk-php&issues=AaDskPQyaZA5WhIAQFPN&open=AaDskPQyaZA5WhIAQFPN&pullRequest=385
public $TWINT = "twint";

Check warning on line 62 in lib/Checkout/Payments/Sessions/PaymentMethodsType.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this field "$TWINT" to match the regular expression ^[a-z][a-zA-Z0-9]*$.

See more on https://sonarcloud.io/project/issues?id=checkout_checkout-sdk-php&issues=AaDskPQyaZA5WhIAQFPO&open=AaDskPQyaZA5WhIAQFPO&pullRequest=385
public $VIPPS = "vipps";

Check warning on line 63 in lib/Checkout/Payments/Sessions/PaymentMethodsType.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this field "$VIPPS" to match the regular expression ^[a-z][a-zA-Z0-9]*$.

See more on https://sonarcloud.io/project/issues?id=checkout_checkout-sdk-php&issues=AaDskPQyaZA5WhIAQFPP&open=AaDskPQyaZA5WhIAQFPP&pullRequest=385
public $WECHATPAY = "wechatpay";

Check warning on line 64 in lib/Checkout/Payments/Sessions/PaymentMethodsType.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this field "$WECHATPAY" to match the regular expression ^[a-z][a-zA-Z0-9]*$.

See more on https://sonarcloud.io/project/issues?id=checkout_checkout-sdk-php&issues=AaDskPQyaZA5WhIAQFPQ&open=AaDskPQyaZA5WhIAQFPQ&pullRequest=385
}
Loading