#meiri-paymentlinks
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. Thank you for your patience!
โฑ๏ธ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime! If this thread is closed and you have another question you'll need to start a new thread.
๐ 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/1212839555384999957
๐ Have more to share? You can add more detail below, including code, screenshots, videos, etc.
When you create a Payment Link you can set metadata that will copied over to the Checkout Session or you can set payment_intent_data.metadata to set metadata that will be set on the underlying Payment Intent - does that fit what you need, or do you need the ability to set this at a later point ( after the Payment Link is created)?
I can set it at the time the link is genereated from the API, so that should work. does either of those 2 options come back in the webhook?
is there a way to display the value on teh cart page
Which specific webhook event are you listening for?
checkout.session.completed
I can listen for a different one if that is better, I just need to know when the payment was successfully made od for which order
(the order number bing the data that I need to add to the link)
(https://docs.stripe.com/api/payment_links/payment_links/create#create_payment_link-metadata) to the Checkout Session and show up in the checkout.session.completed event.
If you want to show custom text on the Payment Link page you have a couple of different options. You can see if one of the custom_text options (see https://docs.stripe.com/api/payment_links/payment_links/create#create_payment_link-custom_text) fits what you need, or you can configure a customer message on a hosted confirmation page after paymetn is complete (https://docs.stripe.com/api/payment_links/payment_links/create#create_payment_link-after_completion-hosted_confirmation-custom_message)
custom_text.submit may work for showing the order number before we submit. Thanks.
๐
meiri-paymentlinks
is there a way to dynamicaly set what products are in the cart for a specific link? ex: if I want to have a cart that has 1 item and the next person needs 2 different items
or do I need to premake all permutations
What you're describing sounds more like a Checkout Sessions flow instead of Payment Links - checkout sessions are perfect if you want to dynamically create a checkout session w/ specific line items and metadata to be paid once
Is there a reason you're using Payment Links and not Checkout Sessions?
I do not have a site associated with the checkout and it is accessed via emailed link
I am open to suggestions on the best method
you are the expert ๐
The problem with your flow right now is that you seem to need a different invoice number for every payment so that means you'll have a TON of payment links.
Payment Links are better for when you have a single configuration and want it to be paid multiple times w/ no changes
ah
that is not the thing then
you are right that there is a new invoice # for every cart
You're welcome to keep using Payment Links if they're working for you, but if you get a chance I'd highly recommend taking a look at https://docs.stripe.com/checkout/quickstart (for Checkout) or even looking at (https://docs.stripe.com/invoicing/integration) for one-off invoices
Invoices may be a good option for you too - you can create an Invoice to have it automatically email your customer and then can click a link to be directed to a hosted invoice page to complete payment
I have not implemented anythign yet, so I would rather do it right from the begining
I need to manage the payments in my system so I am not sure if invoices will allow me to do that (and they cost more)
is there an API only way to use the hosted checkout?
What do you mean by an API only way?
I have a platform that needs to be able to create the cart using an API that will then allow me to share a link to the cart by email in my system and when they have completed, receive a webhook with the result.
without hosting anything on my system
The issue with that is Checkout links will expire after 24 hours - you need to have some intermediary site that you host that your customers can click on from the email which will then dynamically create the Checkout Session as soon as they need it
that adds much complexity for my infrastructure. I dont even have the ability to host a thank you page at this stage.
maybe I will start with payment links and try to get more elegant as I have more resources
I do think Invoices may be a good option for you - I'm not sure specifically what you mean by "manage payments in your system" but if you have the chance definitely check them out
I have to track the orders that have been paid or are outstanding
I have the ability to remind for unpaid orders built in
I will take a look and see if it would be better for how I am trying to work.
๐
thank you for all the good advice