#maneesha_code

1 messages · Page 1 of 1 (latest)

lean ginkgoBOT
tribal pineBOT
#

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.

lean ginkgoBOT
#

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

signal kelp
#

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.

jolly spire
#

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'
})

signal kelp
#

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)

jolly spire
#

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.

signal kelp
#

What do you mean by "card details" exactly?
Payment Element shouldn't allow you to access card number etc.

jolly spire
#

No, card details i mean, visa, last4 digits etc

signal kelp
lean ginkgoBOT
hearty pike
#

👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

jolly spire
#

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 link in 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

warm patrol
#

hi! I'm taking over this thread.

#

there are two ways customers can pay with Link:

  • With a proper link payment method
  • Or with a regular card payment 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.

jolly spire
#

Sorry didnt get that

#

So you mean, we can pay with link, eeventhough we not pass link to payment_method_type?

warm patrol
#

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

jolly spire
#

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

warm patrol
#

did you enable Link in your Stripe dashboard?

jolly spire
#

yes

#

yaa sure 1 sec

lean ginkgoBOT
jolly spire
#

I am not sure, whether I can share my company account ID here..

golden quartz
#

Then we cannot help without that

jolly spire
#

1 sec, let me check with my team

golden quartz
jolly spire
#

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.

golden quartz
#

There's likely to be different rules applies to each account that control where/when Link is available

jolly spire
#

hmm didnt get that

#

this is my personal account id - acct_1PbgZLRv0YtNBfVh

golden quartz
#

Didn't get what?

jolly spire
#

which rule I need to change in my company account.. I made similar changes to both account,, butnot working

golden quartz
#

You've deleted the other account ID

jolly spire
#

can i send DM?

golden quartz
# jolly spire which rule I need to change in my company account.. I made similar changes to bo...

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

golden quartz
jolly spire
#

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.

golden quartz
#

Not supported today

jolly spire
#

Ok, then how it is possible with my personal account?

golden quartz
#

If the PM type is link then you cannot get the card details

jolly spire
#

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

golden quartz
#

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

jolly spire
#

Ok, thanks, I have already initiated a mail thread with stripe regarding this. Though will check here as well.

#

Thanks a lot for your support!