Worldpay payment plugin and merchant codes

Discussion in 'Payment Systems' started by chrisk, Apr 25, 2013.

  1. chrisk

    chrisk New Member

    Joined:
    Sep 12, 2012
    Messages:
    4
    Hi all. I've contacted support to help with this issue but they seem to be ignoring me. Hopefully someone can help here :).

    I want to dynamically choose merchant codes with conditional statements based on a user's chosen currency/product.

    I have found the worldpay.php file but cannot see any 'worldpay form' which I am used to. I need to assign 'accId1' and select a specific merchant code. I am used to adding these as hidden fields but cannot see in the code where this would go. It seems that this plugin uses the default merchant code but we have around 5 or 6 to that we want to send money to based on the currency.

    Any info would be appreciated. Thanks.
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,274
    Chris,
    I believe the problem was fixed in helpdesk already? Let me know if not.
  3. chrisk

    chrisk New Member

    Joined:
    Sep 12, 2012
    Messages:
    4
    Yes, solved. Thank you.

    The code used:
    if($invoice->currency == 'GBP') $a->accId1 = 'TEXTHERE';

    This will also work with any other form input names. i.e. $a->noLanguageMenu = 'yes';

Share This Page