Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

LinkPoint error - Urgent


gscreations

Recommended Posts

I've set up a clients site, so that one of the products is on a 10 day free trial

 

This is a recurring payment product so I set the startdate for LinkPoint to be start 10 days from the order. This all works I see the order come through in LinkPoint BUT

I get an error message, the standard LinkPoint error, error in processing, but no error code after that.

 

Anyone know why this is happening and how to fix it.

Link to comment
Share on other sites

I put this code in the linkpointms1.php file:

 

around line

//check for product id 28 in cart

if ($cart->in_cart('28')){

$week = strtotime("+10 days");

$today = date("Ymd", $week);

}else{

$today = 'immediate';

}

 

if ($recurring == 'true'){

$myorder["action"] = "SUBMIT";

$myorder["installments"] = "99";

$myorder["threshold"] = "3";

$myorder["startdate"] = $today;

$myorder["periodicity"] = "monthly";

$myorder["recurring"] = "RECURRING_TRANSACTION";

$myresult=$mylpphp->SetPeriodic($myorder);

 

This works ive checked it, thats the only change I've made to LinkPoint code and I get an error back, even though LinkPoint recieves everything ok.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...