Test

"credit_application_link", "Identification[api_key]" => $api, "Identification[InstallationID]" => $instalID, "Identification[RetailerUniqueRef]" => $retailerRef, "Goods[Description]" => $description, "Goods[Price]" => $price, "Finance[Code]" => $product, "Finance[Deposit]" => $deposit, //Optional Fields "Consumer[Title]" => $title, "Consumer[Forename]" => $fname, "Consumer[Surname]" => $lname, "Consumer[DateOfBirthDay]" => 05, "Consumer[DateOfBirthMonth]" => 10, "Consumer[DateOfBirthYear]" => 1980, "Consumer[MaritalStatus]" => "M", "Consumer[MobileNumber]" => "07782446791", "Consumer[EmailAddress]" => "test@test.com", "Consumer[ResidentialStatus]" => "H", "Consumer[Employment][Status]" => "P", "Consumer[Employment][Occupation]" => "Test Job", "Consumer[Employment][EmployerName]" => "Test Employer", "Consumer[Employment][Years]" => "8", "Consumer[Employment][Salary]" => "27500", "Consumer[Bank][AccountName]" => "Test Bank", "Consumer[Bank][AccountNumber]" => "12345678", "Consumer[Bank][SortCode]" => "123456", "Consumer[Bank][Years]" => "8" ); function httpPost($interface, $postFields) { $curlSession = curl_init(); curl_setopt_array($curlSession, array( CURLOPT_RETURNTRANSFER => true, CURLOPT_URL => $interface, CURLOPT_HEADER => 0, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_POST => 1, CURLOPT_POSTFIELDS => $postFields, CURLOPT_TIMEOUT => 180, CURLOPT_FOLLOWLOCATION => 1 )); $curl_response = curl_exec($curlSession); if ($errno = curl_errno($curlSession)) { $error_message = curl_strerror($errno); echo $errorOutput = "cURL error ({$errno}):\n {$error_message}"; echo $errorOutput; } else { return $curl_response; } } $url = httpPost($interface, $postFields); header('Location: ' . $url); } ?> Deko Demo API Request

Deko Demo API Form

Property Name
Value
API
Installation ID
Finance code
Description
Price
Deposit Percentage
First Name
Last Name