So I'm running out of time on this project and I posted here in hopes that someone can help me.
Backstory There's a church retreat coming up and I'm in charge of making the website.
The Meaty Info On the site there's a simple registration form on the page that has some basic information (I have to add fields for Location, Phone Number, and Address. Ignoring that...) Screenshot of the page here. Ignore the error at the top and the PayPal button, I was trying to get it to work but I'm doing something wrong.
Now the retreat site does checks in PHP when you submit the form to see that you put real information for all the fields. Hitting the submit button will call the register.php page and do the checks, returning whether or not there were any errors.
The Problem I've never used an API but I have a good knowledge of PHP. As of now, what I wanted to happen was:
- The user inputs their information on the church retreat site. The retreat site would then check if the information was correct, and if it was it would redirect them to a PayPal page very similair to this.
- There, they'd enter billing information, then, after completing and processing the order all on PayPal's site, PayPal would redirect to my church registration page.
- My site would (somehow) receive from PayPal that the transaction was successful, and then add the user to a database of paid attendees.
The problems are setting up PayPal on my site how I outlined. Then, how would my site know whether or not a transfer was successful? Where would I find the files necessary to do the API commands?
I have no idea how to do that. It's boggling my mind and after reading documentation, I've just become more confused. I need someone's help on this so if anyone cares to help me: Thank You. I could really use a human answer as to the steps I need to take to get this done.