#ionu_unexpected

1 messages · Page 1 of 1 (latest)

gaunt ravenBOT
#

👋 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/1372071594570027008

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

past matrix
granite tree
#

hi, the issue si that is not my account. We have an application that handles this for other accounts. We do have the connected accounts, from where we can block the payment methods, but for the non-connected account we do not have control.
I thought that restricting this to card only as payment methods will remove all the rest

#

can I do it in the code as a payment_method_types to the stripe elements options ?

past matrix
#

You can try passing the paymentMethodTypes when you create the Element object. But can I check what do you mean by non-connected account?

granite tree
#

I have this account acct_1PIwu8BERZ9G8bk2 with pmc_1PNThYBERZ9G8bk2NNX7doWM. We have a bunch of other stripe accounts connected to it. In those cases we can restrict the pm from there, and let stripe do the magic.
But some legacy integrations on our app are with old style keys and in that case we added on
stripeInstance = await loadStripe(paymentProcessorData.value.stripeKey);
stripeElements = stripeInstance.elements
the payment_method_types as ['card']
in order to prevent having other payment methods than cards.
I will look again if we do not have a bug, and that is not set properly, but it should be.

past matrix
#

Let me know if you face any issues!

granite tree
#

this is what it is sent to the elements. So only ['card']

past matrix
#

Are you still getting Link?

granite tree
#

yes

past matrix
granite tree
#

the link I sent you has these parameters for the elements

#

yes, I looked at it again, to be sure I did not miss it

past matrix
#

Lets go back to your earlier issue with the accounts. I see this Element is being created for acct_14t4qEAG96SI5Ogh. Are you not able to log in to update the payment method configuration?

granite tree
#

yes

#

it is not our account. We integrate the elements based on what user provided as keys. So no access to the account whatsoever

#

my issue is that I want to restrict to cards, so our clients do not have to do anything in their stripe accounts. They might use link for other platforms, and we do not want to interfere with anything other than our checkout

past matrix
#

The only way to limit the options for the Bank is by disabling Link on the actual account itself. If the account you are working with doesn't want that they have to disable it.

Do also note that it’s not possible to disable Instant Bank Payments (https://docs.stripe.com/payments/link/instant-bank-payments) without disabling Link.

granite tree
#

ok, thanks. But at least the other payment methods will not be available if I set ['card'] ?

past matrix
#

Yeap!