#vanguard_webhooks

1 messages ¡ Page 1 of 1 (latest)

visual adderBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1252835294311481377

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

jagged shoalBOT
orchid frost
#

I am afraid you can't. The PaymentIntent object only contain the the amount

lusty bough
orchid frost
#

Yes but how did you create the PaymentIntent? When you create it you only specify the amount parameter, correct?

#

You can inlcude your product details on metadata for example

#

it will come back in webhook event

lusty bough
#

I added metadata but I couldn't find it in the json received

orchid frost
#

What do you mean? You don't create a PaymentIntent but you received payment_intent.succeeded webhook event?

lusty bough
#

Do I have to use another one then? invoice payment succeed?

lusty bough
orchid frost
#

Can you share the event Id here?

#

evt_xxx

#

Do you use Checkout?

lusty bough
lusty bough
orchid frost
#

Oh is that PaymentLink? How do you create that PaymentLink?

#

Okie so please listen to checkout.session.completed event instead. Inside there you will find a payment_link field

#

Use Retrieve PaymentLink API and look at its line_items.data.price.product

lusty bough
orchid frost
#

Yes, please refer my answer above

lusty bough
orchid frost
#

It's from the Payment Link I think