#Matt11
1 messages · Page 1 of 1 (latest)
Please ask the Q.
I currently do the following:
1- create and confirm a setup_intent
2- create and confirm payment_intents with the payment method linked to the last object (SI or PI)
inside the application I have also a section to update the credit card, so in this case I'm creating a new SI to save it for future usage.
How can I retrieve the last card I added since currently I have two of them but I'm able to retrieve the last used from the last transaction on my database?
thanks!
How can I retrieve the last card I added since currently I have two of them but I'm able to retrieve the last used from the last transaction on my database?
Assuming you're using Customer objects: https://stripe.com/docs/api/payment_methods/customer_list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
thanks, but I think I cannot order them by last added datetime