#meiri-paymentlinks

1 messages ยท Page 1 of 1 (latest)

wise summitBOT
#

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

nova knollBOT
arctic warren
#

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)?

hazy phoenix
#

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

arctic warren
#

Which specific webhook event are you listening for?

hazy phoenix
#

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)

arctic warren
hazy phoenix
#

custom_text.submit may work for showing the order number before we submit. Thanks.

arctic warren
#

๐Ÿ‘

nova knollBOT
#

meiri-paymentlinks

hazy phoenix
#

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

arctic warren
#

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?

hazy phoenix
#

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 ๐Ÿ™‚

arctic warren
#

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

hazy phoenix
#

ah

#

that is not the thing then

#

you are right that there is a new invoice # for every cart

arctic warren
#

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

hazy phoenix
#

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?

arctic warren
#

What do you mean by an API only way?

hazy phoenix
#

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

arctic warren
#

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

hazy phoenix
#

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

arctic warren
#

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

hazy phoenix
#

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.

arctic warren
#

๐Ÿ‘

hazy phoenix
#

thank you for all the good advice