#charan_code

1 messages ¡ Page 1 of 1 (latest)

somber juncoBOT
#

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

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

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.

tribal sparrow
#

hi there!

#

I'm not sure I understand the question. can you re-explain?

main rivet
#

yes sure,
iam trying to generate invoice with invoice hosted url
for that i have created payment_inetent initially and then paid that amount and iam getting payment_intent.status is succcess but when i copay paste the generated hosted url it is showing me to pay again the amount which i have created in paymnet intent ?
why

tribal sparrow
#

for that i have created payment_inetent initially
I don't understand this part. if you are using Invoices, you shouldn't create a PaymentIntent

#

the correct flow:

  1. create the Invoice
  2. send the user to the hosted Invoice URL to pay
    and that's it.
main rivet
#

iam not creating the invoice first iam creating the invoice after payment which means invoice aftre paymnet
this is my flow
payment_intent creation-> paying amount -> generating url

#

did you got my flow?

tribal sparrow
#

if you create a PaymentIntent then you won't get an Invoice.

#

If you want an Invoice then you need to create an Invoice which will contain a PaymentIntent.

main rivet
#

yeah after creating payment intent iam paying amount through PaymentElement after that iam getting paymentintent.status as success then iam trying to generate invoice and just to store that invoice

tribal sparrow
#

if you want an Invoice, then that's the flow:

  • don't create a PaymentIntent
  • instead create an Invoice, which will contain a PaymentIntent
main rivet
#

okay thank you