SearchSearch   ProfileProfile   Log inLog in   RegisterRegister 

PayPal Processing - IPN

 
Post new topic   Reply to topic    FirstSpot Forum Index -> Pre-sales Support Forum
View previous topic :: View next topic  
Author Message
gilbertv



Joined: 25 Jun 2004
Posts: 24

PostPosted: Tue Jun 29, 2004 10:03 pm    
Post subject: PayPal Processing - IPN

Having an issue with PayPal posting back via IPN.

1. Setup extra PayPal account for testing.

2. Added PayPal account email address to Config Manager, Credit Card (tab)

3.A. Success Return Path set to: http://192.168.100.1:5788/cart.php
3.B. Failure Return Path set to: http://192.168.100.1:5788/cart.php

4. Treat Pending Transactions as Pending: NO

5. Base Currency: USD

6. IPN Notify URL: http://X.X.X.X:5789 /ppal_ipn.php

note: X.X.X.X = our Public IP Address for the FirstSpot Server which we will not post on this forum.

7. IPN Module Listening at Port: 5789

8. Transaction History Table Name: ppal

*9. Added additional (4th) item to cart.php, ex: 8 hours @ $XX.xx

Saved all settings. Started Service

---------------------------------------------

After setting up FirstSpot Server and PayPal Account...

1. Logged in to client PC and opened IExplorer.

2. Clicked Signup Now

3. Entered new: Username, Password, Confirm Password

4. At Shopping Cart page: chose the 4th item I added, 8 Hours, etc.. and proceeded to PayPal after clicking the button...

5. At PayPal the description of 8 Hours Air Time and the dollar amount for the service was exactly what it was supposed to be....

6. Entered PayPal client account and paid for services.

7. Client PayPal Account was debited, and WISP Account received a deposit for the exact amount. Verified both PayPal Accounts for the transaction.

I expected to receive a Post Back Transaction detail at my FirstStop Server, but did not. After two hours it has not updated.

Now, I wonder if this is an issue with a new PayPal Account I created for receiving payments, or if I did not completely setup the Credit Cards function properly????

Any help is greatly appreciated.

p.s.-- any suggestions on the WISP hardware issue?

Thank you.
Back to top
gilbertv



Joined: 25 Jun 2004
Posts: 24

PostPosted: Tue Jun 29, 2004 10:09 pm    
Post subject:

Forgot to mention that the PayPal WISP Account is setup as follows:

Instant Payment Notification (IPN) On
Instant Payment Notification (IPN) URL: None
Back to top
kevin
Forum facilitator


Joined: 26 Sep 2003
Posts: 442

PostPosted: Wed Jun 30, 2004 3:44 am    
Post subject:

Please check if there's a file called paypal_txn.log under your FirstSpot\Log directory and send us (firstspot@patronsoft.com) the file for troubleshooting.

If the file is missing, please send us *.log files under the FirstSpot\www\Apache\Logs directory.
_________________
~ Patronsoft Limited ~
Back to top
gilbertv



Joined: 25 Jun 2004
Posts: 24

PostPosted: Wed Jun 30, 2004 4:13 am    
Post subject:

the paypal_txn.log was missing so I sent an email with the log files you requested.

Thank you.

GV
Back to top
kevin
Forum facilitator


Joined: 26 Sep 2003
Posts: 442

PostPosted: Wed Jun 30, 2004 4:22 am    
Post subject:

Thanks for the log files sent over.

If the paypal_txn.log is missing, that means FirstSpot's PayPal module doesn't not receive anything.

From the web server log files, it shows no post-back attempt from PayPal has been logged.

Is your FirstSpot's public IP the same as your Internet IP? Therefore, is there any broadband router between FirstSpot and the Internet?

If so, please configure your broadband router to accept port 5789 traffic and divert it back to the FirstSpot's public IP.
_________________
~ Patronsoft Limited ~
Back to top
gilbertv



Joined: 25 Jun 2004
Posts: 24

PostPosted: Wed Jun 30, 2004 4:31 am    
Post subject:

<<If the paypal_txn.log is missing, that means FirstSpot's PayPal module doesn't not receive anything>>

Do I need to do anything to install that file or does FirstSpot create it all by itself?

--------

<<Is your FirstSpot's public IP the same as your Internet IP?>>

It is a public IP, but not the first one...

--------

<<Therefore, is there any broadband router between FirstSpot and the Internet?>>

Yes, a router sits between the internet and FirstSpot...

--------

<<If so, please configure your broadband router to accept port 5789 traffic and divert it back to the FirstSpot's public IP.>>

Ok, I should have realized this, as I configure various ports on that router from time to time. I'll go ahead and add that port.

Are there any other ports I need to add, just in case?

GV
Back to top
kevin
Forum facilitator


Joined: 26 Sep 2003
Posts: 442

PostPosted: Wed Jun 30, 2004 4:37 am    
Post subject:

The paypal_txn.log file will be created by FirstSpot the first time it receive something from PayPal. Its missing implies nothing has been received.

If there's a router in your case, configure port5789 should help resolve the problem.
_________________
~ Patronsoft Limited ~
Back to top
gilbertv



Joined: 25 Jun 2004
Posts: 24

PostPosted: Wed Jun 30, 2004 4:39 am    
Post subject:

Added port as suggested. Will test soon.

Thank you.

GV
Back to top
gilbertv



Joined: 25 Jun 2004
Posts: 24

PostPosted: Wed Jun 30, 2004 5:22 am    
Post subject:

1.A. Router firewall settings configured to permit port 5789 traffic to FirstSpot Server

1.B. I created one user account and paid via PayPal. The post back from PayPal to FirstSpot did not work.

Checked firewall logs on both the internet router and FirstStop Server itself. Traffic logged as getting to router, but not making it to server, as it is blocked at the router for some reason.

2.A. Changed router firewall settings to permit all port/traffic from all sources to FirstSpot Server.

2.B. Tried logging in to FirstSpot server as user, displayed error that I was out of time and was directed to the cart.php.

2.C. Paid for additional time via PayPal.

2.D. Checked "Credit Cards" in the Configuration Manager and PayPal posted back the correct information for the second payment for additional time.

3.A. Noticed that PayPal just posted first payment made earlier in the evening.

Both payment transactions show as "Completed".

Thank you.
Back to top
gilbertv



Joined: 25 Jun 2004
Posts: 24

PostPosted: Wed Jun 30, 2004 5:27 am    
Post subject:

Curious,

If two payments were made and each show as completed, shouldn't the User Info under the Users tab show accumulative time?

It only shows time for one payment......

If a customer decided to pay for extra time of 1 hour eventhough they have, let's say, 10 minutes time left on their account... should't this be updated to 1 hour and 10 Minutes or 70 minutes?

GV
Back to top
kevin
Forum facilitator


Joined: 26 Sep 2003
Posts: 442

PostPosted: Wed Jun 30, 2004 5:35 am    
Post subject:

You're right. The airtime for the user will be added everytime a transaction is completed successfully.

Open the paypal_txn.log file and it will tell you if airtime has been credited to a user.

Please try using another new user account and test it from scratch.
_________________
~ Patronsoft Limited ~
Back to top
gilbertv



Joined: 25 Jun 2004
Posts: 24

PostPosted: Wed Jun 30, 2004 5:55 am    
Post subject:

Surprise, surprise... it works!!

Thanks.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    FirstSpot Forum Index -> Pre-sales Support Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group