#1benw_best-practices

1 messages ยท Page 1 of 1 (latest)

viscid smeltBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

lilac pebble
#

hi there!

#

which product are you using to accept payments? Checkout Session, Payment Element, something else?

viscid smeltBOT
celest berry
#

Yes, those workflows. I'm using stripe products (product catalogue) and using payment links. I was just wondering if there is a way to get if a product of a certain ID was purchased and trigger workflow steps that way

abstract iron
#

๐Ÿ‘‹ Hi there! I'm taking over for my colleague. Let me take a look

#

I don't think it's currently possible to get the product ID when a Payment Link is bought

#

But I believe if you added some metadata to your Payment Link, it could be possible to retrieve that, and perform some actions based on that

celest berry
#

Thanks for replying. Yeah I thought that might be the easiest, seems odd though that isn't possible though

abstract iron
#

Yeah, Workflows are still in preview and there are definitely some things that aren't yet possible

#

By adding Metadata to a Payment Link (e.g. something like product_id: 1234), I was able to get this Workflow to trigger

#

So there is at least a possible workaround here