xa0s
Banned
Registered: 4th Mar 08
Location: Dartford, Kent Car: Turbo'd Fabia vRS
User status: Offline
|
I've never done this before but basically I need to offer a subscription package on my website. They need to be able to click 'Buy Subscription' which directs them to the PayPal site with a fixed price and subscription duration. They pay and it should re-direct them back to my site and once it's confirmed it should they update their entry in the database.
It sounds simple, and should be, but I'm really struggling. I can do all the stuff except the integration with PayPal or Google Checkout. The instructions seem quite difficult to read and I really can't make any sense of it.
For example, there's like 10 different button choices for PayPal and none of the instructions explain what to do regarding confirming a order and then doing a action.
To be honest, I'd probably prefer it if they could buy a subscription and then it would give them a code so they can use it or give it to a friend. When entering the code into my website it would need to check whether it's valid and then do the action.
Has anyone got any idea on how I could do this? If it's a lot of work I could possibly pay someone to help me add this to my site.
|
ed
Member
Registered: 10th Sep 03
User status: Offline
|
Have a read of the Paypal API instructions, last I read it seemed pretty simple and could be implemented using a touch of PHP and Javascript. I'm sure Google Checkout is the same and has a good API
|
Ian
Site Administrator
Registered: 28th Aug 99
Location: Liverpool
User status: Offline
|
Depending on how the transaction is confirmed, you may also be able to have them send you an email which you can direct to a dedicated box which your PHP can check.
|
xa0s
Banned
Registered: 4th Mar 08
Location: Dartford, Kent Car: Turbo'd Fabia vRS
User status: Offline
|
It's gotta be easier than that, I've seen tons of websites do you. You just click 'Buy Now', pay, it directs you back and your account is instantly upgraded. I just can't seem to make sense of the instructions on PayPal's site, there's like 10 different options to choose from and none sound like that I need. It's proper confusing.
|
Sam
Moderator Premium Member
Registered: 24th Dec 99
Location: West Midlands
User status: Offline
|
This help?
PayPal Button Generator
|
xa0s
Banned
Registered: 4th Mar 08
Location: Dartford, Kent Car: Turbo'd Fabia vRS
User status: Offline
|
quote: Originally posted by Sam
This help?
PayPal Button Generator
Nope, that's just standard really.
Right now they pay and it takes them to a page saying thank-you, but how does my website tell that they've paid successfully so I can do the SQL changes? I can't find out anywhere, seriously annoying me.
|
ed
Member
Registered: 10th Sep 03
User status: Offline
|
The Paypal API will return a GET or a POST telling you the status of the query. I forget which one, but it does say in the instructions.
|
ed
Member
Registered: 10th Sep 03
User status: Offline
|
There's even a wizard on there if you care to look:
https://www.paypal-labs.com/integrationwizard/ecpaypal/main.php
Also try:
http://www.x.com/
|