#console-logger_api

1 messages ¡ Page 1 of 1 (latest)

somber oakBOT
#

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

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

dapper sand
#

What specifically are you looking for? What request are you making to get it?

#

Please be specific and post code from your API call(s)

cloud cove
#

I'm looking for card information. I'm using the Node.js SDK to retrieve payment methods for a given setup intent:

  const stripePaymentMethod = await stripe.paymentMethods.retrieve(
    setupIntent.payment_method,
    {
      stripeAccount: stripeAccountId,
    }
  );
dapper sand
#

If you console log setupIntent, does it show a Payment Method?

cloud cove
#

Yes there is a payment_method ID

#

pm_1Pnon1QBQ9CK4lapP1wHobrD

dapper sand
#

Okay, so you can successfully retrieve the ID from setupIntent.payment_method? So what's going wrong from there?

cloud cove
#

Yes I successfully retrieve the payment method. But the payment method doesn't have any card information

#

It has a "link" object, but the link object just has the email. No card information

dapper sand
#

That's to be expected. Link acts as it's own payment method type. There's no Card object to get card info from.

cloud cove
#

So there is no way for me to access the card information for somebody who's using a link payment method?

dapper sand
#

Correct.