Announcement

Collapse
No announcement yet.

Parsing fake values to WorldPay

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Parsing fake values to WorldPay

    Hi Guys,

    My client sells high value goods i.e. plasma tvs, sorround sound systems etc.. and he does not want to take the full payment of any order that is more than £500.00. If the order is more than £500.00 he wants them to pay a £500.00 deposit for the goods.

    Now obviously a simple 'if' statement in the order script perl springs to mind but the code is CLASS and OBJECT heaven.. arrgh!

    ===========================
    Psuedo code of what I am trying to do
    ===========================

    // earlier in the script
    $totalordervalue = 501.00; //total value of order

    // later in the script
    // if the total order value is more than 500.00 then set the order
    //value back to 500 (to fake a 500 deposit)

    if($totalordervalue > 500.00){
    $totalordervalue = 500.00;
    }

    // if the total order value is less than 500 then carry on as normal..

    Please help

    thanks in advance
    Kindest Regards,

    Ben Brown
    Web Developer
    Web on High Ltd.
    Email: ben@woh.co.uk
    Web: http://www.woh.co.uk
    "Web sites with search engine listings"

    #2
    The customer has contacted the support team directly about this.

    Comment

    Working...
    X