#maneesha_code
1 messages · Page 1 of 1 (latest)
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.
- maneesha_link-payment-element, 12 hours ago, 6 messages
👋 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/1271384215325380609
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Payment Element integration already includes Link, so it shouldn’t be necessary to specify link in the payment_method_types when creating a payment intent, correct
No. Payment Element includes all available payment method types, so you need to either specify which you want to show explicitly, or let it choose automatically, based on your Dashboard settings.
This is one of the payment intent ID with my personal account - pi_3PlnxKRv0YtNBfVh1LBPIpK5
This is the payment intent ID with company account - pi_3PloCADzhuJCJJxg2Pi38ew6
But I am able to see link, even though I have not specified link in payment methods with personal account creds.
This is the code I am using
payment_intent = Stripe::PaymentIntent.create({
amount: 5999,
payment_method_types: ['card', 'us_bank_account'],
currency: 'usd'
})
It might be due to different A/B tests, but you can't rely on seeing Link if you don't specify it in payment_method_types
You either have to add it or use automatic_payment_methods (default for newer API versions)
Ok, but the issue if we specify link in payment_method_types, the payment intent created will not contain any details of card which is used for link payment. But we can get the card details from the payment intent if we are not passing link in the payment_method_types. I want to get the card details through which the link payment is done. That is my actual requirement.
What do you mean by "card details" exactly?
Payment Element shouldn't allow you to access card number etc.
No, card details i mean, visa, last4 digits etc
Yes, that's right, Link as a PaymentMethod does not expose those details: https://docs.stripe.com/api/payment_methods/object#payment_method_object-link
👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
Yes, thanks so my doubt is
if link does not expose those details, why I am able to see card details with link payment with my personal account?
This is the scenario:
With personal account
- Not specified
linkin payment_method_types like this -payment_method_types: ['card', 'us_bank_account'] - Still able to see link in payment element as I shared in previous screenshot.
- And the payment intent created through this contains card deatils as well. (This behaviour what I need with my company account)
But if I am not specifying link with the company account, then not able to see link .. it is a normal card payment
But if I pass link to payment_method_types, it works with both company and personal account. But the card deatils disappear from payment intent
But if I pass link, this is the behaviour
hi! I'm taking over this thread.
there are two ways customers can pay with Link:
- With a proper
linkpayment method - Or with a regular
cardpayment method that comes from Link
That's why you are seeing two different behaviour
trying to see if we have public docs explainig this
I couldn't find anything about this. but hopefully my explanation above makes sense.
Sorry didnt get that
So you mean, we can pay with link, eeventhough we not pass link to payment_method_type?
if you use payment_method_type: ["link"], then you get a Link payment method that doesn't include any card details.
if you use payment_method_type: ["card"], then user can either type their card number or use Link to prefill it. in both case you would get a Card payment method with the cards details.
we can pay with link, eeventhough we not pass link to payment_method_type?
yes that's possible
Ok, but the issue is it is not working with my companyt account. What could be the reason?
Is there any particular dashboard setting for that?
I am only able to see link, if I pass link to payment_method_type with the company credentials
did you enable Link in your Stripe dashboard?
can you share your account ID (acct_xxx)? it's at the top of this page: https://dashboard.stripe.com/settings/account
I am not sure, whether I can share my company account ID here..
Then we cannot help without that
If you prefer you can write in to our team: https://support.stripe.com/contact/email?topic=api_integration
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
1 sec, let me check with my team
What specifically 'is not working'?
If I am not passing link to payment_method_types, then I am not able to see link in payment element, this behaviour is only with this company account, with my personal account its working. But if I pass link to payment_method_types, it works with both company and personal account.
There's likely to be different rules applies to each account that control where/when Link is available
Didn't get what?
which rule I need to change in my company account.. I made similar changes to both account,, butnot working
You've deleted the other account ID
can i send DM?
It's nothing you can configure it's something applied by us internally. If this is important to you then please write in: https://support.stripe.com/contact/email?topic=api_integration
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
No
Ok, so if link is not passing I am able to get card details from payment intent.
But if I pass link, then card details disappear
Basically, my requirement is to get the card details for the payment done through link.
Not supported today
Ok, then how it is possible with my personal account?
As explained by my colleague already
If the PM type is link then you cannot get the card details
Ok
But with my personal account, if I am not passing link to payment_method_type I am able to see link and the payment intent created through this has card details as well..
Yep, as we have explained there are two Link modes: one is surfaced as link the other as card. When the payment uses type: 'card' then you can get the details. Otherwise you cannot
Why only one of your accounts gets Link when PM type: 'card' I don't know. As stated, if this is important to you then please write in and we can take a look