Exclusive eBooks, Software Solutions, Quality Guaranteed
 
Web NukeBiz
Welcome to NukeBiz · Members
Amazon
show cart or checkout0 items
Cart Value: 0.00

Forums » DragonflyCMS Projects » Treasury and Supporters » Transactions work, but not in register
Transactions work, but not in register
For managing donations, site expenses and supporters - further enhancements only in the Donations Pro version.
Topic initiation via Bugger.

Post new topic    Reply to topic    Printer Friendly Page     Forum Index »  eCommerce » Treasury and Supporters

View previous topic :: View next topic  
Author Message
sarah
Nice Poster
Nice Poster

Offline Offline
Joined: Apr 08, 2005
Posts: 5

PostPosted: Wed Apr 11, 2007 5:44 am
Post subject: Transactions work, but not in register

... and thus not in the block.

A friend and I are both using the latest Treasury, and both having this issue. We had an enjoyable time this afternoon donating $1 to each other and refunding it. Smile

When we test the IPN from the admin panel we both get something along these lines:

Quote::
Opening connection and validating request with PayPal...

OK!

Selecting database...
Executing test query...
PASSED!
PayPal Receiver Email: email @ domain.com
Is this really your PayPal Email address?
Logging events

Except yes, they are our real Paypal email addresses. Obscured from harvesters here.

So that's all good, but when someone actually tries to donate, the transaction log says:

Quote::
Opening connection and validating request with PayPal...
OK!
Incorrect receiver email: vs email @ domain.com, aborting
Logging events

So it seems this var:
Code::
$receiver_email = Fix_Quotes($_POST['receiver_email']);

is blank?

Any ideas?


sarah please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Wed Apr 11, 2007 6:44 am
Post subject: Re: Transactions work, but not in register

The error is trigggered in ipntreas.php line 111
Code::
// Perform PayPal email account verification
if( !$dbg && strcasecmp( $_POST['business'], $tr_config['receiver_email']) != 0) {
	dprt('Incorrect receiver email: '.$receiver_email.' vs '.$tr_config['receiver_email'].', aborting<br />', _ERR) ;
	$ERR = 1;
}
This says that the 'business' field returned from PayPal doesn't match the 'receiver_email' field stored in your _treas_cfg table.

Now, the 'business' field is what is sent from this template code
Code::
<input type="hidden" name="business" value="{S_PP_RECEIVE_EMAIL}" />
where
Code::
'S_PP_RECEIVE_EMAIL'=> $tr_config['receiver_email'],

So, what you sent out is not coming back.
- are you using a valid paypal email for that account?
- do your pp_notify_url and ty_url fields match in _treas_cfg?

changing the ipntreas code to
Code::
// Perform PayPal email account verification
if( !$dbg && strcasecmp( $_POST['business'], $tr_config['receiver_email']) != 0) {
	dprt('Incorrect receiver email: '.$_POST['business'].' vs '.$tr_config['receiver_email'].', aborting<br />', _ERR) ;
	$ERR = 1;
}
may provide a better clue.


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
sarah
Nice Poster
Nice Poster

Offline Offline
Joined: Apr 08, 2005
Posts: 5

PostPosted: Thu Apr 12, 2007 6:58 am
Post subject: Re: Transactions work, but not in register

They do match, and replacing that code didn't do anything different. The email is valid, the donation does work, it just doesn't put it in the database.

Here, I will send you a buck to see if you can duplicate it. 2 Cents Worth

EDIT: and of course, it works like a champ on yours!


sarah please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Thu Apr 12, 2007 9:04 am
Post subject: Re: Transactions work, but not in register

Okay, we have now established that PayPal have made some subtle changes to "Website Payment Preferences" - it is now imperative to have Auto Return set to Off. I shall amend the readme to reflect this and provide a new release since I have also done some further query optimizing.

_________________
DonationsPro for vBulletin, SMF, MyBB, DragonflyCMS


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
sarah
Nice Poster
Nice Poster

Offline Offline
Joined: Apr 08, 2005
Posts: 5

PostPosted: Fri Apr 13, 2007 4:56 am
Post subject: Re: Transactions work, but not in register

Thanks for the above and beyond troubleshooting! Smile


sarah please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile
MathMyfanwy
New Poster
New Poster

Offline Offline
Joined: Jun 09, 2007
Posts: 1

PostPosted: Sat Jun 09, 2007 11:20 pm
Post subject: Re: Transactions work, but not in register

Ok how was this fixed again? I am experiencing the same issue. I am check everything in the thread with no luck. I am running the most recent version downloaded from this site.


MathMyfanwy please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile Visit poster's website
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Sun Jun 10, 2007 1:55 am
Post subject: Re: Transactions work, but not in register

admin.php?op=Treasury&mode=readme#PaypalSetup

3 wrote:
# Treasury does NOT require settings in "Website Payment Preferences".
PayPal settings now require,
• Set/Leave 'Auto Return' to 'Off' in "Website Payment Preferences".
• Set/Leave 'Payment Data Transfer' to 'Off' in "Website Payment Preferences".

EDIT by Phoenix: Note, this is no longer true with the latest releases of Treasury - Auto Return must now be ON.


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index »  eCommerce » Treasury and Supporters
Page 1 of 1
All times are GMT + 9.5 Hours



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
You cannot attach files in this forum
You cannot download files in this forum