#evanS

1 messages ยท Page 1 of 1 (latest)

fossil vaultBOT
normal gulch
#

Hi ๐Ÿ‘‹

So you need the Charge ID. What data do you have?

brazen root
#

Hey snufkin! Appreciate any and all help. I lost the senior who started this and I'm a junioir doing their first integration.

I currently have it set up so that if I statically pass the payment intent I can refund as seen in the image.

I'm sorry if this is not appropriate, just curious what call I would make, or what object I should send a get request to in order to get the payment intent/ charge id in order to make the api call to refund.

normal gulch
#

Sorry so you just want to see the signature for the API call to generate a refund based on a Payment Intent ID?

#

What happens when you run that code?

brazen root
#

It refunded the subscription.

Trying to figure out what call I would make and if I should be lookign for the chargeId or using the paymentIntent as I did.

I want to implement a dynamic approach, I just don't know what signature to hit in order to get that Id (paymentId or chargeId if that would be better).

normal gulch
#

EIther one works just fine

brazen root
#

How best would I capture/ get the payment intent. I was originally trying to capture it during the creation of the subscription, but all I get is a null value.

sorry if I'm wasting your time, I do appreciate your help though for what its worth.

normal gulch
#

So when the subscription gets created how are you confirming the first invoice?

brazen root
#

As of now, I'm just reviewing my break points and capturing what data I can in order to put in my DB as I make the calls. Then reviewing via the stripe dashboard.

normal gulch
#

Okay so the Subscription will have a latest invoice property and that Invoice will have a Payment Intent property

brazen root
#

Thanks. I'll poke around and see where I can get. Appreciate you pointing me down a path. Hope you have a great day/ evening!

normal gulch
brazen root
#

Perfect, thank you!!

normal gulch
#

Happy to shed what ๐Ÿ’ก I can ๐Ÿ™‚