#fatkat_code

1 messages ¡ Page 1 of 1 (latest)

sacred oasisBOT
#

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

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

tulip pasture
#

I use bricks builder that has a code element that I'm thinking maybe I take the stripe code and input it with my API keys?

uncut sedge
tulip pasture
#

Or if it's possible with webhooks

uncut sedge
tulip pasture
#

Payment links via the dashboard? I tried to set it to capture later but couldn't find the setting

uncut sedge
#

Payment Links are a no code offering where you have a static URL that creates checkout sessions when a user clicks on them. This will still take a bit of coding on your side as it looks like the capture method can only be set via and API call but after you've created the link you can just use it like a normal link

#

Yeah only available via the API for some reason 🤷

tulip pasture
#

Hmm sorry how would I create the link and then change the API call?

#

This would be perfect though

#

I just have only created a payment link via the UI and not through the API

uncut sedge
#

There are a few ways to do it. We have official libraries that are build to make this kind of API request and we also have a command line tool. You mentioned that you have some coding experience, are there any languages you already know how to install and utilize a "library" or "module" or "package" in?

tulip pasture
#

I'm familiar with python a little. But where would I install these libraries?

#

Specifically it'll be used on a website

#

Or is it possible to create it on the stripe cli?

uncut sedge
#

For this you could just install it on your local machine and run it with your local python setup. The end result is a https://buy.stripe.com URL that can be used anywhere. So the webserver doesn't need to run any Stripe code, you just need to run something once to create a link with this specific parameter

tulip pasture
#

Is stripe cli free? So basically I just create the url once? Will this payment link show up on my dashboard after it's created?

uncut sedge
#

Yes to all three

#

and that page I linked to actually runs the Stripe CLI in the browser

tulip pasture
#

Okay let me mess around while reading the docs and see if I can make this link

#

Thanks for all the help so far!

#

Okay really stupid question.. on stripe cli how do I enter below?
Like I'm doing

stripe payment_links create \

But I can't enter below it to input the rest. Do I need to paste the full command?

#

This API explorer is very nice.
So I tested making a link. It worked, but now looking for the line of code to input to set manual capture

uncut sedge
#

There is a payment_method_data row in the API explorer for that call. If you click on it, it should take you to somewhere where you can set capture_method to manual

tulip pasture
#

Sorry just found that in the API explorer

#

Running test mode and this seems to be working

#

Wow this is nice haha such a simple solution for something I've been searching for weeks for lmao

#

Now I need to lock the payment methods to cards etc

#

Found it all. Just so you don't spend time searching for it for me

uncut sedge
#

Nice, glad we could find a solid solution for you here!

tulip pasture
#

Haha yeah this amazing. You have no idea how long I looked for a plugin solution

#

Is there anyway to remove the

save my information for 1-click checkout with link

uncut sedge
#

Yes, finding where that setting is again

tulip pasture
#

Also, side question. When people accept the terms - where does it log that?

#

Oh I see on stripe dashboard in transactions, the first 200 OK shows terms of service accepted

#

Wish there was a way to change the book/buy button to Deposit or Authorize Hold

sacred oasisBOT
uncut sedge
tulip pasture
uncut sedge
#

I think you can change the buy button verb from the payment link's settings in your dashboard

tulip pasture
#

On dashboard it is greyed out for edit because it was created from the API

uncut sedge