#dmilic_best-practices

1 messages ยท Page 1 of 1 (latest)

dense cedarBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1329452540638527530

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

little nova
#

๐Ÿ‘‹ happy to help!

#

Hide card payment and show other types (in our case google, apple and amazon pay
Don't use PaymentSheet in this case

slate ore
#

I am talking about React web app and not react-native. I am using PaymentElement component.

#

I only managed to find a way to hide apple and google through a wallet prop in options. But I cant hide amazon pay. Also dont know how to hide card

dense cedarBOT
little nova
#

Ah sorry

#

In that casa you should use Express Checkout Element for wallet payments only

#

Because you if you disbale card on Element then the Wallet will disapear too

slate ore
#

Alright I understand. Now we are left only with the issue how to leave only card and remove the rest

tacit hollow
#

๐Ÿ‘‹ stepping in

slate ore
#

We are not using Dynamic Payment Methods but we will look into it. So it is possible that inside the same react app, we render once only card payment and in another case google/apple/amazon ?

tacit hollow
#

Yeah there are a couple ways to control the payment method types you show... you can either set them explicitly via payment_method_types (and in this case you disable wallets when you create Payment Element via https://docs.stripe.com/js/elements_object/create_payment_element#payment_element_create-options-wallets as apple_pay and google_pay fall under the card payment method type) or you use Dynamic Payment Methods which you can also use Payment Method Configurations (https://docs.stripe.com/payments/payment-method-configurations) to have multiple different configurations of Dynamic Payment Methods.

slate ore
#

Great, I will try the Payment Method Configurations approach. Thank you very much !