#mathiasm8
1 messages ยท Page 1 of 1 (latest)
๐ 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?
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?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
In my test cases default_payment_method is null?
I'm using the 4242 4242 4242 4242 card
then you can look at https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I think I understand what you mean now
you want the card number and the name of the card holder?
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*
We don't have a Card and a Cardholder objects
we have PaymentMethod and Customer objects
Okay, let my try to rephrase. On the Card object and Card holder object. You are able to retrieve a single item: https://stripe.com/docs/api/issuing/cards/retrieve
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
How do I know the ID to use in my search if that ID is only stored in the Card object itself?
https://stripe.com/docs/api/issuing/cards/retrieve
this is Issuing! this has nothing to do with payments
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
it's a different product
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?
you can find it here https://stripe.com/docs/api/payment_methods/object#payment_method_object-billing_details-name
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.