Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

1002

Help
vincent
2008-09-12
2013-04-22
  • vincent
    vincent
    2008-09-12

    Hey, I'm trying to implement this solution and i dont know why i get this message :
    object(stdClass)#6 (6) { ["Timestamp"]=>  string(20) "2008-09-12T15:43:41Z" ["Ack"]=>  string(7) "Failure" ["CorrelationID"]=>  string(13) "e8d78d9a59751" ["Errors"]=>  object(stdClass)#7 (4) { ["ShortMessage"]=>  string(14) "Security error" ["LongMessage"]=>  string(28) "Security header is not valid" ["ErrorCode"]=>  string(5) "10002" ["SeverityCode"]=>  string(5) "Error" } ["Version"]=>  string(3) "2.4" ["Build"]=>  string(6) "690663" }
    I searched on the internet and what they said is : Check your Login/Password !
    require_once('paypal_base.php');

    $API = new WebsitePaymentsPro();
    $API_USERNAME = "vincent.carbonie_api1.gmail.com";
    $API_PASSWORD = "7UW4GZCJUHAKBKS5";
    $API_SIGNATURE = "hpacAt5ALo0kml8fwH34OewXA90LhAVUAiPC9BjkCyDFQXbSkoZcgqH3";
    $API->prepare($API_USERNAME, $API_PASSWORD, $API_SIGNATURE);
    $Paypal = $API->selectOperation('SetExpressCheckout');
    $OrderTotal = 300.00;
    $ReturnURL = "http://phppaypalpro.sourceforge.net/return_url.php";
    $CancelURL = "http://phppaypalpro.sourceforge.net/cancel_url.php";
    $PaymentAction = "Sale"; // or Order
    $Paypal->setParams($OrderTotal, $ReturnURL, $CancelURL, $PaymentAction);
    $Paypal->execute();
    if ($Paypal->success())
    {
        var_dump($Paypal->getAPIResponse());
    } else
    {
        var_dump($Paypal->getAPIException());
    }

    Here what i tried to execute. (I changed password and signature)
    The only solution to me is that I NEED the "Website payment pro" solution i'm actually with the "Website payment standard" solution

    Please Help ME !