I am trying to create recurring profile
in paypal
Here is my code
<?php
$qs = "";
$username = "xxx";
$password = "xxx";
$signature = "xxx";
$qs = "USER=".$username;
$qs .= "&PWD=".$password;
$qs .= "&SIGNATURE=".$signature;
$qs .= "&METHOD=CreateRecurringPaymentsProfile";
$qs .= "&VERSION=86";
$qs .= "&PAYERID=1";
$qs .= "&PROFILESTARTDATE=2015-08-13T";
$qs .= "&DESC=recurrning payment";
$qs .= "&BILLINGPERIOD=Month";
$qs .= "&BILLINGFREQUENCY=1";
$qs .= "&AMT=10";
$qs .= "&CURRENCYCODE=AUD";
$qs .= "&COUNTRYCODE=AU";
$qs .= "&MAXFAILEDPAYMENTS=3";
header('location:https://api-3t.sandbox.paypal.com/nvp?'.$qs);
?>
From above code,i got the error security header is not valid
Can anybody help me