Skip to content

Flow API enabled_payment_methods enum values are out of sync with PHP SDK PaymentMethodsType #338

Description

@AndyWang505

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

  1. Check the Flow API documentation:
    https://api-reference.checkout.com/tag/Flow/#operation/CreatePaymentSession

  2. Compare the documented enabled_payment_methods values with:
    https://github.com/checkout/checkout-sdk-php/blob/master/lib/Checkout/Payments/Sessions/PaymentMethodsType.php

  3. 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.

  • I may be able to implement this bug fix

Additional information

This mismatch can affect enum validation, autocomplete, and integration consistency when using newer Flow payment methods via the PHP SDK.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions