#camposricardo86-variable-amount
1 messages · Page 1 of 1 (latest)
@sonic light hello! I don't know of a specific guide here that does this. You mostly build this yourself by asking the amount first and once they are done you create the PaymentIntent server-side and then confirm it client-side with PaymentIntent
thanks koopajah 4 reply. could u b more specific? Ii know:
- get amount in form with input integer,
- get that amount in paymentinitent (this I don't know how)
I can't really be super specific. A lot of this is up to your own integration. The way you send the amount to your server is the same way you would implement any kind of data collection in your own code.
Like how do you collect an email or a password today?
you usually do a form or you do an ajax/fetch call to submit it to your server
thanks again@dire niche I'm not a dev, I'd just follow YT vids and docs. I do know I'm using PHP with elements for my project.
All good, everyone has to start somewhere! Have you never written code before? Because if not, you likely want to hire a professional if you're accepting payments, otherwise you're putting your customer's data at risk
totally that's what I am saying, it's totally fine if you are willing to learn, but when you accept payments you should be really careful too. A bad integration can look to the termination of your business for example and fines from card networks
I guess what Im lookinig for is this https://youtu.be/FOLRATK4pVA?t=376
But overall, you first need to familiarize yourself with the concept of either submitting a form from your browser to your PHP code or how to make an AJAX POST request. We won't really have tutorials for you to learn the basics like that, but there are many online. You want to write a form that collects an amount and sends it to your PHP code for the PHP code to parse
sure that works
@dire niche u're right, I'll look for some tuts on 'forms to PHP'
Thanks @dire niche. staya happy 🙂
Same, good luck and please ask if you're stuck we can likely help!