#camposricardo86-variable-amount

1 messages · Page 1 of 1 (latest)

dire niche
#

@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

sonic light
dire niche
#

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

sonic light
#

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.

dire niche
#

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

sonic light
#

understand, gimme some credit although I don's write code. see what i've achived

dire niche
#

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

sonic light
dire niche
#

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

sonic light
#

@dire niche u're right, I'll look for some tuts on 'forms to PHP'

#

Thanks @dire niche. staya happy 🙂

dire niche
#

Same, good luck and please ask if you're stuck we can likely help!