#priyan-murugan_code
1 messages ยท Page 1 of 1 (latest)
๐ 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/1314702659369828474
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- priyan-murugan_api, 4 hours ago, 23 messages
Hi Pompey
Hello hello, apologies the server is a bit busy, just getting to your question
We don't have a built in way to do this, I think you may have to manually append it as a URL param the way you are doing with the other ones. Because you will have the client secret at that point, you can try trimming that string after the second _ and that will give you just the intent ID, or you can just pass both the ID and secret to your client, even if it is a bit redundant.
especially I need to paymentmethod id
it will be there in elements?
what I need to mention in return url
because by default redirect_status will be added into return url
similarly what are all the parameters added default
Oh the payment method ID, unfortunately I don't think it is possible to put that in the return URL because it isn't created until after the confirm. You would need to retrieve the relevant intent or list the customer's payment methods on your backend to get that.
I am not immediately sure if we add that automatically and the server is a bit too busy to test. Can you confirm an intent now and see if that is one of the URL params that we automatically add?
ok I will check it
I got setup_intent
but I'm not able to retreive those intent details
Unrecognized request URL (GET: /v1/setup_intents/). If you are trying to list objects, remove the trailing slash. If you are trying to retrieve an object, make sure you passed a valid (non-empty) identifier in your code. Please see https://stripe.com/docs or we can help at https://support.stripe.com/.
var service = new SetupIntentService();
service.Get("seti_1Mm8s8LkdIwHu7ix0OXBfTRG");
this is my code
Thank you, apologies just getting back to this. Looking in to why you got that error now
What version of the .NET SDK are you using?
.net 8, stripe 47
That does look like what the retrieve call should look like in .NET. It looks like that is the result that you would typically get if you called Get while passing no parameters. Is it possible that you got that error when an older version of the code was run? If you save again and run does it still get the same result?
I'm initializing the service object
then only I can call the methdo
StripeConfiguration.ApiKey = "sk_test_51NOmSPAnNCVtLnlxJ7nuLG33LkgM8BVHCU2ihC7e9tPRR4It3Lv3nZ5F4sZeiI5owrjVCe9CaRHjOUZyGumKVTuO00dLjSzPY2";
var options = new CustomerPaymentMethodListOptions { Limit = 3 };
var service = new CustomerPaymentMethodService();
StripeList<PaymentMethod> paymentMethods = service.List(
"cus_9s6XKzkNRiz8i3",
options);
It looks like that should be a valid service name in that SDK version. If you try to compile and run does that also give an error? Sometimes the IDE can be mistaken momentarily
ok i try to rebuild
The type or namespace name 'CustomerPaymentMethodListOptions' could not be found (are you missing a using directive or an assembly reference?)
The same code for all of these works in my local .NET setup. Is anything from the Stripe library found when you compile?
It may be worth trying to remove and re-add the package
47.1.0
And I only need to import with using Stripe to be able to access all of these classes
mine is 47 now I updated to 47.1 now its resolved
Interesting. Not sure why that would be but I am glad that you could resolve it!
Any further questions at the moment? I can help for a bit but have to step away soon.
no probelm pompey thanks for your help I really appreciate it. You can close the ticket. Happy weekend ๐