#Sadness-PaymentIntent

1 messages ยท Page 1 of 1 (latest)

soft stag
#

Hi there, are you retrieving the paymentIntent object from frontend of backend?

soft stag
#

Hi there, are you retrieving it from frontend?

marsh nexus
soft stag
#

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).

marsh nexus
#

but how can I retrieve it via payment intent client secret and publishable key?

soft stag
#

As the doc says, you can't retrieve the full object from frontend, you need to retrieve it from backend.

marsh nexus
#

i have client secret of payment intent

#

and publishable key

soft stag
#

Then you can't retrieve the full object I'm afraid.

marsh nexus
#

i only need id of this payment intent

soft stag
marsh nexus
#

i only have payment intent client secret

#

and publishable key

soft stag
#

You don't need to specify the paymentIntentID, you just need to pass in the clientSecret.

marsh nexus
#

sorry

#

i didn't read

#

but this is for stripe.js

#

how i can call it without stripe.js

#

like via postman

soft stag
marsh nexus
soft stag
#

In your production code, are you going to retrieve the paymentIntent from backend or frontend?

marsh nexus
#

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

soft stag
#

If that's case, i'll suggest you to start the frontend integration without using postman

marsh nexus
soft stag
#

I don't think you can make raw requests from frontend without integrating Stripe.js

marsh nexus
#

Not web one

soft stag
marsh nexus
#

so circle is closing

soft stag
#

Is your problem solved?

marsh nexus
soft stag
#

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.

marsh nexus
#

I know that sending id and client secret will be easier

#

But i like to compilcate my life

soft stag
#

The API that you shared is a frontend API which can only be called with Stripe.js integrated.

marsh nexus
#

So no one can do this what this method does?

#

in other languages

soft stag
marsh nexus
soft stag
#

I don't see an official client-side library that support C# language.

marsh nexus
#

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

soft stag
#

Using Stripe.js in a C# project? I'm afraid it's not possible.