Search code examples
phplaravel-4worldpay

Worldpay WorldpayException (400) CVC can't be null/empty


I have implemented world pay by using php sdk, i have set Worldpay.useTemplateForm({'reusable':true,}),it's working as I tried to use the generated token for my first order. My code is

$worldpay = new Worldpay('T_S_a61fda99-5c06-47fb-abc4-113db39c09d7');
$obj = array(
    "token" => "my-generated-toke", //worldpay.js 
    "orderDescription" => "your-order-description", 
    "amount" => 500, 
    "currencyCode" => "GBP",
    'name' => '',
    'reusable'=>true
);

But as I try for second order using the same token, it give me the following error:

Worldpay WorldpayException (400) CVC can't be null/empty


Solution

  • I have resolved the issue, please just login into world pay account with your credentials and then click on the following link.

    https://online.worldpay.com/settings/risk

    From there just turn off "Card Security Code check", So then you can reuse your token for multiple time.