#ebellotpu6_api
1 messages ยท Page 1 of 1 (latest)
๐ 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/1272557386262908989
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐ there isn't a link to retry payments for Payment Intents. Your server creates and confirms your Payment Intents, so if you need to retry a payment for those you need to build code to collect new payment method details from your customer (if necessary for your flow) and then attempt to confirm the intent again.
and it's possible to create a link from code?
No, we don't offer prebuilt UIs for trying a payment for a Payment Intent. You would need to build a page for that and direct your customers to it.
I need to send a link by email so the customer can pay the bail. Can I create something like this?
https://invoice.stripe.com/i/acct_1M96IMJjXBonDcGm/test_YWNjdF8xTTk2SU1KalhCb25EY0dtLF9RZUYwUmxvTHU4TjE0Mm50TWxRSlVnWE5sNW5ZajZpLDExNDAxMjg0NA0200hSzRep1C?s=db
Not for a Payment Intent.
If you create an Invoice for the first payment, then yes you can send a link to the Hosted Invoice Page.
Yes, if you create an Invoice rather than a Payment Link, then those will generate a link to our Hosted Invoice Page for that Invoice.
do you have the docuemntation to create an invoice from payment intent?
You can't create an Invoice from a Payment Intent. You'd create an Invoice instead of creating a Payment Intent. The Invoice will then automatically generate it's own intent.
https://docs.stripe.com/invoicing/integration
I have to create product to do that?
๐ stepping in here as toby needs to step away
Yes, Invoices require Products/Prices.
You create Invoice Items: https://docs.stripe.com/api/invoiceitems/create -- you can pass price_data inline (https://docs.stripe.com/api/invoiceitems/create#create_invoiceitem-price_data) but you do need a Product ahead of time.
Not sure what you mean by that
When you finalize an Invoice there will be a hosted URL provided: https://docs.stripe.com/api/invoices/object#invoice_object-hosted_invoice_url
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Checkout Sessions expire after 24 hours
You would use a Payment Link instead if you want to send a URL via email but not use an Invoice
yes, this is posible?
Yeah see: https://docs.stripe.com/payment-links
but this can be done using api?