1,105,225 Community Members

PayPal IPN Verification?

Member Avatar
mmcdonald
Posting Pro in Training
473 posts since Sep 2012
Reputation Points: 28 [?]
Q&As Helped to Solve: 32 [?]
Skill Endorsements: 12 [?]
 
0
 

Hi all,

I've setup a simple cart where users choose how much they would like to deposit as virtual currency using the PayPal sandbox - I've tested it and it works great. So far I've got to successful money transfers between accounts and notifications.

However what I can't figure out is how to give the account on my website the virtual credit after the user pays. I want to store the value in a SQL column next to their username; doing so is easy - but how do I execute that SQL command only when a user has genuinely paid?

To clarify, this is a script that allows users to deposit money to their website account using paypal - I've got as far as the transactions (sending and receiving the money) and notifications. What I'm stuck with is adding the transaction value to the users account on my website.

Can anyone with previous experience please assist?

Thanks!

LastMitch
Deleted Member
 
2
 

@mmcdonald

However what I can't figure out is how to give the account on my website the virtual credit after the user pays. I want to store the value in a SQL column next to their username; doing so is easy - but how do I execute that SQL command only when a user has genuinely paid?

Since you got your cart working. Have you google this before you came on Daniweb?

Read this and there is an instructions about it:

https://www.paypal.com/cgi-bin/webscr?cmd=p/acc/ipn-info-outside

Member Avatar
mmcdonald
Posting Pro in Training
473 posts since Sep 2012
Reputation Points: 28 [?]
Q&As Helped to Solve: 32 [?]
Skill Endorsements: 12 [?]
 
0
 

Since you got your cart working. Have you google this before you came on Daniweb?

Yes I has googled it - came up with a load of crap saturating the world wide web. That one page you have linked was not on the first 3 pages as I cleared them all. Also - the represenative from PayPal couldn't even provide me with that link.

Thanks for your help,
Mike

Member Avatar
mmcdonald
Posting Pro in Training
473 posts since Sep 2012
Reputation Points: 28 [?]
Q&As Helped to Solve: 32 [?]
Skill Endorsements: 12 [?]
 
0
 

Something I still cant get me head around.

Tom and Charlie are on my website.

Tom credits his account with $5.00.

Charlie credits his account with $20.00.

My listener gets 2 responses, one with the value of 5$ and one with the value of 20$.

How does my script know to give the user called 'Tom' $5 and the user called 'Charlie' $20?

Whats the unique identifier? It can't be their PayPal address because I may have one address stored for them and they use another to pay?

Can it carry the value of a PHP session?

Member Avatar
diafol
Where are my eyes?
12,963 posts since Oct 2006
Reputation Points: 1,821 [?]
Q&As Helped to Solve: 1,847 [?]
Skill Endorsements: 92 [?]
Moderator
Featured
Sponsor
 
1
 
Question Answered as of 1 Year Ago by diafol and LastMitch
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: