#fr3nchl04f_api

1 messages ¡ Page 1 of 1 (latest)

balmy gustBOT
#

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

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

torpid oar
#

hello!

Is it possible to link a product and price to the payment intent?
no, Products / Prices don't work with PaymentIntents. PaymentIntents just take an amount

you can use the Invoices workaround for this but I wouldn't recommend it always.

Overall suggest tracking the Price/Product purchased on your own end in a database or in the PaymentIntent metadata, there's no automatic tracking

#

another alternative is to use Stripe Checkout. That does work with Products/Prices

#

however, the invoice never seems to get the items attached and we can't find documentation about how to do this using the Node SDK.
this is possible but again is a different workaround so not my recommendation

onyx skiff
#

Right on, so for handling purchases in app with payment intents (which is a great API, btw), we just need to track our own analytics there outside of Stripe.

#

That's good enough for me to stop beating my head against the wall with this! Thanks!

torpid oar
#

yep that's what I'd recommend, it is slightly more work but gives you more flexibility in how you track etc

onyx skiff
#

100% I appreciate the prompt response!

torpid oar
#

glad to help, here if you have more questions!

#

i'm assuming you're building a mobile app? (in app purchases you said)