#cristoffer_best-practices

1 messages ยท Page 1 of 1 (latest)

steel valeBOT
calm reefBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

steel valeBOT
#

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

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

next scaffold
#

๐Ÿ‘‹ happy to help

#

there are several ways to go about this

#

I'm going to name a few

#

the easiest: use the metadata on the PI to store the price IDs

#

2- store the order details on your db and either store the PI ID on your end or store the OrderID on the PI's metadata

#

3- Use Checkout Sessions instead of a custom flow

#

4- use Invoices

agile ledge
#

I think i'll use metadata, cause dont know your all features yet. I have just started using stripe and trying to integrate it with my app

#

I know for sure that i want to have products data assigned to payment and also i'll store this data on my db somehow

#

btw are you from poland? i have a question which would be easier to ask for me in this language?

next scaffold
#

unfortunately we only offer support in english on this channel

#

if you prefer to get help in your native language please contact https://support.stripe.com/?contact=true

agile ledge
#

ah oke

#

i have tried to set receipt email and nothing really happened after successful payment in test mode. Is this normal or should i get an email on provided email address?

next scaffold
#

the only way to receive receipt emails in test mode is setting up the customer's email with the same email of your Stripe Account

agile ledge
#

that's why

#

so last question is, is there a way to make something on my backend after successfull payment. Right now i just send client_secret (and at this point this payment is not done) to frontend and i would like to avoid making a post request from front after successful payment.

next scaffold
agile ledge
#

so the full process would be:

  1. Create payment intent on backend when user enters payment page
  2. Attach products data, address data etc. to payment intent
  3. User pays
  4. Backend receives notification(?) from stripe that some payment was done with it's data
#

Oke i see that will be good for that

#

Thank you very much for your time