Hello all,
I need some help.
I am a student PHP developer, trying to help my sister with her website, but am a little out of my depth.
My sister is a community fitness instructor running her own self-employed classes.
She wants people to 'bulk buy' her classes (and get a discount) via her website.
I have successfully created a buy now button, added it to her website, and can redirect the buyer back to a success page on her website.
However, she wants to populate this success page, with the order info, to do so, I need to pull the data back out of the database and need the purchase order number to identify the record. I therefore need Paypal to give the success page the purchase order number.
The way that I think to do this is to somehow, send a purchase order number that my database creates to paypal when the buyer clicks on the button. Paypal then processes the payment, upon successful completion, the buyer gets redirected back to the website, sending with it the purchase order number.
I can take it from there.
Q1) Is this the best way to handle this situation?
Q2) Using PHP how do I send a purchase invoice number to paypal?
Q3) How do I get Paypal to send the invoice number back?
What I am asking for is example code. I HAVE NO IDEA HOW TO DO THIS IN CODE.
Thanks
x