#siddarth_api

1 messages ¡ Page 1 of 1 (latest)

supple oakBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1338805719683694645

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

mental stream
#

To return more than 10 records per response

upbeat gull
#

I mean, I am using this below code var setupIntentService = new SetupIntentService();

var setupIntentResult = setupIntentService.List()?.FirstOrDefault(si =>
si.PaymentMethodId == "pm_tokenvalue") what if my setupintentservice is not returned in the list. even though it is created. Basically I want to get the SetupIntentService() based on the PaymentMethodId

mental stream
#

What's the pm_xxx ID?

#

If that API doesn't return a Setup Intent then that would imply the Payment Method wasn't generated via a Setup Intent

upbeat gull
#

I have generated pm_xxx and i have more than 100 users and created pm for all these users which is recurring. Now I am checking if this is available or not

mental stream
#

OK, so can you share an example pm_xxx that you're using in that API call that doesn't return a Setup Intent like you expect? I need an example

upbeat gull
#

pm_1Qqyc1AGbPj5wN7hCa6KYjQb

supple oakBOT
mental stream
#

So seems expected that the API call would return zero results

upbeat gull
#

pm_1QRp0VAGbPj5wN7hatSDilZs

mental stream
upbeat gull
#

My requirement is I want to get the SetupIntentService() based on the PaymentMethodId, how can I achieve this

fiery musk
#

You mean you want to fetch a SetupIntent object based on the associated PaymentMethod object?

upbeat gull
#

Yes correct