Reply
Help with payment process ReadMe info
Old 10-24-2009, 09:22 PM Help with payment process ReadMe info
Extreme Talker

Posts: 182
Trades: 0
I'm installing Amazon Simple Pay (like paypal) and I need some help with the instructions that read:
"A customer clicks on your Amazon SimplePay button
The customer is redirected to the co-branded user interface pipeline where they enter their payment credentials.
After the customer completes the pipeline they are redirected back to your website.
When the transaction completes, Amazon SimplePay will send an Instant Payment Notification (IPN) to your IPN script.
The IPN script receives data in the $_POST variable.
Use the SimplePay_IPN class to validate the IPN and then take the appropriate action."

Code:
<pre>
			require 'SimplePay_IPN.php';
						// Create a new SimplePay IPN validator, passing your AWS Secret Access Key
			$SimplePayIPN = new SimplePay_IPN(AWS_SECRET_ACCESS_KEY);
			/**
			 * Pass the $_POST variables to the IPN validator
			 * $SimplePayIPN->isValid($_POST) will return true if the POST fields match up with the signature from Amazon SimplePay
			 * $SimplePayIPN->isValid($_POST) will return false if the generated signature does not match
			 */
			if ($SimplePayIPN->isValid($_POST)) {
				// The POST signature is valid
				// Process the IPN -- log the data, update your database, etc...
			} else {
				// The POST signature is not valid
				// Log the invalid IPN and take any needed actions
</pre>
The part I'm interested in getting help with is the part about logging. Can you give some ideas about the logging? Their is a log.txt file with the install files, but I don't see any data after I process a payment. Any guesses about where the transaction data might be logged would be helpful. I'd ultimately like to see the transaction data retreived into a website file. Thanks.
chrisj is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 10-25-2009, 05:02 AM Re: Help with payment process ReadMe info
chrishirst's Avatar
Super Moderator

Posts: 22,237
Location: Blackpool. UK
Trades: 0
What actions have you coded to log the success/failures? as the code you posted ends before the }else{ is closed.

And there is no logging actions code before that.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-26-2009, 04:07 AM Re: Help with payment process ReadMe info
Experienced Talker

Posts: 44
Trades: 0
post more code to see
dan101 is offline
Reply With Quote
View Public Profile
 
Old 10-28-2009, 06:18 AM Re: Help with payment process ReadMe info
Banned

Posts: 2
Trades: 0
Thanks for this wonderful addition. Really enjoyed your thread. Appreciate people taking the time to write quality work..
johnnyblame is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Help with payment process ReadMe info
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.14122 seconds with 13 queries