#abdus-samad_api

1 messages ¡ Page 1 of 1 (latest)

raven plazaBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1300885395340529757

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

main prism
tawdry wadi
#

latest charge is coming back as null for me

main prism
#

That means that Payment Intent doesn't have a Charge. What's its status?

tawdry wadi
#

So this is created after the actual payment is done, like after for example credit card gets charged?

main prism
#

Yes.

tawdry wadi
#

this is status "status": "requires_payment_method",

main prism
#

That means the Payment Intent needs a Payment Method in order to move forward. You said you were trying to create a Refund... what are you trying to refund exactly?

tawdry wadi
#

So i did the payment

#

So i will get the latest charge as part of stripe-webhook call back?

main prism
#

If you set up a Webhook Endpoint to listen for payment_intent.succeeded Events, yes.

tawdry wadi
#

is this the only way of getting the latest_charge value, via callback?

#

My worry is if my application misses the call back i will loose it

#

any other way to get it?

#

Does it not come when i make this call

#

PaymentIntent paymentIntent = PaymentIntent.create(params);

main prism
#

You can retrieve the Payment Intent from the API anytime after it succeeds and get it that way.