Jump to content

credit users account after paypal payment?


crf1121359

Recommended Posts

Hi everyone,

 

I am trying to create a simple system where users can purchase credits on the site and make the payment via paypal and if the payment was successful then their account will be updated with the amount of credit they purchased!

 

Example: user buys 1 credit for $2 and makes the payment via payapl and once the payment has gone through successfully they will be redirected to the site and their balance will show 1 credit.

 

 

I cannot find a tutorial for this purpose!!

 

Can someone please point me to the right direction (a toturial or a piece of code taht does that) please ?

 

any help would be greately appreciated.

 

Thanks

Link to comment
Share on other sites

PayPal IPN, that is what you want. I'll be honest, it can be quite painful to set up.

 

I never had a tutorial when I did it myself, but I've since seen this which seems like something that would be able to help you, the guy creating the video is very good at tutorials.

 

Good luck! You're going to need it lol.

 

Denno

Link to comment
Share on other sites

Thanks mate but that didn't help at all. There are 1000s of tutorials like what he's done on the net but nothing like what I am looking for. the funny thing is that People like him say something in the begging of their videos and do something absolutely different!

 

anyway, Thanks for your help pal...

Link to comment
Share on other sites

The only way you can do this is with IPN as Denno said.

 

Might want to try:

http://www.micahcarr...n-with-php.html

And his lib

https://github.com/Q.../PHP-PayPal-IPN

 

and that is what I was looking for. the one that Denno posted is just showing how to test the IPN but the one you posted is very very close to what I want. Thank you so much for your help.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.