#hungvt1303_docs
1 messages ยท Page 1 of 1 (latest)
๐ 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/1218124585615097917
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, let me help you with this.
Thank you.
You can update the metadata of the PaymentIntent itself: https://docs.stripe.com/api/payment_intents/update#update_payment_intent-metadata
I tried it but looks like it wrong somewhere.
Because I face error after that
This is my code
I have to comment it out due to error
My idea is update metadata for paymentIntent after refund request is done and has no error.
But it looks like this function was called too soon.
What's the error you're seeing?
When I add that code, I can't purchase order
I get these error
Line 171 looks like this
Oh, it's because $data["payment_intent"] is probably just the PaymentIntent ID, not the full object.
Could you please print out the $data["payment_intent"]?
As I checked then it was called when purchase new order.
What do you mean exactly?
Sorry, I was chat on wrong thread
So strange, I can make order now. It looks like session/cookie problem.
So, is the issue resolved now?
Let me know if you have any more questions
Okay, sure.
The first order with that code looks good
One more thing, how can I check if webhooks is running ๐
Do I have to setup cronjob or something
I'm using Opencart 4
I don't know how Opencart works, unfortunately. You have to reach out to them directly.
Sorry, I didn't realise you're using Opencart initially.