#hungvt1303_docs

1 messages ยท Page 1 of 1 (latest)

soft latchBOT
#

๐Ÿ‘‹ 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.

austere spokeBOT
royal cave
#

Hi, let me help you with this.

reef atlas
#

Thank you.

royal cave
reef atlas
#

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.

royal cave
#

What's the error you're seeing?

reef atlas
#

When I add that code, I can't purchase order

#

I get these error

#

Line 171 looks like this

royal cave
#

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"]?

reef atlas
#

As I checked then it was called when purchase new order.

royal cave
#

What do you mean exactly?

reef atlas
#

Sorry, I was chat on wrong thread

#

So strange, I can make order now. It looks like session/cookie problem.

royal cave
#

So, is the issue resolved now?

reef atlas
#

I'm not sure. Need to check several times again.

#

Thanks for helping me.

royal cave
#

Let me know if you have any more questions

reef atlas
#

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

royal cave
#

I don't know how Opencart works, unfortunately. You have to reach out to them directly.

reef atlas
#

Because I dont see this part running

#

Oh I see.

royal cave
#

Sorry, I didn't realise you're using Opencart initially.