How to retrieve the supported card types in Braintree v5? #1266
Unanswered
alecarnevale
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi @alecarnevale - this feature is not currently supported on v5, but I will add this to our feature requests and post an update here if this is something we can add! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there.
1. Context
We are migrating from version 4.x to 5.x and we are finding a problem with the
BraintreeClient
. We know that, as stated in the migration doc, instantiating a BraintreeClient is no more needed to create instance of other clients (CarClient, Paypal, GooglePay...).However, we are using
BraintreeClient
not only to instantiate other clients but also to retrieve the BraintreeConfiguration
through the BraintreeClient::getConfiguration method.2. Use case
We are using the
Configuration
to retrieve the supportedCartTypes. Our use case is to check the user's card type against the supported ones before starting the tokenization flow - and feedback our users if they typed an unsupported card.3. Problem
So, while switching to the version 5, BraintreeClient::getConfiguration is still there as for Configuration.supportedCartTypes but BraintreeClient is now mark as restricted to the library.
4. Question
Is there another way to retrieve the Configuration without usage of the
BraintreeClient
? Or is there another way to check what card types are available for the current Braintree configuration?Beta Was this translation helpful? Give feedback.
All reactions