#hemabhravee
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- hemabhravee, 5 days ago, 16 messages
- hemabhravee, 6 days ago, 10 messages
- hemabhravee-account-support, 6 days ago, 4 messages
hello! I'm not sure if I understood this correctly, do you want to retrieve the Payment Link or do you want to retrieve the corresponding Charges / PaymentIntents?
So business use-case wise - I'm using payment links for payments and need to show a list of all past transactions.
For this, I was just retrieving payment links.
Would it be better to retrieve the corresponding charge objects instead?
if you're looking for past transactions, you should retrieve the Charge or PaymentIntent object instead. The Payment Link is just a link, it doesn't reflect the transactions / payments that have been made
Also, if you want the metadata from the Payment Link to be reflected in the PaymentIntent / Charge object, you should make sure you pass in the metadata here : https://stripe.com/docs/api/payment_links/payment_links/create#create_payment_link-payment_intent_data-metadata
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.