Support Forums

Old 01-27-2008, 07:19 PM   #1
Senior Member
 
 
Join Date: Jan 2008
Posts: 124
Rep Power: 9
Soleiltan is on a distinguished road
Arrow PayPal IPN --- Need info for PayPal

So, installed my first copy into a sub-domain....and upgraded. Got past hash error.

www.abc.mysite.com

So, now PayPal needs to know the file to send the Instant Payment Notification to?

Instant Payment Notification Preferences


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


Activate Instant Payment Notification

Before activating Instant Payment Notification, please read the instructions to ensure that you can support the notification system.

(My server supports this.)

Instant Payment Notification integrates PayPal payment notification and authentication with your website's back-end operations. Check this box to activate Instant Payment Notification, and enter the URL at which you will receive the payment notifications below.

Notification URL: http:www.abc.mysite.com/????????????


Please ADVISE.

Thanks .....
Soleiltan is offline   Reply With Quote
Old 01-27-2008, 07:27 PM   #2
Senior Member
 
 
Join Date: Jan 2008
Posts: 124
Rep Power: 9
Soleiltan is on a distinguished road
Default

This came from your instructions ....how will this work for multiple copies of this software in different sub-domains? If I send all IPNs to www.abc.mysite.com, what happens when I receive a payment from the install on www.xyz.mysite.com ? Don't the posts have to be acknowledged by each copy of the software to allow the ad to be posted?

"Once you have entered your Paypal information on this screen, you will need to login to your Paypal account and activate IPN (Instant Payment Notification). Here are the steps for activating IPN (from Paypal's website).

1. Log in to your PayPal account.
2. Click the Profile subtab.
3. Click the Instant Payment Notification Preferences link in the Selling Preferences column.
4. Click Edit.
5. Click the checkbox and enter the URL to which you would like to receive HTML posts.
6. Click Save.
7. You have successfully activated IPN."
Soleiltan is offline   Reply With Quote
Old 01-28-2008, 12:43 AM   #3
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,077
Rep Power: 117
Eric Barnes is a jewel in the rough
Default

Paypal allows for different return urls but it comes through the checkout portion of the script. So I would enter your first site's return url in those instructions. Then when someone actually purchases using paypal they will be sent back to the right place because of the hidden field sent.
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 01-28-2008, 01:18 PM   #4
Senior Member
 
 
Join Date: Jan 2008
Posts: 124
Rep Power: 9
Soleiltan is on a distinguished road
Default

I need to know what that should be....

Your script should specify where?

Please advise.
Soleiltan is offline   Reply With Quote
Old 01-28-2008, 01:20 PM   #5
Senior Member
 
 
Join Date: Jan 2008
Posts: 124
Rep Power: 9
Soleiltan is on a distinguished road
Default

So would it be ......

the main domain site.... www.mysite.com
the submain site #2..... www.abc.mysite.com
the submain site #3... www.xyz.mysite.com

Can you be more specific please?

Thanks...
Soleiltan is offline   Reply With Quote
Old 01-28-2008, 03:25 PM   #6
Coder
 
Join Date: Mar 2006
Posts: 4,514
Rep Power: 110
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by Soleiltan View Post
So would it be ......

the main domain site.... www.mysite.com
the submain site #2..... www.abc.mysite.com
the submain site #3... www.xyz.mysite.com

Can you be more specific please?

Thanks...

I think what Eric is saying by his following comment .....
Quote:
So I would enter your first site's return url in those instructions. Then when someone actually purchases using paypal they will be sent back to the right place because of the hidden field sent.
Is just use the main domain site of www.mysite.com for all of them. The actual return URL you enter is irrelevent because when the order is placed a value with the REAL return URL is sent along with the order and that is whats used.
__________________
Larry.
Lhotch is offline   Reply With Quote
Old 01-29-2008, 10:06 AM   #7
Senior Member
 
Join Date: Jan 2007
Posts: 123
Rep Power: 13
HotAir is on a distinguished road
Default

When you turn IPN on in your PayPal account, you have to enter the URL of the script you want the payment notifications sent to. PayPal expects an 'ok' response when it sends the transaction data back to that script.

When 68c sends the customer to PayPal for payment, it includes a hidden field that instructs PayPal to send the response back to a specific URL, effectively overriding the one you manually entered in your PayPal account when you turned IPN on.

If you are using only 68c with your paypal account, then you don't have to do anything special. the 68c script will tell PayPal where to send the response. Copies of 68c in different subdomains, or even other domains, will all correctly indicate where the response should be sent after payment. There isn't anything you need to do different when running payments from multiple copies of 68c through the same PayPal account, regarless of the domain(s) they are on.

I have a simple script I use when running payments from other sources through a PayPal account that has IPN turned on. Remember that PayPal expects an 'ok' response when IPN is turned on.

I've attached this script for anyone to use. Here is the README file that explains its use:

If you are using a single PayPal account for both your 68c payments and another service, such as to receive auction payments, you will need to use this script.

For 68Classifieds to set PayPal payments as received appropriately after a payment is made, Instant Payment Notification (IPN) must be enabled in your PayPal account. Enabling this setting requires you to enter the url of a script on your web site to run each time a payment is completed.

However, if you enter the location of your 68Classifieds program in this field, errors will occur on non-68C payments. 68C will override the PayPal IPN setting on 68C transactions, so it is possible to enter a different script address in your PayPal account.

You should upload the response.cgi script in ascii format to your cgi directory. In your PayPal Administrator, you must enter the full url to the response.cgi program that you just uploaded. It may be something like: http://www.yoursite.com/cgi-bin/response.cgi

The response.cgi file will post back an "ok" message to the browser when a non-68C transaction is completed. This message will fulfill the requirements of the IPN setup without causing any errors, and still allow 68Classifieds to log PayPal payments properly.

INSTALLATION:
Upload the file in ascii format to your cgi-bin directory and CHMOD it to 766.


Hope this is helpful...

Regards,
Jim
Attached Files
File Type: zip 68c-ipn.zip (970 Bytes, 10 views)
__________________
V3.1.10 Developer - live
V4.1.0 Beta 2 - sandbox
HotAir is offline   Reply With Quote
Old 02-04-2008, 04:37 PM   #8
Senior Member
 
 
Join Date: Jan 2008
Posts: 124
Rep Power: 9
Soleiltan is on a distinguished road
Default

Hey thanks Jim...

I'll give this a try!
__________________
~~ Lorren

Any advice is always appreciated.

v 3.1.10 Developer; v 4 Developer
Soleiltan is offline   Reply With Quote
Old 02-04-2008, 05:48 PM   #9
PHP Mechanic
 
 
Join Date: Nov 2007
Posts: 118
Rep Power: 10
cheesegrits has a spectacular aura about
Default

Jim,

Thank you for sharing. One of the most coherent descriptions of the IPN issue I've seen, and the script is the icing on the cake.

Thanks,

-- hugh
cheesegrits is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Paypal problem sundownservices v3.1 Questions & Support 0 10-25-2007 05:22 PM
PayPal payment problem CHRD v3.1 Questions & Support 1 09-27-2007 09:02 AM
Paypal Buy now button sleepylok v3.1 Questions & Support 7 02-27-2007 09:30 AM
Paypal returning to userlogin.php pedromtze v3.1 Questions & Support 4 10-13-2006 01:54 PM
Paypal thanks page turkeygeorge v3.1 Questions & Support 2 07-11-2006 12:36 PM


All times are GMT -4. The time now is 04:35 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0