#x-LegacyCheckout
1 messages ยท Page 1 of 1 (latest)
oo
Hello, checkout.js is a legacy flow. Could you elaborate on why wouldn't you just use the newer Checkout Product?
because its too hard for me to code
i dont know alot ๐
im fine with this old layout i will just change whole theme of my modern website
The newer Checkout should be easier and have a lot more support (= less headache) Could you tell what do you want to achieve?
i want a pop up like the stripejs but just with the modern look you know and a custom amount field
what popup are we talking about?
you know how using checkout.stripe.com
it has a modal pop up
i want that with the new modern stripe look
i couldnt find anything on github
๐
?
@drowsy knot this is it but its gonna be hard changing html
why getpublickey function
if its already defined in the js
Let me take some time looking at it. (will be back)
oki
ping me when you are back im gonna be trying myself
also how would i add
custom customer email input
Okie so the Github repo above, and the legacy guide: https://stripe.com/docs/legacy-checkout/flask is all we have
In the step "Templates" I see you can define CSS rules to control the look and feel. I think the Github repo does the same
then in the script block I see data-amount which let me to think that it wouldn't be able to add an amount field yourself
oh
Normally Checkout doesn't provide that level of flexibility. If you want to have control over fields, you would normally want Elements/PaymentElements
uhoh
i will just keep ๐ the
old layout
um i like it anyway ๐ญ
i will try yours
im using this as a donation method for my custom portfolio is there something that i can add to my stripe application so they dont say its risky
i tried a while ago and it was deemed risky after i donated to myself to test out the page
๐ญ
also @drowsy knot when i use checkout.stripe.com/checkout.js thats all i need for the payment it does the rest for me like i just put the secret key and thats it?
no backend just that
You still need backend. Like the guide above states
Either new Checkout of this legacy flow, you still need backend. That's why new Checkout is better
ig i use new checkout
with the custom checkout page
like a non coder ๐ญ
i just want a modal
The newer Checkout is only one API call to create the Session, and one redirection to its URL
i saw that one
Even easier, there is PaymentLink that doesn't require backend, but you will need to do some manual work from Dashboard
what kind of work from dashboard
Taking the link from Dashboard. But it will be redirection anyway. Is your problem that you want a modal?
if im using stripe for a portfolio to accept donations what category would my business be
or industry i would put donations but thats risky i dont wanna not get approved
hey they accepted it
@drowsy knot pci client is stripe.js right?
stripe.js is pci compliant, if that's what you are asking ๐
im trying to test this integration stuff
yeah im scared if i put wrong thing they will not let me use it
now my account is actinve
what to do ๐ค
setup the custom payment
@drowsy knot the thing like using checkout.stripe.com/checkout.js
the backend part is
payment intent api i found that on stripe github repo
so i just have to implement that somehow and i can accept donations
im on stripe dev yt page ๐ญ idk whats going on
shouldve gotten my degree in cs ๐
Do you really want to go for the Legacy Checkout integration path? It has way less example/support at this moment. For easier get it working I would recommend with the new checkout flow
It would be way easier for you
i dont but
i just want it on my url idk i just dont want it on stripe.com ๐
it looks clean when you have stripe integrated
i just want it on my url idk i just dont want it on stripe.com
That would comes down to PaymentElement integration. But because it's not prebuilt by Stripe anymore, it would requires more work
oh
im watching the
Accept a payment - Create a PaymentIntent with Node.js
its so many files
ok so if i just setup the server side
the payment intent
@drowsy knot i have made my choice
i want to use the legacy api
now i have the back end and frontend done
how to i implement backend in frontend
Okie, so the legacy master guide is here https://stripe.com/docs/legacy-checkout (sorry for the flask link above, this one is better)
ok
ok thanks* will learn
@drowsy knot it says test mode
im using live keys though?
oh nvm
it auto filled test key from example
oh ok so how would i do backend
@drowsy knot this is worse you got any good docs for custom payment elements
You mean normal Payment Elements, not Legacy Checkout?
yes
i have it down
but i want to know how to create a charge
not a payment intent
i think i need to create a token
and then a charge?
@drowsy knot a payment intent is just a hold not a charge right?
this is hard
its just using payment intent on youtube
i want to charge ๐ญ
PaymentIntent is newer API and recommended. You wouldn't want to go over charge/token which is legacy stuff
PaymentIntent contain a Charge object inside.