#MisterJ-Payment
1 messages ยท Page 1 of 1 (latest)
So I was trying to retrieve the related guest payment of our customer, but I cant find a way to do it..
using API
So you want to get a list payments that made by a particular customer?
Yes but only the related guest payments... like foir example in this image, I like to get the guest payment..
This is a Dashboard-only feature, there's no API to retrieve the guest payments.
oh shoot, then I have to retrieve 3k payment intent heha and loop them just to find this.. is it possible to search the payment intent by description? if not then I have to do many fetch to stripe just to retrieve this data.
ops it seems its not just 3k payment intent, but our client has 10,000+ payment intents.. it would be awesome if theirs an API to easily get Related Guest Payment..
https://stripe.com/docs/search#query-fields-for-payment-intents These are some query fields that you can use with PaymentIntent search API
You can specify a metatdata when creating the PaymentIntent, and search with it later.
yeah, but it seems our client employees only wrote the name of the customer in the description. That is the only useful data. And it seems query field for payment intents does not support description.
it would take time just to add metadata on each 10k payment intents
How about do it programmatically ?
its the same thing, like I have to retrieve each payment intent, loop 10k update each. unless theirs an API to update multiple data at ones.
There's no batch API to update multiple PaymentIntents at the same time. You need to loop through a list PaymentIntents and call the PaymentIntent update API to update the metadata with description.
but are theirs any change to add this on API, to easily grab Related Guest Payment Of Customer?
We welcome any feedback ๐ please let Stripe support know this feature request https://support.stripe.com/contact
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
It seems the support there does not know some terms we used as a developer.
its hard to chat with them, but anyway Ill just say to our client that stripe does not yet have API to fetch Related Guest Payments.
can I ask one last question?
in payment intent object, what property the payment was successfully paid?
You can use the status property (https://stripe.com/docs/api/payment_intents/object#payment_intent_object-status), when it becomes succeeded it means that the payment is successful
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
https://stripe.com/docs/payments/intents You can also learn more about the PaymentIntent lifecycle here.
Thanks for that,, sorry, can I ask again, is their are way to grab payment intent using payment method?
this question is related to grabbing Related Guest Payment
No, I don't see a way to filter paymentIntents by payment_method'
oh men,, how do I grab related guest payment... I mean stripe API should have this, this is very important feature. That way its easier to get related payments. Can you maybe talk about this with the stripe team?
My client has paid much money on stripe, we dont want to discourage the client.
Are you are Sigma user? if you are, you can write a SQL-like query to filter the payment_intents by description
Also can you share with one customer ID that has guest payments?
cus_MLRyQWYIQIjJ0N
that is a sample customer that has a related guest payments
an API where I can pass a customer_id to get Related Payment Intent would be awesome..
There's no such API right now.
I'd suggest you to inform you client to input the customer's name in the customer field instead of description field from now on, so that you can easily filter the paymentIntents with customer
Let me think about a solution for your current problem, give me a min
This might work, but you need to write a bit of code
- Retrieve all PaymentIntents
- If the PaymentIntent's
customeris empty but the description contains a name, pass the customer's name to the Customer Search API (https://stripe.com/docs/search#query-fields-for-customers) which will returns you a list of matched names - Update the PaymentIntent with the customer returned from the search API call, if any.
There are some considerations
- You might update the PaymentIntent with a wrong customer if there's another customer with the same name
- The customer is not yet created and the customer Search API returns empty list
Thanks for the suggestion but it seems its too risky
The fact that the paymentIntent was not associated with a customer makes it hard to trace back, even the guest payments shown in the Dashboard is not 100% correct.
inpecting the customers, it seems the Related Guest Payment are correct., the reason why our Client ask this is because why its hard to get the data when Stripe can show it easily on the Stripe Customer View Page.
That is why they are curious why no API for it.
Your client should just associate the paymentIntent with a customer, and there's already an API to filter PaymentIntents by customer.