#ucalabrese57
1 messages · Page 1 of 1 (latest)
What doesn't work exactly? Can you share the ID (req_xxx) of the API request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site 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.
here the req req_SN4VeIB9DYdL6G
the problem is that I can't receive all payments method
What's the pm_xxx ID you expect to see returned?
I expect the 3 last payment
Ok, but a specific pm_xxxx ID example, like in your screenshot
By the way, this request is to the /v1/payment_intents endpoint
Not /v1/payment_methods
I'm sorry... here the right req_bqyiFMDuCo4Xrc
But anyway, that list endpoint doesn't work like you expect. You need to provide the customer parameter
ok ok, my goal is to get the lastest payments with my api without provide the customer, because we want to treat those payment in our system (for delivery, etc..) is there any solution for that ?
Well, do you mean payments or payment methods? Because right now you're using Payment Method objects and APIs, which are a representation of credit cards, etc not actual payments
I mean payments but I'm using the object Payment Method to get payments (I have seen in the documentation that PaymentMethod retrieve all information I need {
"id": "pm_1MqLiJLkdIwHu7ixUEgbFdYF",
"object": "payment_method",
"billing_details": {
"address": {
"city": null,
"country": null,
"line1": null,
"line2": null,
"postal_code": null,
"state": null
},
"email": null,
"name": null,
"phone": null
}...
but I don't find any route that retrieve the datas that I need)
I'm looking for the billing_details of a payment
that's what I need
You should be using Payment Intents to get details relating to specific payments. The billing details are available on the underlying Charge, pulled from the card/payment method at the time of payment: https://docs.stripe.com/api/charges/object#charge_object-billing_details
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thank you very much for your help :)
if I need more help, could I continues in this thread ?