Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Skin null does not exist

Tags:

adyen

From my controller, I'm trying to make a post request to https://test.adyen.com/hpp/select.shtml but I continue receiving this error

Error: Skin null does not exist

This is part of my code

$paramsRequest = array (
    'merchantReference' => 'reference',
    'paymentAmount' => 10,
    'currencyCode' => 'EUR',
    'shipBeforeDate' => '2017-11-29T13:42:40+1:00',
    'skinCode' => 'f8My4RJC',
    'merchantAccount' => 'TestNL076',
    'sessionValidity' => '2017-11-29T13:42:40+1:00',
    'merchantReturnData' => 'string',
    'shopperEmail' => '[email protected]',
);


$hcma = '8382E2...';

$paramsRequest['merchantSig'] = Util::calculateSha256Signature($hcma, $paramsRequest);

return $this->handlePostRequest($paramsRequest, 'https://test.adyen.com/hpp/select.shtml');

and to handle the request

protected function handlePostRequest($data, $url)
{
    $ch = curl_init();

    curl_setopt($ch, CURLOPT_URL, $url);

    curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));

    curl_setopt($ch, CURLOPT_HEADER, false);

    curl_setopt($ch, CURLOPT_USERPWD, 'admin' . ":" . 'password');

    curl_setopt($ch, CURLOPT_POST, count($data));

    curl_setopt($ch, CURLOPT_POSTFIELDS,json_encode($data));

    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

    $result = curl_exec($ch);

    $code = curl_getinfo($ch, CURLINFO_HTTP_CODE);

    curl_close($ch);

    return $result;
}
like image 786
Jorge Anzola Avatar asked Jun 27 '26 06:06

Jorge Anzola


1 Answers

Are you trying to perform a lookup of available payments? If so, use the end point.

https://test.adyen.com/hpp/directory.shtml 

Otherwise the select.shtml an endpoint to redirect shopper's browser when you want them to enter in information or send them to their bank. Here's link to adyen's local payment method docs.

like image 93
luke_b Avatar answered Jul 01 '26 04:07

luke_b