#Sadness-PaymentIntent
1 messages ยท Page 1 of 1 (latest)
frontend
Hi there, are you retrieving it from frontend?
yes, from frontend
OK. the paymentIntent retrieved with publishable key (i.e., frontend integration) only contains a subset of properties. To retrieve the full object, you need to use a secret key (i.e., via backend integration).
yeah i know
but how can I retrieve it via payment intent client secret and publishable key?
I found this in stripe.js https://stripe.com/docs/js/payment_intents/retrieve_payment_intent
As the doc says, you can't retrieve the full object from frontend, you need to retrieve it from backend.
yep i only need id of payment intent ๐
i have client secret of payment intent
and publishable key
Then you can't retrieve the full object I'm afraid.
i don't need full object
i only need id of this payment intent
Ah, then you just need to call https://stripe.com/docs/js/payment_intents/retrieve_payment_intent, and it will return you the paymentIntent object including the ID.
but how to call it when i do not have payment intent id?
i only have payment intent client secret
and publishable key
You don't need to specify the paymentIntentID, you just need to pass in the clientSecret.
yeah
sorry
i didn't read
but this is for stripe.js
how i can call it without stripe.js
like via postman
https://www.postman.com/stripedev/workspace/stripe-developers/overview you can refer to this workspace
I will check it and let you know
I found this: https://www.postman.com/stripedev/workspace/stripe-developers/request/665823-7c6b06df-4946-40ad-bb69-b8fa9ca999ab but still don't know how to retrieve it only having client secret of payment intent and publishable key
In your production code, are you going to retrieve the paymentIntent from backend or frontend?
from frontend
I get client secret of created payment intent from backend and now i want to retrieve it from frontend
Basically id of payment intent i want to retrieve
If that's case, i'll suggest you to start the frontend integration without using postman
yeah but i make raw requests to stripe api without any SDK
I don't think you can make raw requests from frontend without integrating Stripe.js
my frontend is C# app ๐
Not web one
https://stripe.com/docs/libraries#community-libraries there's C# community library that you can consider to use
yeah i did something like this:
var service = new PaymentIntentService(Client);
return await service.GetAsync(string.Empty, new PaymentIntentGetOptions { ClientSecret = clientSecret });
``` but as i read intent id can not be empty
so circle is closing
Is your problem solved?
i don't think so ๐
OK. Anyway when you create a paymentIntent at backend, you will receive the full paymentIntent object from the the paymentIntent creation response. you can then pass the clientSecret alongside with the paymentIntentID to your frontend if this is what your application needs.
yeah i know, thank you for helping me but i still didn't recieved response for my question: How can i make thing like this: https://stripe.com/docs/js/payment_intents/retrieve_payment_intent but in stripe.NET, postman or curl?
I know that sending id and client secret will be easier
But i like to compilcate my life
The API that you shared is a frontend API which can only be called with Stripe.js integrated.
why?
So no one can do this what this method does?
in other languages
We do support other languages, please refer to this page https://stripe.com/docs/libraries#client-side-and-ui-libraries for the list of client-side libraries.
ok, but without this client-side libraries only with stripe.net is it possible?
I don't see an official client-side library that support C# language.
it should be possible because payment intent docs says that payment intent client secret is unique
It should be possible without SDK
Sorry to keep saying the same thing, but I just want to know if it's possible
Using Stripe.js in a C# project? I'm afraid it's not possible.