#Sato

1 messages · Page 1 of 1 (latest)

bronze solstice
#

Hi there, how can I help?

frank orchid
#

I'm trying to use paymentIntents.search({query: ......

#

I'm using around 15 filters

#

filter1 AND filter2 AND

#

So on

#

It says that I'm exceeded. How many filters can I use?

bronze solstice
frank orchid
#

I mean this is the request

bronze solstice
#

I need the request ID so that I can see what attributes stripe receives from your code.

#

Do you see a request ID from your Dashboard log?

frank orchid
#

It does not appear in the log dashboard

#

The last one was that appears is about 6 hours ago. I don't know why

bronze solstice
#

Hmm, can you copy and paste your code here?

frank orchid
#

const paymentIntent = await stripe.paymentIntents.search({
query: status:'requires_capture' AND metadata['order_id']:'${orderId}' AND metadata['total']:'${total}' AND metadata['tax']:'${tax}' AND metadata['shipping_price']:'${shipping}' AND metadata['amount']:'${priceInfoAmount}' AND metadata['currency']:'${currencyCode}' AND metadata['commerce_items_codes']:'${orderedCommerceItems}' AND metadata['number_of_items']:'${numberOfItems}' AND metadata['payment_method']:'${paymentMethod}' AND metadata['shipping_group_id']:'${shippingGroupsId}' AND metadata['city']:'${city}' AND metadata['postal_code']:'${postalCode}' AND metadata['address']:'${address1}' AND metadata['profile_id']:'${profileId}' AND metadata['email']:'${profileEmail}' ,
});

#

I'm using like 15 filters. So I'm exceeded. But I'd like to know how many I'm allow to use

bronze solstice
#

That's a lot of filters

#

What's the exact error message do you get?

frank orchid
#

"Error: Max filters exceeded. Got 15"

bronze solstice
#

The max number of filters is 10, is there a way to optimize your query with less filters?

frank orchid
#

I use a lot since I want the request to be pretty specific for security. I mean somebody could track the orders with simple metadata information.

#

Thanks for your support

#

(Y)

#

👍