#KarlS-PI
1 messages · Page 1 of 1 (latest)
yep, but you would need to click on the Method button and select 'GET' methods
otherwise it doesn't show GET methods in the logs by default
req_pmNWHzX0JEoPFe
give me a second to look into this
ok
@river pewter doesn't look like you're using PaymentIntents in your integration, can you switch to retrieving Charges instead? https://stripe.com/docs/api/charges/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.
OK, I may have sent wrong req_. keep this thread alive. Just sitting down for dinner.
sure thing!
Just ran another request for Payments
The date I sent was 9/28/2021 5:14:36 PM
The request is: req_b1oSyRodb6gsgN
And this date/time is this PI: pi_3Jejt2G30Vl6ne6N0jUYEf9r
I think I see the problem Alex.
out of curiosity what was it?
The time that I am saving to DB is my local time (which I do not understand) and the time I see on the PI is 3 hours earlier
So... if I fetch dates from Stripe API, are the date/times returned local time?
Stripe API uses the unix timestamp (not local time)
OK, I'm going to run a test
well that is it, but now need to understand the date/time conversion
datetime conversions are my bane, i'm absolutely terrible with it
what timezone is the Stripe UI?
you mean your Dashboard?
yes
so this PI for example: https://dashboard.stripe.com/payments/pi_3Jejt2G30Vl6ne6N0jUYEf9r
I see a payment date of 9/28 1:14 PM
you would need to check your Dashboard settings here : https://dashboard.stripe.com/settings/account
there's a time zone field
OK, I see it. The API is giving me a different time than what I see as the Time Zone, so is the API date/time all UTC?
yes the API date/time is all UTC
I see the problem (on my end)
I put the date/time in DB without UTC syntax and when I parse it in C# it parses to my local date/time.
aaaaah, it's great that you've managed to figure it out