Support » Plugins and Hacks » [Plugin: eShop] Multiple Emails on a Paypal Account

  • Resolved csogilvie

    (@csogilvie)


    Hello

    I set up the eshop plugin on a website last night and came around to testing it.

    Paypal offers you the ability to add multiple email addresses to a paypal account, and then you can accept emails to any number of these addresses. This is a facility that both websites that I am in the process of developing with eShop uses.

    However, the Paypal IPN notification verification within eshop does not like this.

    Consider:

    Main Email Address: main@example.com
    Secondary Address: second@example.com

    I would like eshop to take the payments from second@example.com which then shows up in the IPN notification as:

    business: second@example.com
    receiver_email: main@example.com

    However, eshop only compares that the ‘receiver_email’ matches what is defined in the settings, it doesn’t seem to compare the ‘business’ email which is the one the payment was actually sent to.

    This doesn’t look like a large modification to the code, and would make the system work better for people that run different email addresses for their paypal accounts.

    Would suggest something like the following
    paypal.php, line 561:

    if($p->ipn_data['receiver_email']!= $eshopoptions['business']){

    ->

    $paypalRecipient = (isset($p->ipn_data['business'])) ? $p->ipn_data['business'] : $p->ipn_data['receiver_email'];
    if($paypalRecipient != $eshopoptions['business'])

    http://wordpress.org/extend/plugins/eshop/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: eShop] Multiple Emails on a Paypal Account’ is closed to new replies.