#hero_cli-override

1 messages · Page 1 of 1 (latest)

potent bobcatBOT
#

👋 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/1255641293212876931

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

sullen remnant
odd zenith
#

Oh wow, thanks for the fast answer! That’s exactly what I was looking for. I missed that part in the docs. Thank you.

sullen remnant
#

Sure thing! Happy to help

odd zenith
#

Just one more question related to the payment intent data that I receive. How do I know the product or price ID for that payment? I see that the amount is listed, but that's not really specific. I need to know the exact product the customer ordered for internal logic in the backend.

sullen remnant
#

There's no Price or Product on a Payment Intent. Are you referring to Payment Intents generated by Invoices?

odd zenith
#

Hmm, okay, maybe I'm misunderstanding something here. I'll try to explain my current setup. Maybe that will make it clearer.

#

On the website, customers have the option to order "Credits". If a customer wants to order, for example, 5 "Credits", a Stripe checkout session is created and the customer will be redirected to the Stripe-hosted checkout. After the payment is successful, the backend needs to receive that event and add the amount of credits to the customer's account.

The "Credits" are bundled into different products with varying prices depending on the amount, such as 1, 2, 5, 10, and so on.

That's why I need information about the exact product that was purchased by the customer.

sullen remnant
potent bobcatBOT
void jewel
#

hero_cli-override