question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expanding Response Not Working!

See original GitHub issue

Hi Everyone,

I’m trying to confirm a card payment using stripe.js and expanding the response

const { paymentIntent, error } = await stripe.confirmCardPayment(client_secret, {
    // ...
    expand: ['payment_method']
})

It works as expected when using any cards (returns an object) except the cards which require 3D Secure Authentication (returns an ID).

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
waelelsawycommented, Aug 11, 2021

Hi @graceg-stripe,

YESSS, thank you. It works perfectly now. 💯

1reaction
graceg-stripecommented, Aug 5, 2021

Hi @waelelsawy, sorry for the delay in reply for this issue and the back and forth about this issue. We pushed another fix for this problem, and I tested it out that the expand parameter should now be working with authentication. Would you mind to try it again to see if the issue is resolved? Thank you so much!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Expanding responses | Stripe Documentation
Learn how to reduce the number of requests you make to the Stripe API by expanding objects in responses. ... Not all properties...
Read more >
OData $select and $expand not working on XML response?
I have been developing an API with XML and JSON responses integrating OData, but I'm having a problem retrieving XML responses with OData ......
Read more >
OData $select and $expand not working on XML response?
I have been developing an API with XML and JSON responses integrating OData, but I'm having a problem retrieving XML responses with OData...
Read more >
Objects Not Expanding - Google Groups
For example, the customer object will not expand when creating a ... We have not tried all of the API calls to see...
Read more >
Expanding responses with the Stripe Postman collection
In this episode, you'll learn how to expand responses using the Stripe Postman collection. ### Table of contents 00:00 Introduction00:38 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found