#k3davis

1 messages · Page 1 of 1 (latest)

timid ploverBOT
prisma snow
#

I'm not sure what you mean by "the chain is broken" here

celest elk
#

i only have a payment intent ID, but I can't get the payment intent itself (to obtain the charge id) without the client secret, which is already disposed of by this point.

#

on the other end, I can't get the charge id from the client to save that instead of the payment intent id

#

does that make sense?

prisma snow
#

You can absolutely get the Payment Intent if you have the Payment Intent id (pi_)

celest elk
#

sweet, I must be overlooking how to do so

prisma snow
#

The client_secret is only required if you are accessing it with the Publishable Key (i.e. on the client side using Stripe.js)

#

Otherwise this should work just fine

var service = new PaymentIntentService();
service.Get("pi_id");
celest elk
#

OK! I was trying to fill in the "get options" which only offers client_secret as an option, i guess i was getting the first param wrong. sorry about that