#anrighi.WR

1 messages · Page 1 of 1 (latest)

slate steppeBOT
scenic sable
#

Could you provide a request id, and what do you expect vs. what do you see instead?

lethal raven
#

but i would like to have parameters like:

#

amount > 0

#

product_id = [xx, yy, zz]

slate steppeBOT
scenic sable
#

I think you can only filter amount by Listing PaymentIntent, but then you will have to find all corresponding Invoices

lethal raven
#

so i should:

  • list all the payment intents which correspond to my product with amount > 0
  • extract for each pi object the invoice item
  • retrieve all the invoices items
lucid abyss
#

Hi! I'm taking over this thread.

#

Yes that should work. Note that "extract for each pi object the invoice item" can be done directly using expand. You can learn more about expand here: https://stripe.com/docs/expand

lethal raven
#

should i use a different method?

#

it seems to accept only the customer one

lucid abyss
#

You are correct, I don't see an amount filter on the PaymentIntent... having a look.

#

Yeah it looks like you'll have to do the filtering on your end unfortunately.

lethal raven
#

this does not solve my problem - because my frontend goes into a timeout error

#

i am currently on a PHP environment, using "stripe/stripe-php": "^7.5",

lucid abyss
lethal raven
#

where do i check for breaking chances, if any?

#

just to be sure before upgrading

lucid abyss
#

In the changelog I just shared above.

lethal raven
#

ok it seems to not be present, thanks for the help

lucid abyss
#

"it seems to not be present" what do you mean by this?

lethal raven
#

sorry - no breaking changes are listed between 7.5 and 7.12 version

#

so i'm trying to upgrade the library version in order to use the search method