cancel
Showing results for 
Search instead for 
Did you mean: 

IPN Not Sending payer_email Field For eBay Transactions

Contributor

Re: IPN Not Sending payer_email Field For eBay Transactions

Am I missing something, @SlickTrick? Those are both the same.

 

For the record, my own code is:

if (( $hndl = curl_init( 'https://ipnpb.paypal.com/cgi-bin/webscr' )) === false ) throw new Exception( 'Error creating cURL handle' );
Contributor

Re: IPN Not Sending payer_email Field For eBay Transactions

Well spotted @Tim76  I was just checking everyone reading this was awake LOL! Not! Sorry copy and paste went west!

 

Should have been:

 

$ch = curl_init('https://www.paypal.com/cgi-bin/webscr'); or $ch = curl_init('https://ipnpb.paypal.com/cgi-bin/webscr');

 

ipnpb used instead of www or vice versa.

 

Thank you sir for pointing out my mistake.

Contributor

Re: IPN Not Sending payer_email Field For eBay Transactions

No problem. I think both URLs are valid, but I use the ipnpb one. Kinda going off topic now, so might be better to start a new thread if you need one. But if it's of any use, here's my cURL handling code. Don't know what problem you're having, but the main thing I'd say to watch out for is that you're doing type and value comparisons (===) and not just value comparisons (==, !).

 

        if (( $hndl = curl_init( 'https://ipnpb.paypal.com/cgi-bin/webscr' )) === false ) throw new Exception( 'Error creating cURL handle' );

        $send = 'cmd=_notify-validate';
        foreach ( $_POST as $k => $v ) $send .= ( "&{$k}=" . urlencode( $v ));

        if ( ! curl_setopt_array( $hndl, [CURLOPT_FAILONERROR => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_POSTFIELDS => $send] ))
        {
            $errno = curl_errno( $hndl );
            $errstr = curl_error( $hndl );
            curl_close( $hndl );
            throw new Exception( "Error setting cURL options: ({$errno}) '{$errstr}'" );
        }

        if (( $recv = curl_exec( $hndl )) === false )
        {
            $errno = curl_errno( $hndl );
            $errstr = curl_error( $hndl );
            $info = print_r( curl_getinfo( $hndl ), true );
            curl_close( $hndl );
            throw new Exception( "cURL response error: ({$errno}) '{$errstr}'\n{$info}\nsent: '{$send}'" );
        }

        curl_close( $hndl );
        if ( $recv != 'VERIFIED' ) throw new Exception( "PayPal payment not verified: '{$recv}'\nsent: '{$send}'" );
Contributor

Re: IPN Not Sending payer_email Field For eBay Transactions

I was posting these CURL's as I changed from www to ipnpb and then noticed the payer_email was not coming through so change it back to www and the next payment I got had the email int it so was just highlighting these CURL's in case the ipnpb was haivng the issue and www was working. So was just putting it out there to see who was using what and having the no email address issue. So not really going off subject but your comment is a valid one sir.

Contributor

Re: IPN Not Sending payer_email Field For eBay Transactions

Ah! Apparently I wasn't awake after all! Smiley Very Happy

Contributor

Re: IPN Not Sending payer_email Field For eBay Transactions

Yes mine seems to be working OK now Smiley Happy

Contributor

Re: IPN Not Sending payer_email Field For eBay Transactions

Hi there

 

Started again, not working again from today showing blank email address, anyone else noted?

Contributor

Re: IPN Not Sending payer_email Field For eBay Transactions

Yep the same is happening to me as well
Contributor

Re: IPN Not Sending payer_email Field For eBay Transactions

I think its happening again, as last time it happened in March the end for a week now happening again, can someone look into this please as not technical minded so dont know about coding but just not working.

Highlighted
Contributor

Re: IPN Not Sending payer_email Field For eBay Transactions

Yes appears yesterday IPN's all ok and today not!

I have added some code to my script to grab every post made by the IPN and normally after the verify_sign post comes the payer_email post which today was not sent it just jumps to txn_id. Fortunately, for me, I grab buyers details from eBay before they make a payment, in my case, so pretty easy for me to find it but still a pain as it means manual input to dB!

So, not sure why this is happening but guess by the time a ticket is logged and PP look into it will start working again! 

Tags (3)