#guizhong_api

1 messages ยท Page 1 of 1 (latest)

hollow cairnBOT
#

๐Ÿ‘‹ 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/1479410199931392123

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

sleek talon
#

ไฝ ๅฅฝ

hollow cairnBOT
#

๐Ÿ—ฃ๏ธ Sorry, English only

We can only provide help in English on Discord, but you can contact Stripe support for help in other languages. ๐ŸŒ Translate this message

sleek talon
#

I want to disable card payments on the br site, but the link is still displayed. How can I disable the link? (ExcludedPaymentMethodTypes: ['card'])

#

hello

#

This prompt will appear.

lunar basin
#

๐Ÿ‘‹ Hi there! Let me take a look

#

Are you creating a Payment Intent and passing it to Elements here? Or using the Payment Element without an intent?

sleek talon
#

Create the payment intent here and pass it to Elements.

lunar basin
sleek talon
#

Okay, let me take a look.Hold on

#

But we did not use this payment method to create it.

lunar basin
#

Can you share a Payment Intent ID or request ID?

sleek talon
#

req_0DBCzbubcY5d4X

#

Is this it?

lunar basin
#

That's it. You would have to add excluded_payment_method_types there

sleek talon
#

req_FjRk6ZCCO3wWpp

#

stripe.elements does not display any logs in the console.

#

However, I included the excludedPaymentMethodTypes parameter.

lunar basin
#

In neither of those requests to create a Payment Intent, you are not setting excluded_payment_method_types: ['card']

hollow cairnBOT
lunar basin
sleek talon
#

The payment was completed before the request to create the payment intent was made. I need to filter out card payments when creating the payment list.

dawn karma
#

hi! I'm taking over this thread.

#

is your goal to disable Link in the Payment Element?

sleek talon
#

yes

dawn karma
sleek talon
#

I need to hide card payments on the Brazilian and Mexican websites, while displaying them on other websites, not completely hiding them.

dawn karma
#

I'm confused. are you trying to hide card payments, or link payments?

sleek talon
#

I want to hide the card payment option, but the link also shows card payment options, so the link also needs to be hidden.

dawn karma
#

got it. and what's your payment flow in the Payment Element? do you first create a PaymentIntent, and then use the PaymentIntent client secret to mount the Payment Element? or do you first mount the Payment Element, and then later create the PaymentIntent?

sleek talon
#

First mount the Payment Element, then create the PaymentIntent.

dawn karma
#

got it. then yes what you are doing is correct. you just need to disable the Link Payment Method in the Dashboard like I explained.

sleek talon
#

If I disable "Linked Payment Methods" in the control panel, will this payment method also be invisible on other websites?

dawn karma
#

if you want to diable link on just this specific page, then use wallets.link: never when you create the payment element (see link I shared above).

sleek talon
#

Okay, thanks for your help. I'll try to handle it myself first, and if I can't solve it, I'll come back to you for help next week.

#

goodbye