i have read the forum, and other members problems like mine, but i am unable to find out what my problem is, please can you help?
When a member pays on the site it send the payment to our pay pal account, but back on the site it does not show they have made the payment, when i click onto the button to check for new payments it says you dont have any, but i know i have lol. please help this php noob out thanks.
Im running php plat, and the paypal was with the site when it was loaded for me, i only had to change name, for payments, and ,ail address.
ok i think its this file right? spoke to pay pal they told me we had to get a higher pay pal, one we pay for each payment, so we have, and after setting to paypal to send request to site, and so on, it gave us a code to add to the site, it was a string of letters and numbers, what should i change or what part do i set the code pay pal gave me into.
if ($txn_id) {
$sql = "SELECT * FROM " . $prefix . "_treasury_transactions WHERE txn_id = '$txn_id'";
if (!($Recordset1 = $db->sql_query($sql))) {
message_die(GENERAL_ERROR, 'Could not obtain data from nuke tresury transactions', '', __LINE__, __FILE__, $sql);
}
if (!($Result1 = $db->sql_query($insertSQL))) {
message_die(GENERAL_ERROR, 'Could not insert data into nuke tresury transactions', '', __LINE__, __FILE__, $sql);
}
if (!($Result1 = $db->sql_query($insertSQL))) {
message_die(GENERAL_ERROR, 'Could not insert data into nuke tresury transactions', '', __LINE__, __FILE__, $sql);
}
dprt("SQL result = " . $Result1, _INF);
break;
} else {
dprt("Valid IPN, but not interested in this transaction", _ERR);
foreach($_POST as $key => $val) {
dprt("$key => $val", $_ERR);
}
break;
}
} else if (strcmp ($res, "INVALID") == 0) {
dprt("Invalid IPN transaction, this is an abnormal condition", _ERR);
if ($dbg) {
$sql = "SELECT * FROM " . $prefix . "_treasury_transactions LIMIT 10";
echo "Executing test query...";
if (!($Result1 = $db->sql_query($sql))) {
message_die(GENERAL_ERROR, 'Could not obtain data from nuke tresury transtransactions', '', __LINE__, __FILE__, $sql);
}
if (!($Result1 = $db->sql_query($sql))) {
message_die(GENERAL_ERROR, 'Could not insert data into nuke tresury translog', '', __LINE__, __FILE__, $sql);
}
$sql = "SELECT id as lowid FROM " . $prefix . "_treasury_translog ORDER BY id DESC LIMIT " . $tr_config[ipn_log_entries];
if (!($Result1 = $db->sql_query($sql))) {
message_die(GENERAL_ERROR, 'Could not obtain nuke tresury translog', '', __LINE__, __FILE__, $sql);
}
$sql = "DELETE FROM " . $prefix . "_treasury_translog WHERE id < '" . $lowid . "'";
if (!($Result1 = $db->sql_query($sql))) {
message_die(GENERAL_ERROR, 'Could not delete nuke tresury translog', '', __LINE__, __FILE__, $sql);
}
}
fclose ($fp);
if ($lp) {
fputs($lp,"Exiting\n");
}
if ($lp) {
fclose ($lp);
}
if ($dbg) {
echo "----------------------------------------------------------------";
echo "If you don't see any error messages, you should be good to go!";
}
function dprt($str, $clvl) {
global $dbg, $lp, $log, $loglvl;
Joined: Feb 21, 2006 Posts: 1497 Location: In front of a screen....HELP! lol
Posted:
Tue Oct 10, 2006 4:09 pm
ok, That script works without errors on my site with the correct paypal address, and without seeing the code they sent you, I couldnt help you, e-mail me the code and Ill see what I can do with it and as for shotokan's question, no you cannot get a refund, but you can cancel payment via your paypal or credit card(which ever you used).
Ok. I agree with you... I think you're right my bad.
Have you setup the URL IPN into you PalPal account first?
Have you completelly setup the nuketreasury module?
Have you run the test towards the end of the config fomm where it says "IPN link for PayPal" then Click HERE to test IPN?
After you run the test you should get something like that
Debug mode activated
PHP-Nuke Treasury mod
PayPal Instant Payment Notification script
See below for status:
----------------------------------------------------------------
Connection to db - OK!
Opening connection and validating request with PayPal...
OK!
Selecting database...OK!
Executing test query...PASSED!
PayPal Receiver Email: your-email.comLogging events
----------------------------------------------------------------
If you don't see any error messages, you should be good to go!
Answer those question and if the answers is YES to all of them Post the whole information you have into your nuketreasury config adn I might be able to help you.
Have you setup the URL IPN into you PalPal account first?
Have you completelly setup the nuketreasury module?
Have you run the test towards the end of the config fomm where it says "IPN link for PayPal" then Click HERE to test IPN?
"Url into paypal account" ? i have set it to my site addy, is this wrong?
"have you completellt setup nuke" I think so, but im new at this.
"have you run the test at the end" yes and it says alls good ready to go, just like what you posted.
I would like to get this working for my members who are making the donations, the money is for running a games server, and i would like them to see the money showing after paying, thanks for you questions, sorry if i'm not able to give you more info. any more help would be great m8
For the PayPal side here is what I need you to do:
Open up our PayPal account. Find your account "Profile" in PayPal and look for: "Instant Payment Notification Preferences" .
In there you should see 2 options: One to enable IPN and the other called: "Instant Payment Notification (IPN) URL" . In this field you'll enter the complete URL listed below.
Only registered users can see links on this board! Get registered or login to the forums!
After that you need to setup the trasury config on NUKE
OK. Towards the end of the treasuty config page there is a field with the exactly same link a gave you yesterday. At the end of this link it says... "click here to test"
Click on that test and see what result will come out.
See below for status:
----------------------------------------------------------------
Opening connection and validating request with PayPal...
OK!
Executing test query...PASSED!
PayPal Receiver Email:
Only registered users can see links on this board! Get registered or login to the forums!
events
----------------------------------------------------------------
If you don't see any error messages, you should be good to go!
See below for status:
----------------------------------------------------------------
Connection to db - OK!
Opening connection and validating request with PayPal...
OK!
Selecting database...OK!
Executing test query...PASSED!
PayPal Receiver Email:
Only registered users can see links on this board! Get registered or login to the forums!
events
----------------------------------------------------------------
If you don't see any error messages, you should be good to go!
Look at mine above. I notice your is missing the Selecting Database part. It was just a cut/past problem or it actually did not execute this one?
Have you actually created the MySql DB? If yes also open your Modules/donations and look into the config.php for these settings:
OK you're using a different version of both softwares.
I use NukeTreasury 1,07 and PHP-Nuke but i don't think they are that different for this MOD.
You probably have a install.txt or readme.txt with the installation instructions for that treasury MOD right? Post it here so we can go step by step and get this figure out.
As for " readme.txt with the installation instructions " i don't have any, all this was in the site ready for me to setup. i just had to go to the block and set it to active, and then start to set mail Addy and so on. no text hell file for me on my site, and i have looked around php sites, and still no luck, can not fined a help file for my donation block/ pay pal module.
OK. Don't need for panik. Look into your site folders a file with the extension .sql. If you find any let me know which ones you have. Don;t need to post them just let me know their names and where they are located.
Ok now i'm starting to panic lol. been looking in all my folders in the cpanel, and can not find a sql. file. that said was one folder that said i could not access. its said locked only for admin host of site.
I don't think so. Ok the file might be a .TXT file too. So to a search into all you file to find anything that has something LIKE CREATE TABLE, INSERT, CREATE DB we need to find the scritp to create your DB.
View next topic View previous topic
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