#jayvir_code

1 messages ยท Page 1 of 1 (latest)

somber daggerBOT
#

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

๐Ÿ“ 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.

autumn stag
#

hi link option is not loading in stripe

#

@native trench setup id

seti_1RPNIVLKTM2K3idyJmcTX2ja

#

i am using ngx-stripe

native trench
#

you're only passing cards as payment_method_types

#

that's why Link is not showing

autumn stag
#

backend:

const data = {
amount: amount,
currency: 'usd',
confirm: true,
payment_method: paymentId,
metadata: metadata,
application_fee_amount: serviceFee,
transfer_data: {
destination: connectedAccountId,
},
customer: customerId,
payment_method_types: ['link', 'card'],
on_behalf_of: connectedAccountId, // โœ… Ensures liability is on connected
};
let url = 'https://api.stripe.com/v1/payment_intents';
let apiCall = await axios({
method: 'post',
maxBodyLength: Infinity,
url: url,
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
Authorization: Bearer ${secretKey},
},
data: data,
});

#

payment_method_types: ['link', 'card'],

no i am passing link

native trench
#

the request you shared didn't

autumn stag
#

seti_1RPNLGJRoJfA1S16WEKlah5d

#

@native trench in this request ?

native trench
#

yes in this one Link is passed

#

do you have a hosted version of your site that I could test this on?

autumn stag
#

@native trench currently i am working in localhost

native trench
#

hmmm that doesn't give me much room to be able to troubleshoot this

#

can you use something like ngrok to tunnel into an accessible site?

#

or maybe do a reproduction on glitch or something

autumn stag
#

sure let me check what can i do
it will take some time

#

i will message when i am ready

native trench
#

why are you adding your own PMT selector?

#

since you're using PaymentElement you can just pass all the needed PMTs and we can generate the selector for you

#

the error is that you're destorying the PaymentElement each time

#

which I don't really think it should be the right way to do it