Jump to content
  • 0

Worldpay Futurepay


kokyew

Question

I'm testing the demo of WHMCS and found it may be lack of the following features that I need.

 

Does WHMCS support Worldpay Futurepay at the moment? So when a customer signs up he'll be redirected to a page to create a Futurepay agreement, not just one time payment. Also in the future for every subsequent payment, WHMCS can mark the invoices as paid automatically.

Link to comment
Share on other sites

11 answers to this question

Recommended Posts

  • 0

Hi,

I would also buy this script if it supported futurepay. You would also need to add pre-auth mode too.

 

I believe the integration is not difficult.

here is an example piece of code for worldpay:

 

// Get the link id
if ($term==1)  { $intrval=1; }
else if ($term==3) { $intrval=3; }
else if ($term==6) { $intrval=6; }
else if ($term==12) { $intrval=12; }

echo "<form action='https://select.worldpay.com/wcc/purchase' method='POST'>\n";
echo "<input type='hidden' name='desc' value='".$package_name." [".$domain_name."]'>\n";
echo "<input type='hidden' name='cartId' value='".$sid."'>\n";
echo "<input type='hidden' name='instId' value='".$worldpay_id."'>\n";
echo "<input type='hidden' name='currency' value='".$worldpay_cc."'>\n";
echo "<input type='hidden' name='futurePayType' value='regular'>\n";	
echo "<input type='hidden' name='authMode' value='E'>\n";
echo "<input type='hidden' name='accId1' value='12345678'>\n";
echo "<input type='hidden' name='option' value='1'>\n";
echo "<input type='hidden' name='startDelayUnit' value='3'>\n";
echo "<input type='hidden' name='startDelayMult' value='".$intrval."'>\n";
echo "<input type='hidden' name='intervalUnit' value='3'>\n";
echo "<input type='hidden' name='intervalMult' value='".$intrval."'>\n";
$xlink=str_replace("http://", "", strtolower($http_web));
$xlink=str_replace("https://", "", strtolower($xlink));
echo "<input type='hidden' name='MC_callback' value='".$xlink."/invoice_success.php'>\n";
echo "<input type='hidden' name='testMode' value='".$worldpay_demo."'>\n";
echo "<input type='hidden' name='amount' value='".$sub_total."'>\n";
echo "<input type='hidden' name='normalAmount' value='".sprintf("%01.2f", $total_due_reoccur)."'>\n";
}

 

echo "<input type='hidden' name='accId1' value='12345678'>\n";

 

this needs to be a unique number that worldpay issue to you for pre-auth mode.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated