#jgmorillo_list-intents
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1271171299494068405
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- jgmorillo_api, 22 hours ago, 10 messages
The reason you're not getting any payment for this Customer is becuase all your payments are guest payments. Stripe infers that they're related, based on the email, but the payments aren't actually attached to the Customer object in any meaningful way
well i do have another customer (guest) with same address, but this one has been created via API. Does this means that if a guest customer already exists with same email, future payments wont be listed?
@valid pine
You have to explicitly create a Customer object in order to look it up like that. An alternative would be to use the Search API and specify a query string that includes that email: https://docs.stripe.com/api/payment_intents/search
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yep, explicitly created. I will try that, thank you!
any other ideas? that isn't retrieving payments either
Hi there ๐ jumping in as my teammate needs to step away soon. Can you share an example of one of the objects that you're trying to find for one of your Customers? Looking at the values in your screenshot from the dashboard, it looks like you may be working with Charges instead of Payment Intents.
Hi Toby, sure, this is a screenshot of the code and the response
these are the related payments to that customer
Sorry, I'm not looking for how you're approaching the problem currently, I'm trying to understand what objects you're hoping to get in the response. Then I can provide better guidance on how to get them.
Like if you click on one of these in your dashboard, what is the end of the URL you see on the page?
https://dashboard.stripe.com/test/payments/pi_3PlaQXJDRrl7DR4t0y2rBHdI that would be payments, but it looks like "payments" is not accesible by the SDK
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
pi_3PlaQXJDRrl7DR4t0y2rBHdI is the part I was looking for
Let me take a closer look at that
That is a Payment Intent object, but it's not associated with a Customer object so you can't do any sort of filtering based on the ID of a Customer.
thank you Toby, i will try with a new email that doesn't exists as a guest and make sure all is set properly
Ah, these are coming from Payment Links. I would recommend trying to update your Payment Link so that it always create Customer objects. Right now it's set to only create them when required, which is typically just for Subscriptions.
https://docs.stripe.com/api/payment-link/update#update_payment_link-customer_creation
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
great to know!
Actually, that may lead you to end up with multiple Customer objects with the same email address, and may still not do what you're after.