#mathiasm8

1 messages ยท Page 1 of 1 (latest)

shut plazaBOT
mild osprey
#

๐Ÿ‘‹ happy to help

#

For instance will there always only be one payment intent and charge for an subscription or can there be more than one?
For each cycle of the subscription, Stripe will generate a new Invoice

#

each Invoice has 1 Payment Intent

#

and each time we attempt to pay the PaymentIntent a Charge Object will be created

#

also the card object ic_1 and cardholder ich_1, what object can I use to find these? I can't see references to those in either invoice, payment intent or charge.
I'm not sure I follow, where did you get those IDs from? would you mind sharing a real example?

scarlet current
#

Thanks for the answer on payment intent and charge. So the IC_1 and ICH_1 are just to mention what the ID's for cards and cardholders start with. But before being able to search for a card or a cardholder, I need to know what ID to search for. If I would like to present a user with a full overview of ex. an Invoice where the card and cardholder information are part of this. How do I know what cardholder id and card id to search for. Given the fact that I know the ID of the invoice, payment intent and charge. Where is the ID of the card and cardholder stored in an transaction?

#

The ID of the card and cardholder must be part of some other information in a payment flow?

mild osprey
scarlet current
#

In my test cases default_payment_method is null?

#

I'm using the 4242 4242 4242 4242 card

mild osprey
scarlet current
#

I can't find a reference to the card ID there?

#

Or cardholder

mild osprey
#

I think I understand what you mean now

#

you want the card number and the name of the card holder?

scarlet current
#

Yes. Basically I wan't to look up the Card object and Card object when showing details of my invoice, but I can't find those ID's stored anywhere related to the invoice, payment or charge.

#

Card and cardholder object*

mild osprey
#

We don't have a Card and a Cardholder objects

#

we have PaymentMethod and Customer objects

scarlet current
#

How do I know the ID to use in my search if that ID is only stored in the Card object itself?

mild osprey
#

it's a different product

scarlet current
#

Arh my bad sorry. So How can I then get the name of the cardholder to show on my invoice?

#

Is it located in the payment intent?

mild osprey