DEV Community

Discussion on: Common design patterns at Stripe

Collapse
 
paulasjes profile image
Paul Asjes

Thanks for the feedback! Can you provide examples of unnecessary empty fields? I'd like to flag those to the team.

It's true that you can't get calculated VAT directly from a PaymentIntent, we actually recommend that you store the Tax Transaction ID as metadata on your PaymentIntent so you can retrieve it later.

In your case however it appears that you're using Checkout Sessions, where you can get the tax amount after the fact, although you'll need to expand the breakdown field to get the details.