Flow enabled_payment_methods enum values are out of sync with PHP SDK PaymentMethodsType
Environment
- Checkout SDK version:
4.8.0
- Platform and version: PHP
- Operating System and version: macOS
Description
The enum values documented in the Flow API reference for enabled_payment_methods do not fully match the values available in the PHP SDK PaymentMethodsType.
Flow API reference:
https://api-reference.checkout.com/tag/Flow/#operation/CreatePaymentSession
PHP SDK source:
https://github.com/checkout/checkout-sdk-php/blob/master/lib/Checkout/Payments/Sessions/PaymentMethodsType.php
The API documentation currently lists the following supported values for enabled_payment_methods:
"alipay_cn"
"alipay_hk"
"alma"
"applepay"
"bancontact"
"benefit"
"bizum"
"card"
"dana"
"eps"
"gcash"
"googlepay"
"ideal"
"kakaopay"
"klarna"
"knet"
"mbway"
"mobilepay"
"multibanco"
"octopus"
"p24"
"paynow"
"paypal"
"plaid"
"qpay"
"remember_me"
"sepa"
"stcpay"
"stored_card"
"tabby"
"tamara"
"tng"
"truemoney"
"twint"
"vipps"
"wechatpay"
However, some of these values appear to be missing or inconsistent in the SDK enum implementation.
Expected behavior
PaymentMethodsType in the PHP SDK should contain all enum values documented in the Flow API reference for enabled_payment_methods.
Current behavior
The SDK enum does not fully match the API documentation, making it difficult to use newer payment methods consistently through the SDK.
Steps to reproduce
-
Check the Flow API documentation:
https://api-reference.checkout.com/tag/Flow/#operation/CreatePaymentSession
-
Compare the documented enabled_payment_methods values with:
https://github.com/checkout/checkout-sdk-php/blob/master/lib/Checkout/Payments/Sessions/PaymentMethodsType.php
-
Observe that some payment method enums are missing or inconsistent.
Possible solution
Update PaymentMethodsType to include all payment method values currently supported by the Flow API documentation.
Additional information
This mismatch can affect enum validation, autocomplete, and integration consistency when using newer Flow payment methods via the PHP SDK.
Flow
enabled_payment_methodsenum values are out of sync with PHP SDKPaymentMethodsTypeEnvironment
4.8.0Description
The enum values documented in the Flow API reference for
enabled_payment_methodsdo not fully match the values available in the PHP SDKPaymentMethodsType.Flow API reference:
https://api-reference.checkout.com/tag/Flow/#operation/CreatePaymentSession
PHP SDK source:
https://github.com/checkout/checkout-sdk-php/blob/master/lib/Checkout/Payments/Sessions/PaymentMethodsType.php
The API documentation currently lists the following supported values for
enabled_payment_methods:However, some of these values appear to be missing or inconsistent in the SDK enum implementation.
Expected behavior
PaymentMethodsTypein the PHP SDK should contain all enum values documented in the Flow API reference forenabled_payment_methods.Current behavior
The SDK enum does not fully match the API documentation, making it difficult to use newer payment methods consistently through the SDK.
Steps to reproduce
Check the Flow API documentation:
https://api-reference.checkout.com/tag/Flow/#operation/CreatePaymentSession
Compare the documented
enabled_payment_methodsvalues with:https://github.com/checkout/checkout-sdk-php/blob/master/lib/Checkout/Payments/Sessions/PaymentMethodsType.php
Observe that some payment method enums are missing or inconsistent.
Possible solution
Update
PaymentMethodsTypeto include all payment method values currently supported by the Flow API documentation.Additional information
This mismatch can affect enum validation, autocomplete, and integration consistency when using newer Flow payment methods via the PHP SDK.