Author |
Message |
Bravo2zero
Regular


Joined: Nov 28, 2005
Posts: 92
Location: UK
|
Posted:
Sun Sep 03, 2006 1:53 pm |
|
Hi All,
I have brought the NSN groups paypal Block ver 1.6.1
I have it working apart from one or two little errors,
1: when checking in paypal account details of transaction, it shows custom= 123 etc as the user id, i need it to list the username as well but can't work out how to do this, i keep a membership list and need to know what username has paid etc, i can't trace the user id unless going into the database which takes too long.
2: keep getting ipn failure e-mails (approx 9) and testing e-mails (1 only) each time i make a payment, i have set the ipn in paypal to http://www.blah-blah-blah.com/pp_ipn.php as the files in the root i presume this address is correct,
other than that it adds the new member instantly to the groups area for members only and works a treat,
one other thing i have not tried to make a payment as a guest yet, so not sure what will happen there yet,
so anyone who can sort the above help please?
Thanks in advance
B2Z |
_________________ dodging bullets ain't easy but it's a job! |
|
|
 |
fkelly
Former Moderator in Good Standing

Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY
|
Posted:
Sun Sep 03, 2006 5:16 pm |
|
I've been trying to get a paypal application, based on the NSN code, going for some time now and can understand the difficulties you are having. I doubt that you are going to find too much help here but I will be interested to see if any experts in this "pop up".
One thing you say strikes me as kind of curious:
Quote: | i can't trace the user id unless going into the database which takes too long. |
What takes too long about it? It's a simple query and it's what relational databases are designed for. Select the username where the user-id equals the variable user_id which you get from pp_ipn.php. That kind of lookup goes on hundreds of times in a typical session with PHPnuke and you sure are not stressing the system too much by adding a few.
I don't have the email thing working correctly either. Are you using the sandbox? There's a whole bunch of forums on the paypal development site where you might get better answers. |
|
|
|
 |
Bravo2zero

|
Posted:
Sun Sep 03, 2006 6:02 pm |
|
the help readme file is missing a few important mentions on what to change,
you need to read the pp_ipn.php lines and replace as it says
also edit and replace the block-purchase.php lines where it tells you,
the e-mail has to be entered in both to work ok.
all i want is for the username to show in the paypal account area,
not sure on what you mean by the user id etc in the database, i don't want to go in the database everytime i need to know who's user id = a username. |
|
|
|
 |
Bravo2zero

|
Posted:
Tue Sep 05, 2006 5:00 am |
|
to update i have just re read the nukescripts details of the block where you download it from,
and it says that the ipn also removes the user from the groups if the paypal is reveresed or refunded etc, this doe not happen! but saying that i wonder if this is why i get approx 8 IPN failures e-mails which mention refund etc.
i can't believe there is so little support for this download, i know it's not ravens download but hoped i could get some help on this.
thanks in advance
B2Z |
|
|
|
 |
jaded
Theme Guru

Joined: Nov 01, 2003
Posts: 1006
|
Posted:
Tue Sep 05, 2006 1:43 pm |
|
|
|
 |
fkelly

|
Posted:
Tue Sep 05, 2006 1:56 pm |
|
I got the download too. It's about $7.00 if I recall correctly. I never expected to get more than $7.00 of support. Just having the programming "template" is worth more than that to me. Paypal support has a lot of forums. Don't get me wrong, I'm hung up with developing an application that uses this too and I've had similar problems and I'd love to see some support but I don't expect to find it at those rates. |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Tue Sep 05, 2006 10:23 pm |
|
Unfortunately, it could happen to any of us. Life can get in the way sometimes... I seem to recall that with CNBYA 5.0... (ok, don't get folks started and stay on topic...) |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
pnclthnmstsh
Regular


Joined: Oct 23, 2005
Posts: 54
Location: Portland, Or
|
Posted:
Wed Sep 13, 2006 5:11 am |
|
I have the same problems. Since I knew my IPN was working fine I fixed the annoying 9 emails by commenting out this line in the XX_ipn.php files.
mail($nuke_config['adminmail'], "IPN Failure", $req2, "From: ".$nuke_config['adminmail']."\r\n");
Not a fix by any means, it just stops failure emails. |
_________________ Only registered users can see links on this board! Get registered or login! |
|
|
 |
fkelly

|
Posted:
Wed Sep 13, 2006 8:52 am |
|
One problem that I came across in testing the NSN scripts is shown in the following lines of code:
Code:if($livefeed > 0) {
// post back to PayPal system to validate
$header = "POST /cgi-bin/webscr HTTP/1.0\r\n";
$header .= "Content-Type: application/x-www-form-urlencoded\r\n";
$header .= 'Content-Length: ' . strlen($req) . "\r\n\r\n";
$fp = fsockopen ('www.paypal.com', 80, $errno, $errstr, 30);
} else {
// post back to PayPal Sandbox system to validate, used for testing IPN
$header = "POST /cgi-bin/webscr HTTP/1.0\r\n";
$header .= "Host: www.sandbox.paypal.com\r\n";
$header .= "Content-Type: application/x-www-form-urlencoded\r\n";
$header .= 'Content-Length: ' . strlen($req) . "\r\n\r\n";
$fp = fsockopen ('www.sandbox.paypal.com', 80, $errno, $errstr, 30);
}
|
In the second group where you are posting back to the sandbox I believe that you may need the Host statement. See this thread in the paypal forums:
Only registered users can see links on this board! Get registered or login!
If this is true you may need the same type of thing when you move from sandbox to real but that's a bridge I'll cross when I get there.
Generally, as far as I can see, the NSN scripts just take the suggested PAYPAL sample code and add an update of NSN groups to it. It's too bad that this code is "paid" because if it was open source we could quote it more freely and maybe make improvements more freely too.
For instance, it would be a good idea to build some kind of logging capability into the pp_ipn.php file from the outset. I'm currently pondering whether to make it a mysql database table log or just a text file. Without this it's hard to even be sure if the program is executing successfully much less track down problems.
[/code] |
|
|
|
 |
leo51
Worker


Joined: Sep 09, 2004
Posts: 106
Location: Canada
|
Posted:
Mon Sep 18, 2006 10:09 pm |
|
jaded wrote: | if this is an nsn product perhaps try to site pm bobmarion or use feedback on his site. |
Sorry, to ask but which of the nuke support site is really his? |
|
|
|
 |
pnclthnmstsh

|
Posted:
Mon Sep 18, 2006 10:28 pm |
|
I don't think he has one. Which is incredibly sad since paying for the scripts is easily found. I haven't tried to contact him directly for support yet but hopefully that kind of support makes up for the lack of peer to peer, or open forum support for those who paid for NSN scripts. NSN Scripts really should have a support forum since they offer so many downloads and they are an icon in the Nuke world, as well they should have a private forum for those of us who have paid for scripts to get support on issues like this.
Just my opinion, but I really can see why some sites would opt to be just a "get what you want and go" kinda site. |
|
|
|
 |
Guardian2003
Site Admin

Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Tue Sep 19, 2006 4:16 am |
|
fkelly I may be wrong but in other scripts that use paypal the 'host' should be www.paypal.com unless you are testing it, in which case it should be as shown in your post.
Having said that, the sandbox should perform as the normal paypal except that money is never transferred - hmm, a conondrum. |
|
|
|
 |
hitwalker
Sells PC To Pay For Divorce

Joined:
Posts: 5661
|
Posted:
Tue Sep 19, 2006 5:39 am |
|
mmmm, a few things...
nsn scripts support maybe hard to find ,but there are reasons for that,also when bob took the forum offline.
as for contacting bob by mail.....well thats because he gets (like many others) tons of mail,sorted out by the system and with some look he finds it... |
|
|
|
 |
|