#cdubs44
1 messages · Page 1 of 1 (latest)
Would it be metadata['State']~'" + state + "'" ?
Hi there you can try to use Substring match operator ~ https://stripe.com/docs/search#search-syntax
thought so. Thanks!
Would the ~ work on metadata though?
@dim edge It doesn't look like the ~ works for metadata
Did you try metadata['State']~UT ?
Query = "active:'true' AND metadata['Page']:'Gymshare Main Payment' AND metadata['State']~'" + state + "'"
wait one sec. forgot to reset my service
Yeah, even stripe is saying this
Stripe.StripeException: The operator ~ is not a supported search operator for field metadata in resource products. Try using one of the supported operators: :.
OK, so you can't use ~ in metadata field.
do you have any wildcards or anything?
https://stripe.com/docs/search#field-types,-substring-matching,-and-numeric-comparators looks like you can only use substring operator in string value
I'm afraid for metadata you can only use : operator.
hmmm maybe a feature to think about adding in a future release or something