Worldpay plugin broken???? references functions that do not exist

Discussion in 'Payments processing' started by yongfook, Aug 13, 2008.

  1. yongfook

    yongfook New Member

    Joined:
    Jul 8, 2008
    Messages:
    4
    Amember 3.1.2PRO

    I get a php error when I try to process a Worldpay signup

    Code:
    [14-Aug-2008 12:05:01] PHP Fatal error:  Call to undefined method payment_worldpay::build_subscription_params() in /MYSITE.com/login/plugins/payment/worldpay/worldpay.inc.php on line 37
    
    It seems to be trying to call a method that doesn't even exist in the plugin file. I thought maybe the method was being extended from amember_payment but it seems the only other time this function appears in my amember installation is in the paypal_r plugin.

    What's going on? Is my Worldpay plugin "unfinished?". It's only 148 lines long.

    Need help fast!
  2. jimjwright

    jimjwright New Member

    Joined:
    Sep 12, 2007
    Messages:
    162
    Hello,

    Looks like this payment plugin had major overhaul when version 3.1.0 was released. Best I can tell that line does not look like it is needed. I would remove it or comment out and give it a go. Enter a support ticket to get the official answer, but I did not see any of the variables in the returned list($a, $p, $t, $rebill_times) being referenced later in the function.

    Jimmy
  3. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Yes, there really is a problem with plugin in 3.1.2. There is fixed file
    amember/plugins/payment/worldpay/worldpay.inc.php
    attached - please try to replace. Sorry for this issue!
  4. jimjwright

    jimjwright New Member

    Joined:
    Sep 12, 2007
    Messages:
    162
    Hello,

    Even in your new file that you posted I don't understand the need for the following line:

    PHP:
    list($a$p$t$rebill_times) = $this->build_subscription_params($products$amount$u$invoice);
    None of the returned list values $a, $p, $t, and $rebill_times are referenced later on in the function do_bill(). I see the purpose of this function in the paypal_r plugin because multiple products can be rebilled and they are referenced later.

    I guess I don't get it.

    Jimmy
  5. cosmode

    cosmode New Member

    Joined:
    Apr 3, 2008
    Messages:
    3
    Hello,

    I used the new worldpay.inc.php file but I get this error:
    Incorrect value for expire days: 2037-12-31
  6. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Did you set a lifetime subscription along with recurring?

    David
  7. cosmode

    cosmode New Member

    Joined:
    Apr 3, 2008
    Messages:
    3
    There is no recurring... I wonder what the problem is.

Share This Page