#evanS
1 messages ยท Page 1 of 1 (latest)
Hi ๐
So you need the Charge ID. What data do you have?
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.
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?
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).
EIther one works just fine
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.
So when the subscription gets created how are you confirming the first invoice?
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.
Okay so the Subscription will have a latest invoice property and that Invoice will have a Payment Intent property
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!
You too! I hope it all comes together. You can also review some of the code examples here for ideas of how to proceed: https://github.com/stripe-samples
Perfect, thank you!!
Happy to shed what ๐ก I can ๐