#mibrahim-paymentintents-list
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.
- mibrahim15, 3 hours ago, 9 messages
- MIbrahim, 19 hours ago, 23 messages
@uneven peak Do you have more details? What are you doing exactly? Which API are you using? What does your code look like?
yes sure
I am fetching PaymentIntents and passing two dates for gte and lte
$donationsArray = \Stripe\PaymentIntent::all([
'limit' => 200,
'created' => [
//'gt' => $donations_from_date_one_back,
//'lte' => $donations_from_date,
'gte' => $donations_from_date_start,
'lte' => $donations_from_date_end,
],
"starting_after" => $from_id,
'expand' => ['data.charges.data.balance_transaction']
//'expand' => ['data.balance_transaction']
]);
I am calling this recursively using pagination actually, you can also check my previous threads
We help almost a thousand developers a week here, we can't really read every past threads, that's unscalable. It's important to make sure your threads are "self contained" and have the relevant information.
So you use the List PaymentIntents API in this case. The created would be the time the PaymentIntent was created, not the Charge. The PaymentIntent can totally be created on Monday and confirmed on Tuesday for example. A PaymentIntent can also have N failed Charges. So it doesn't make sense to look for a Charge object ch_123 on the List PaymentIntents API honestly. You should be using the List Charges API https://stripe.com/docs/api/charges/list instead.
Also note that the gte and lte parameters are unix timestamps
mibrahim-paymentintents-list
Yes I am passing dates in timestamp, Can you confirm what is the date of the paymentIntent this charge ID belong to?
You can look it up yourself in the API or in the Dashboard.
I can't really share that info for you here sorry
While looking for the date of payment Intent in dashboard, it looks like the payment intent was created on the same time this charge was created
Okay so what are you trying to do to debug this exactly? What are you logging exactly? I'm sorry but for now all you said is "I pass some dates to the API to look for a Charge but it's not there"
Like my advice is to change your code to hardcode the exact unix timestamp for a second before/after that PaymentIntent's created and make sure it's in the response
@uneven peak Are you around?