{"templateId":"markdown","versions":[{"version":"v4","label":"v4","link":"/products/card-verifications/v4/verifications","default":false,"active":false,"folderId":"17a671ff"},{"version":"v5","label":"v5","link":"/products/card-verifications/v5/verifications","default":false,"active":false,"folderId":"17a671ff"},{"version":"v6","label":"v6 (Latest)","link":"/products/card-verifications/verifications","default":true,"active":true,"folderId":"17a671ff"}],"sharedDataIds":{"sidebar":"sidebar-products/card-verifications/sidebars.yaml","current-catalog-info":"current-catalog-info-/products/card-verifications/openapi","api-docs-products/card-verifications/@v6/openapi.yaml":"api-docs-products/card-verifications/@v6/openapi.yaml"},"props":{"metadata":{"markdoc":{"tagList":["partial","tabs","tab","openapi-code-sample","admonition","code-snippet"]},"custom_product":"Card Verifications","type":"markdown"},"seo":{"title":"Verify a customer's card","description":"Worldpay for Developers - docs, code examples, resources and tools. Everything you need to build your omnichannel payment solution.","siteUrl":"https://docs.worldpay-bsh.securedataplatform.co.uk","image":"/access/assets/worldpay-logo-light.21b7daf79984773a9fcd7d4fbcb07ae5289dfffd6023c4c3dca720c7058e53dc.33f780a6.svg","keywords":"documentation, api, openapi, sdks, developer, payments, json, payouts, 3ds","jsonLd":{"@context":"https://schema.org","@type":"Organization","url":"https://docs.worldpay-bsh.securedataplatform.co.uk/access","name":"Worldpay"},"meta":[{"name":"google-site-verification","content":"zjziIKaP3ImsqsfhYnEBnq1R85UabiSwl7HTXuwtZuo"},{"name":"doc_product","content":"Access"},{"name":"doc_category","content":"Documentation"}],"llmstxt":{"hide":false,"sections":[{"title":"Payments API","description":"Payment orchestration API combining fraud assessment, 3ds authentication, SCA exemptions, Worldpay Token creation and a card or wallet based payment.","includeFiles":["products/payments/@20240601/**/*"]},{"title":"Payment Queries API","description":"Querying your payments data, based on a variety of parameters.","includeFiles":["products/payment-queries/@v1/**/*"]},{"title":"Card BIN Data API","description":"Provides detailed information about a card.","includeFiles":["products/card-bin/@v1/**/*"]},{"title":"3DS Authentication API","description":"Request 3DS authentication to protect against fraud, be SCA compliant and to shift liability using this standalone API.","includeFiles":["products/3ds/@v3/**/*"]},{"title":"FraudSight API","description":"Request a risk assessment and receive a response with an outcome (e.g. lowRisk) using this standalone API.","includeFiles":["products/fraudsight/@v1/**/*"]},{"title":"Checkout SDK","description":"Integrate using our clientside SDKs for both web and native devices. Benefit from SAQ-A/PCI-SSF compliance.","includeFiles":["products/checkout/web/@v2/**/*","products/checkout/ios/@v4/**/*","products/checkout/android/@v4/**/*","products/checkout/react-native/@v3/**/*","products/checkout/flutter/@v1/**/*"]},{"title":"Tokens API","description":"Minimizes the exposure of sensitive card details and increases the security of your customer's card details.","includeFiles":["products/tokens/@v3/**/*"]},{"title":"Card Payments API","description":"Request a card payment using this standalone API, requires separate requests for 3DS, Fraud assessment etc.","includeFiles":["products/card-payments/@v7/**/*"]},{"title":"Card Verifications API","description":"Verify your customer's card to maximize your authentication rates.","includeFiles":["products/card-verifications/@v6/**/*"]},{"title":"Account Payouts API","description":"Send funds to your customer's bank accounts and search for payouts using parameters.","includeFiles":["products/account-payouts/@20250101/**/*"]},{"title":"APMs","description":"Pay using eWallets, bank transfers, direct debits, local card schemes, Postpay and eInvoice/ Buy Now Pay Later.","includeFiles":["products/apms/@20240701/**/*"]},{"title":"Balance API","description":"Request your account details for a single account or all accounts under an entity.","includeFiles":["products/balance/@20250101/**/*"]},{"title":"Card Payouts API","description":"Send funds to your customer's cards.","includeFiles":["products/card-payouts/@v4/**/*"]},{"title":"Events (Webhooks)","description":"Receive status updates from Access Worldpay by setting up a webhook.","includeFiles":["products/events/@v1/**/*"]},{"title":"FX API","description":"Manage Foreign Exchange (FX) on your payments.","includeFiles":["products/fx/@v1/**/*"]},{"title":"Hosted Payment Pages (HPP) API","description":"Our low-code option to take payments securely at the lowest PCI compliance level - SAQ A.","includeFiles":["products/hosted-payment-pages/@v1/**/*"]},{"title":"Money Transfers API","description":"Money Transfer OCTs (Original Credit Transaction) allow funds to be pushed to an eligible card in 30 minutes or less.","includeFiles":["products/money-transfers/@v1/**/*"]},{"title":"Parties API","description":"Create parties, manage your payout instruments and beneficial owners and carry out identity verification checks.","includeFiles":["products/parties/@20250101/**/*"]},{"title":"SCA Exemptions API","description":"Maximize a frictionless checkout experience by using issuer data insights to apply exemptions.","includeFiles":["products/sca-exemptions/@v1/**/*"]},{"title":"Split Payments API","description":"Divide funds from a single payment amongst yourself and your parties/sellers.","includeFiles":["products/split-payments/@20250625/**/*"]},{"title":"Statements API","description":"Retrieve your account statement and see individual entries for all credits and debits.","includeFiles":["products/statements/@20250101/**/*"]},{"title":"Transfers API","description":"Transfer funds from source account to target account.","includeFiles":["products/transfers/@20250101/**/*"]},{"title":"Verified Tokens API","description":"Verified Tokens ensures that your customer's payment details are valid and CIT compliant when creating a token.","includeFiles":["products/verified-tokens/@v3/**/*"]}]}},"dynamicMarkdocComponents":["openapi"],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Last updated"]},": 05 August 2026 | ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/card-verifications/changelog/"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Change log"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"verify-a-customers-card","__idx":0},"children":["Verify a customer's card"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Verify your customer's card or make a name inquiry."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"card-verification","__idx":1},"children":["Card Verification"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Verify and validate your customer's card details to protect you against fraud."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"example-request","__idx":2},"children":["Example request"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]},"  ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications"]}]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Verification - Card","disable":false},"children":[{"$$mdtype":"Tag","name":"OpenApiCodeSample","attributes":{"descriptionFile":"api-docs-products/card-verifications/@v6/openapi.yaml","operationId":"cardVerify","exampleKey":"Successful card verification for one-time and nominal retry","parameters":{},"environments":{},"codeSamplesResolved":[{"lang":"json","title":"Payload application/vnd.worldpay.cardverifications-v6+json","source":"{\n  \"type\": \"cardVerification\",\n  \"merchant\": {\n    \"entity\": \"default\"\n  },\n  \"transactionReference\": \"Memory265-13/08/1876\",\n  \"instruction\": {\n    \"nominalRetry\": true,\n    \"value\": {\n      \"currency\": \"GBP\"\n    },\n    \"narrative\": {\n      \"line1\": \"MindPalace\",\n      \"line2\": \"Memory\"\n    },\n    \"paymentInstrument\": {\n      \"type\": \"card/plain\",\n      \"cardHolderName\": \"Sherlock Holmes\",\n      \"expiryDate\": {\n        \"month\": 5,\n        \"year\": 2050\n      },\n      \"cardNumber\": \"4444333322221111\",\n      \"billingAddress\": {\n        \"address1\": \"221B Baker Street\",\n        \"address2\": \"Marylebone\",\n        \"address3\": \"Westminster\",\n        \"postalCode\": \"NW1 6XE\",\n        \"city\": \"Cambridge\",\n        \"countryCode\": \"GB\"\n      }\n    }\n  }\n}"},{"lang":"shell","title":"curl","source":"curl -i -X POST \\\n  https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications \\\n  -H 'Accept: application/vnd.worldpay.cardVerifications-v6+json' \\\n  -H 'Content-Type: application/vnd.worldpay.cardverifications-v6+json' \\\n  -d '{\n    \"type\": \"cardVerification\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"instruction\": {\n      \"nominalRetry\": true,\n      \"value\": {\n        \"currency\": \"GBP\"\n      },\n      \"narrative\": {\n        \"line1\": \"MindPalace\",\n        \"line2\": \"Memory\"\n      },\n      \"paymentInstrument\": {\n        \"type\": \"card/plain\",\n        \"cardHolderName\": \"Sherlock Holmes\",\n        \"expiryDate\": {\n          \"month\": 5,\n          \"year\": 2050\n        },\n        \"cardNumber\": \"4444333322221111\",\n        \"billingAddress\": {\n          \"address1\": \"221B Baker Street\",\n          \"address2\": \"Marylebone\",\n          \"address3\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"Cambridge\",\n          \"countryCode\": \"GB\"\n        }\n      }\n    }\n  }'"},{"lang":"python","title":"Python","source":"import requests\n\nurl = \"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\"\n\npayload = '''\n  {\n    \"type\": \"cardVerification\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"instruction\": {\n      \"nominalRetry\": true,\n      \"value\": {\n        \"currency\": \"GBP\"\n      },\n      \"narrative\": {\n        \"line1\": \"MindPalace\",\n        \"line2\": \"Memory\"\n      },\n      \"paymentInstrument\": {\n        \"type\": \"card/plain\",\n        \"cardHolderName\": \"Sherlock Holmes\",\n        \"expiryDate\": {\n          \"month\": 5,\n          \"year\": 2050\n        },\n        \"cardNumber\": \"4444333322221111\",\n        \"billingAddress\": {\n          \"address1\": \"221B Baker Street\",\n          \"address2\": \"Marylebone\",\n          \"address3\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"Cambridge\",\n          \"countryCode\": \"GB\"\n        }\n      }\n    }\n  }\n'''\n\nheaders = {\n  \"Accept\": \"application/vnd.worldpay.cardVerifications-v6+json\",\n  \"Content-Type\": \"application/vnd.worldpay.cardverifications-v6+json\"\n}\n\nresponse = requests.post(url, data=payload, headers=headers)\n\ndata = response.json()\nprint(data)"},{"lang":"java","title":"Java","source":"import java.net.*;\nimport java.net.http.*;\nimport java.util.*;\n\npublic class App {\n  public static void main(String[] args) throws Exception {\n    var httpClient = HttpClient.newBuilder().build();\n\n    var host = \"https://try.access.worldpay-bsh.securedataplatform.co.uk\";\n    var pathname = \"/cardVerifications\";\n    var request = HttpRequest.newBuilder()\n      .POST(HttpRequest.BodyPublishers.ofString(payload))\n      .uri(URI.create(host + pathname ))\n      .header(\"Accept\", \"application/vnd.worldpay.cardVerifications-v6+json\")\n      .header(\"Content-Type\", \"application/vnd.worldpay.cardverifications-v6+json\")\n      .build();\n\n    var response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());\n\n    System.out.println(response.body());\n  }\n}"},{"lang":"javascript","title":"Node.js","source":"import fetch from 'node-fetch';\n\nasync function run() {\n  const resp = await fetch(\n    `https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications`,\n    {\n      method: 'POST',\n      headers: {\n        Accept: 'application/vnd.worldpay.cardVerifications-v6+json',\n        'Content-Type': 'application/vnd.worldpay.cardverifications-v6+json'\n      },\n      body: `{\n          \"type\": \"cardVerification\",\n          \"merchant\": {\n            \"entity\": \"default\"\n          },\n          \"transactionReference\": \"Memory265-13/08/1876\",\n          \"instruction\": {\n            \"nominalRetry\": true,\n            \"value\": {\n              \"currency\": \"GBP\"\n            },\n            \"narrative\": {\n              \"line1\": \"MindPalace\",\n              \"line2\": \"Memory\"\n            },\n            \"paymentInstrument\": {\n              \"type\": \"card/plain\",\n              \"cardHolderName\": \"Sherlock Holmes\",\n              \"expiryDate\": {\n                \"month\": 5,\n                \"year\": 2050\n              },\n              \"cardNumber\": \"4444333322221111\",\n              \"billingAddress\": {\n                \"address1\": \"221B Baker Street\",\n                \"address2\": \"Marylebone\",\n                \"address3\": \"Westminster\",\n                \"postalCode\": \"NW1 6XE\",\n                \"city\": \"Cambridge\",\n                \"countryCode\": \"GB\"\n              }\n            }\n          }\n        }`\n    }\n  );\n\n  const data = await resp.text();\n  console.log(data);\n}\n\nrun();"},{"lang":"go","title":"Go","source":"package main\n\nimport (\n  \"fmt\"\n  \"strings\"\n  \"net/http\"\n  \"io/ioutil\"\n)\n\nfunc main() {\n  reqUrl := \"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\"\n  payload := strings.NewReader(\"{\\n  \\\"type\\\": \\\"cardVerification\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\\n  \\\"instruction\\\": {\\n    \\\"nominalRetry\\\": true,\\n    \\\"value\\\": {\\n      \\\"currency\\\": \\\"GBP\\\"\\n    },\\n    \\\"narrative\\\": {\\n      \\\"line1\\\": \\\"MindPalace\\\",\\n      \\\"line2\\\": \\\"Memory\\\"\\n    },\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/plain\\\",\\n      \\\"cardHolderName\\\": \\\"Sherlock Holmes\\\",\\n      \\\"expiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2050\\n      },\\n      \\\"cardNumber\\\": \\\"4444333322221111\\\",\\n      \\\"billingAddress\\\": {\\n        \\\"address1\\\": \\\"221B Baker Street\\\",\\n        \\\"address2\\\": \\\"Marylebone\\\",\\n        \\\"address3\\\": \\\"Westminster\\\",\\n        \\\"postalCode\\\": \\\"NW1 6XE\\\",\\n        \\\"city\\\": \\\"Cambridge\\\",\\n        \\\"countryCode\\\": \\\"GB\\\"\\n      }\\n    }\\n  }\\n}\")\n  req, err := http.NewRequest(\"POST\", reqUrl, payload)\n  if err != nil {\n    panic(err)\n  }\n  req.Header.Add(\"Accept\", \"application/vnd.worldpay.cardVerifications-v6+json\")\n  req.Header.Add(\"Content-Type\", \"application/vnd.worldpay.cardverifications-v6+json\")\n  res, err := http.DefaultClient.Do(req)\n  if err != nil {\n    panic(err)\n  }\n  defer res.Body.Close()\n  body, err := ioutil.ReadAll(res.Body)\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Println(res)\n  fmt.Println(string(body))\n}"},{"lang":"php","title":"PHP","source":"/**\n * Requires libcurl\n */\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n  CURLOPT_HTTPHEADER => [\n    \"Accept: application/vnd.worldpay.cardVerifications-v6+json\",\n    \"Content-Type: application/vnd.worldpay.cardverifications-v6+json\"\n  ],\n  CURLOPT_POSTFIELDS => \"{\\n  \\\"type\\\": \\\"cardVerification\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\\n  \\\"instruction\\\": {\\n    \\\"nominalRetry\\\": true,\\n    \\\"value\\\": {\\n      \\\"currency\\\": \\\"GBP\\\"\\n    },\\n    \\\"narrative\\\": {\\n      \\\"line1\\\": \\\"MindPalace\\\",\\n      \\\"line2\\\": \\\"Memory\\\"\\n    },\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/plain\\\",\\n      \\\"cardHolderName\\\": \\\"Sherlock Holmes\\\",\\n      \\\"expiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2050\\n      },\\n      \\\"cardNumber\\\": \\\"4444333322221111\\\",\\n      \\\"billingAddress\\\": {\\n        \\\"address1\\\": \\\"221B Baker Street\\\",\\n        \\\"address2\\\": \\\"Marylebone\\\",\\n        \\\"address3\\\": \\\"Westminster\\\",\\n        \\\"postalCode\\\": \\\"NW1 6XE\\\",\\n        \\\"city\\\": \\\"Cambridge\\\",\\n        \\\"countryCode\\\": \\\"GB\\\"\\n      }\\n    }\\n  }\\n}\",\n  CURLOPT_URL => \"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\",\n  CURLOPT_RETURNTRANSFER => true,\n  CURLOPT_CUSTOMREQUEST => \"POST\",\n]);\n\n$response = curl_exec($curl);\n$error = curl_error($curl);\n\ncurl_close($curl);\n\nif ($error) {\n  echo \"cURL Error #:\" . $error;\n} else {\n  echo $response;\n}"},{"lang":"ruby","title":"Ruby","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI('https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications')\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest['Accept'] = 'application/vnd.worldpay.cardVerifications-v6+json'\nrequest['Content-Type'] = 'application/vnd.worldpay.cardverifications-v6+json'\nrequest.body = \"{\\n  \\\"type\\\": \\\"cardVerification\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\\n  \\\"instruction\\\": {\\n    \\\"nominalRetry\\\": true,\\n    \\\"value\\\": {\\n      \\\"currency\\\": \\\"GBP\\\"\\n    },\\n    \\\"narrative\\\": {\\n      \\\"line1\\\": \\\"MindPalace\\\",\\n      \\\"line2\\\": \\\"Memory\\\"\\n    },\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/plain\\\",\\n      \\\"cardHolderName\\\": \\\"Sherlock Holmes\\\",\\n      \\\"expiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2050\\n      },\\n      \\\"cardNumber\\\": \\\"4444333322221111\\\",\\n      \\\"billingAddress\\\": {\\n        \\\"address1\\\": \\\"221B Baker Street\\\",\\n        \\\"address2\\\": \\\"Marylebone\\\",\\n        \\\"address3\\\": \\\"Westminster\\\",\\n        \\\"postalCode\\\": \\\"NW1 6XE\\\",\\n        \\\"city\\\": \\\"Cambridge\\\",\\n        \\\"countryCode\\\": \\\"GB\\\"\\n      }\\n    }\\n  }\\n}\"\n\nresponse = http.request(request)\nputs response.read_body\n"},{"lang":"csharp","title":"C#","source":"using System;\nusing System.Net.Http;\nusing System.Threading.Tasks;\n\npublic class Program\n{\n  public static async Task Main()\n  {\n    System.Net.Http.HttpClient client = new()\n    {\n      DefaultRequestHeaders =\n      {\n        {\"Accept\", \"application/vnd.worldpay.cardVerifications-v6+json\"},\n      }\n    };\n\n    using HttpResponseMessage request = await client.PostAsync(\"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\", postData);\n    string response = await request.Content.ReadAsStringAsync();\n\n    Console.WriteLine(response);\n  }\n}"}]},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Verification - Token","disable":false},"children":[{"$$mdtype":"Tag","name":"OpenApiCodeSample","attributes":{"descriptionFile":"api-docs-products/card-verifications/@v6/openapi.yaml","operationId":"cardVerify","exampleKey":"Successful card verification with a token","parameters":{},"environments":{},"codeSamplesResolved":[{"lang":"json","title":"Payload application/vnd.worldpay.cardverifications-v6+json","source":"{\n  \"type\": \"cardVerification\",\n  \"merchant\": {\n    \"entity\": \"default\"\n  },\n  \"transactionReference\": \"Memory265-13/08/1876\",\n  \"instruction\": {\n    \"consumerBillPayment\": true,\n    \"value\": {\n      \"amount\": 250,\n      \"currency\": \"GBP\"\n    },\n    \"narrative\": {\n      \"line1\": \"MindPalace\",\n      \"line2\": \"Memory\"\n    },\n    \"paymentInstrument\": {\n      \"type\": \"card/token\",\n      \"href\": \"https://tokens/token\",\n      \"cvc\": \"101\"\n    }\n  }\n}"},{"lang":"shell","title":"curl","source":"curl -i -X POST \\\n  https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications \\\n  -H 'Accept: application/vnd.worldpay.cardVerifications-v6+json' \\\n  -H 'Content-Type: application/vnd.worldpay.cardverifications-v6+json' \\\n  -d '{\n    \"type\": \"cardVerification\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"instruction\": {\n      \"consumerBillPayment\": true,\n      \"value\": {\n        \"amount\": 250,\n        \"currency\": \"GBP\"\n      },\n      \"narrative\": {\n        \"line1\": \"MindPalace\",\n        \"line2\": \"Memory\"\n      },\n      \"paymentInstrument\": {\n        \"type\": \"card/token\",\n        \"href\": \"https://tokens/token\",\n        \"cvc\": \"101\"\n      }\n    }\n  }'"},{"lang":"python","title":"Python","source":"import requests\n\nurl = \"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\"\n\npayload = '''\n  {\n    \"type\": \"cardVerification\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"instruction\": {\n      \"consumerBillPayment\": true,\n      \"value\": {\n        \"amount\": 250,\n        \"currency\": \"GBP\"\n      },\n      \"narrative\": {\n        \"line1\": \"MindPalace\",\n        \"line2\": \"Memory\"\n      },\n      \"paymentInstrument\": {\n        \"type\": \"card/token\",\n        \"href\": \"https://tokens/token\",\n        \"cvc\": \"101\"\n      }\n    }\n  }\n'''\n\nheaders = {\n  \"Accept\": \"application/vnd.worldpay.cardVerifications-v6+json\",\n  \"Content-Type\": \"application/vnd.worldpay.cardverifications-v6+json\"\n}\n\nresponse = requests.post(url, data=payload, headers=headers)\n\ndata = response.json()\nprint(data)"},{"lang":"java","title":"Java","source":"import java.net.*;\nimport java.net.http.*;\nimport java.util.*;\n\npublic class App {\n  public static void main(String[] args) throws Exception {\n    var httpClient = HttpClient.newBuilder().build();\n\n    var host = \"https://try.access.worldpay-bsh.securedataplatform.co.uk\";\n    var pathname = \"/cardVerifications\";\n    var request = HttpRequest.newBuilder()\n      .POST(HttpRequest.BodyPublishers.ofString(payload))\n      .uri(URI.create(host + pathname ))\n      .header(\"Accept\", \"application/vnd.worldpay.cardVerifications-v6+json\")\n      .header(\"Content-Type\", \"application/vnd.worldpay.cardverifications-v6+json\")\n      .build();\n\n    var response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());\n\n    System.out.println(response.body());\n  }\n}"},{"lang":"javascript","title":"Node.js","source":"import fetch from 'node-fetch';\n\nasync function run() {\n  const resp = await fetch(\n    `https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications`,\n    {\n      method: 'POST',\n      headers: {\n        Accept: 'application/vnd.worldpay.cardVerifications-v6+json',\n        'Content-Type': 'application/vnd.worldpay.cardverifications-v6+json'\n      },\n      body: `{\n          \"type\": \"cardVerification\",\n          \"merchant\": {\n            \"entity\": \"default\"\n          },\n          \"transactionReference\": \"Memory265-13/08/1876\",\n          \"instruction\": {\n            \"consumerBillPayment\": true,\n            \"value\": {\n              \"amount\": 250,\n              \"currency\": \"GBP\"\n            },\n            \"narrative\": {\n              \"line1\": \"MindPalace\",\n              \"line2\": \"Memory\"\n            },\n            \"paymentInstrument\": {\n              \"type\": \"card/token\",\n              \"href\": \"https://tokens/token\",\n              \"cvc\": \"101\"\n            }\n          }\n        }`\n    }\n  );\n\n  const data = await resp.text();\n  console.log(data);\n}\n\nrun();"},{"lang":"go","title":"Go","source":"package main\n\nimport (\n  \"fmt\"\n  \"strings\"\n  \"net/http\"\n  \"io/ioutil\"\n)\n\nfunc main() {\n  reqUrl := \"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\"\n  payload := strings.NewReader(\"{\\n  \\\"type\\\": \\\"cardVerification\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\\n  \\\"instruction\\\": {\\n    \\\"consumerBillPayment\\\": true,\\n    \\\"value\\\": {\\n      \\\"amount\\\": 250,\\n      \\\"currency\\\": \\\"GBP\\\"\\n    },\\n    \\\"narrative\\\": {\\n      \\\"line1\\\": \\\"MindPalace\\\",\\n      \\\"line2\\\": \\\"Memory\\\"\\n    },\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/token\\\",\\n      \\\"href\\\": \\\"https://tokens/token\\\",\\n      \\\"cvc\\\": \\\"101\\\"\\n    }\\n  }\\n}\")\n  req, err := http.NewRequest(\"POST\", reqUrl, payload)\n  if err != nil {\n    panic(err)\n  }\n  req.Header.Add(\"Accept\", \"application/vnd.worldpay.cardVerifications-v6+json\")\n  req.Header.Add(\"Content-Type\", \"application/vnd.worldpay.cardverifications-v6+json\")\n  res, err := http.DefaultClient.Do(req)\n  if err != nil {\n    panic(err)\n  }\n  defer res.Body.Close()\n  body, err := ioutil.ReadAll(res.Body)\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Println(res)\n  fmt.Println(string(body))\n}"},{"lang":"php","title":"PHP","source":"/**\n * Requires libcurl\n */\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n  CURLOPT_HTTPHEADER => [\n    \"Accept: application/vnd.worldpay.cardVerifications-v6+json\",\n    \"Content-Type: application/vnd.worldpay.cardverifications-v6+json\"\n  ],\n  CURLOPT_POSTFIELDS => \"{\\n  \\\"type\\\": \\\"cardVerification\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\\n  \\\"instruction\\\": {\\n    \\\"consumerBillPayment\\\": true,\\n    \\\"value\\\": {\\n      \\\"amount\\\": 250,\\n      \\\"currency\\\": \\\"GBP\\\"\\n    },\\n    \\\"narrative\\\": {\\n      \\\"line1\\\": \\\"MindPalace\\\",\\n      \\\"line2\\\": \\\"Memory\\\"\\n    },\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/token\\\",\\n      \\\"href\\\": \\\"https://tokens/token\\\",\\n      \\\"cvc\\\": \\\"101\\\"\\n    }\\n  }\\n}\",\n  CURLOPT_URL => \"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\",\n  CURLOPT_RETURNTRANSFER => true,\n  CURLOPT_CUSTOMREQUEST => \"POST\",\n]);\n\n$response = curl_exec($curl);\n$error = curl_error($curl);\n\ncurl_close($curl);\n\nif ($error) {\n  echo \"cURL Error #:\" . $error;\n} else {\n  echo $response;\n}"},{"lang":"ruby","title":"Ruby","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI('https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications')\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest['Accept'] = 'application/vnd.worldpay.cardVerifications-v6+json'\nrequest['Content-Type'] = 'application/vnd.worldpay.cardverifications-v6+json'\nrequest.body = \"{\\n  \\\"type\\\": \\\"cardVerification\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\\n  \\\"instruction\\\": {\\n    \\\"consumerBillPayment\\\": true,\\n    \\\"value\\\": {\\n      \\\"amount\\\": 250,\\n      \\\"currency\\\": \\\"GBP\\\"\\n    },\\n    \\\"narrative\\\": {\\n      \\\"line1\\\": \\\"MindPalace\\\",\\n      \\\"line2\\\": \\\"Memory\\\"\\n    },\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/token\\\",\\n      \\\"href\\\": \\\"https://tokens/token\\\",\\n      \\\"cvc\\\": \\\"101\\\"\\n    }\\n  }\\n}\"\n\nresponse = http.request(request)\nputs response.read_body\n"},{"lang":"csharp","title":"C#","source":"using System;\nusing System.Net.Http;\nusing System.Threading.Tasks;\n\npublic class Program\n{\n  public static async Task Main()\n  {\n    System.Net.Http.HttpClient client = new()\n    {\n      DefaultRequestHeaders =\n      {\n        {\"Accept\", \"application/vnd.worldpay.cardVerifications-v6+json\"},\n      }\n    };\n\n    using HttpResponseMessage request = await client.PostAsync(\"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\", postData);\n    string response = await request.Content.ReadAsStringAsync();\n\n    Console.WriteLine(response);\n  }\n}"}]},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Verification - Network Token","disable":false},"children":[{"$$mdtype":"Tag","name":"OpenApiCodeSample","attributes":{"descriptionFile":"api-docs-products/card-verifications/@v6/openapi.yaml","operationId":"cardVerify","exampleKey":"Successful card verification with a network token","parameters":{},"environments":{},"codeSamplesResolved":[{"lang":"json","title":"Payload application/vnd.worldpay.cardverifications-v6+json","source":"{\n  \"type\": \"cardVerification\",\n  \"merchant\": {\n    \"entity\": \"default\"\n  },\n  \"transactionReference\": \"Memory265-13/08/1876\",\n  \"instruction\": {\n    \"consumerBillPayment\": true,\n    \"value\": {\n      \"amount\": 250,\n      \"currency\": \"GBP\"\n    },\n    \"narrative\": {\n      \"line1\": \"MindPalace\",\n      \"line2\": \"Memory\"\n    },\n    \"paymentInstrument\": {\n      \"type\": \"card/networkToken\",\n      \"tokenNumber\": \"4444333322221111\",\n      \"expiryDate\": {\n        \"month\": 5,\n        \"year\": 2050\n      },\n      \"billingAddress\": {\n        \"address1\": \"221B Baker Street\",\n        \"address2\": \"Marylebone\",\n        \"address3\": \"Westminster\",\n        \"postalCode\": \"NW1 6XE\",\n        \"city\": \"Cambridge\",\n        \"countryCode\": \"GB\"\n      },\n      \"cardHolderName\": \"John Appleseed\"\n    },\n    \"customerAgreement\": {\n      \"type\": \"cardOnFile\",\n      \"storedCardUsage\": \"first\"\n    }\n  },\n  \"authentication\": {\n    \"threeDS\": {\n      \"eci\": \"05\",\n      \"version\": \"2.1.0\",\n      \"authenticationValue\": \"MAAAAAAAAAAAAAAAAAAAAAAAAAA=\",\n      \"transactionId\": \"c5b808e7-1de1-4069-a17b-f70d3b3b1645\"\n    },\n    \"networkToken\": {\n      \"cryptogram\": \"MAAAAAAAAAAAAAAAAAAAAAAAAAB=\",\n      \"eci\": \"06\"\n    }\n  }\n}"},{"lang":"shell","title":"curl","source":"curl -i -X POST \\\n  https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications \\\n  -H 'Accept: application/vnd.worldpay.cardVerifications-v6+json' \\\n  -H 'Content-Type: application/vnd.worldpay.cardverifications-v6+json' \\\n  -d '{\n    \"type\": \"cardVerification\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"instruction\": {\n      \"consumerBillPayment\": true,\n      \"value\": {\n        \"amount\": 250,\n        \"currency\": \"GBP\"\n      },\n      \"narrative\": {\n        \"line1\": \"MindPalace\",\n        \"line2\": \"Memory\"\n      },\n      \"paymentInstrument\": {\n        \"type\": \"card/networkToken\",\n        \"tokenNumber\": \"4444333322221111\",\n        \"expiryDate\": {\n          \"month\": 5,\n          \"year\": 2050\n        },\n        \"billingAddress\": {\n          \"address1\": \"221B Baker Street\",\n          \"address2\": \"Marylebone\",\n          \"address3\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"Cambridge\",\n          \"countryCode\": \"GB\"\n        },\n        \"cardHolderName\": \"John Appleseed\"\n      },\n      \"customerAgreement\": {\n        \"type\": \"cardOnFile\",\n        \"storedCardUsage\": \"first\"\n      }\n    },\n    \"authentication\": {\n      \"threeDS\": {\n        \"eci\": \"05\",\n        \"version\": \"2.1.0\",\n        \"authenticationValue\": \"MAAAAAAAAAAAAAAAAAAAAAAAAAA=\",\n        \"transactionId\": \"c5b808e7-1de1-4069-a17b-f70d3b3b1645\"\n      },\n      \"networkToken\": {\n        \"cryptogram\": \"MAAAAAAAAAAAAAAAAAAAAAAAAAB=\",\n        \"eci\": \"06\"\n      }\n    }\n  }'"},{"lang":"python","title":"Python","source":"import requests\n\nurl = \"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\"\n\npayload = '''\n  {\n    \"type\": \"cardVerification\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"instruction\": {\n      \"consumerBillPayment\": true,\n      \"value\": {\n        \"amount\": 250,\n        \"currency\": \"GBP\"\n      },\n      \"narrative\": {\n        \"line1\": \"MindPalace\",\n        \"line2\": \"Memory\"\n      },\n      \"paymentInstrument\": {\n        \"type\": \"card/networkToken\",\n        \"tokenNumber\": \"4444333322221111\",\n        \"expiryDate\": {\n          \"month\": 5,\n          \"year\": 2050\n        },\n        \"billingAddress\": {\n          \"address1\": \"221B Baker Street\",\n          \"address2\": \"Marylebone\",\n          \"address3\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"Cambridge\",\n          \"countryCode\": \"GB\"\n        },\n        \"cardHolderName\": \"John Appleseed\"\n      },\n      \"customerAgreement\": {\n        \"type\": \"cardOnFile\",\n        \"storedCardUsage\": \"first\"\n      }\n    },\n    \"authentication\": {\n      \"threeDS\": {\n        \"eci\": \"05\",\n        \"version\": \"2.1.0\",\n        \"authenticationValue\": \"MAAAAAAAAAAAAAAAAAAAAAAAAAA=\",\n        \"transactionId\": \"c5b808e7-1de1-4069-a17b-f70d3b3b1645\"\n      },\n      \"networkToken\": {\n        \"cryptogram\": \"MAAAAAAAAAAAAAAAAAAAAAAAAAB=\",\n        \"eci\": \"06\"\n      }\n    }\n  }\n'''\n\nheaders = {\n  \"Accept\": \"application/vnd.worldpay.cardVerifications-v6+json\",\n  \"Content-Type\": \"application/vnd.worldpay.cardverifications-v6+json\"\n}\n\nresponse = requests.post(url, data=payload, headers=headers)\n\ndata = response.json()\nprint(data)"},{"lang":"java","title":"Java","source":"import java.net.*;\nimport java.net.http.*;\nimport java.util.*;\n\npublic class App {\n  public static void main(String[] args) throws Exception {\n    var httpClient = HttpClient.newBuilder().build();\n\n    var host = \"https://try.access.worldpay-bsh.securedataplatform.co.uk\";\n    var pathname = \"/cardVerifications\";\n    var request = HttpRequest.newBuilder()\n      .POST(HttpRequest.BodyPublishers.ofString(payload))\n      .uri(URI.create(host + pathname ))\n      .header(\"Accept\", \"application/vnd.worldpay.cardVerifications-v6+json\")\n      .header(\"Content-Type\", \"application/vnd.worldpay.cardverifications-v6+json\")\n      .build();\n\n    var response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());\n\n    System.out.println(response.body());\n  }\n}"},{"lang":"javascript","title":"Node.js","source":"import fetch from 'node-fetch';\n\nasync function run() {\n  const resp = await fetch(\n    `https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications`,\n    {\n      method: 'POST',\n      headers: {\n        Accept: 'application/vnd.worldpay.cardVerifications-v6+json',\n        'Content-Type': 'application/vnd.worldpay.cardverifications-v6+json'\n      },\n      body: `{\n          \"type\": \"cardVerification\",\n          \"merchant\": {\n            \"entity\": \"default\"\n          },\n          \"transactionReference\": \"Memory265-13/08/1876\",\n          \"instruction\": {\n            \"consumerBillPayment\": true,\n            \"value\": {\n              \"amount\": 250,\n              \"currency\": \"GBP\"\n            },\n            \"narrative\": {\n              \"line1\": \"MindPalace\",\n              \"line2\": \"Memory\"\n            },\n            \"paymentInstrument\": {\n              \"type\": \"card/networkToken\",\n              \"tokenNumber\": \"4444333322221111\",\n              \"expiryDate\": {\n                \"month\": 5,\n                \"year\": 2050\n              },\n              \"billingAddress\": {\n                \"address1\": \"221B Baker Street\",\n                \"address2\": \"Marylebone\",\n                \"address3\": \"Westminster\",\n                \"postalCode\": \"NW1 6XE\",\n                \"city\": \"Cambridge\",\n                \"countryCode\": \"GB\"\n              },\n              \"cardHolderName\": \"John Appleseed\"\n            },\n            \"customerAgreement\": {\n              \"type\": \"cardOnFile\",\n              \"storedCardUsage\": \"first\"\n            }\n          },\n          \"authentication\": {\n            \"threeDS\": {\n              \"eci\": \"05\",\n              \"version\": \"2.1.0\",\n              \"authenticationValue\": \"MAAAAAAAAAAAAAAAAAAAAAAAAAA=\",\n              \"transactionId\": \"c5b808e7-1de1-4069-a17b-f70d3b3b1645\"\n            },\n            \"networkToken\": {\n              \"cryptogram\": \"MAAAAAAAAAAAAAAAAAAAAAAAAAB=\",\n              \"eci\": \"06\"\n            }\n          }\n        }`\n    }\n  );\n\n  const data = await resp.text();\n  console.log(data);\n}\n\nrun();"},{"lang":"go","title":"Go","source":"package main\n\nimport (\n  \"fmt\"\n  \"strings\"\n  \"net/http\"\n  \"io/ioutil\"\n)\n\nfunc main() {\n  reqUrl := \"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\"\n  payload := strings.NewReader(\"{\\n  \\\"type\\\": \\\"cardVerification\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\\n  \\\"instruction\\\": {\\n    \\\"consumerBillPayment\\\": true,\\n    \\\"value\\\": {\\n      \\\"amount\\\": 250,\\n      \\\"currency\\\": \\\"GBP\\\"\\n    },\\n    \\\"narrative\\\": {\\n      \\\"line1\\\": \\\"MindPalace\\\",\\n      \\\"line2\\\": \\\"Memory\\\"\\n    },\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/networkToken\\\",\\n      \\\"tokenNumber\\\": \\\"4444333322221111\\\",\\n      \\\"expiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2050\\n      },\\n      \\\"billingAddress\\\": {\\n        \\\"address1\\\": \\\"221B Baker Street\\\",\\n        \\\"address2\\\": \\\"Marylebone\\\",\\n        \\\"address3\\\": \\\"Westminster\\\",\\n        \\\"postalCode\\\": \\\"NW1 6XE\\\",\\n        \\\"city\\\": \\\"Cambridge\\\",\\n        \\\"countryCode\\\": \\\"GB\\\"\\n      },\\n      \\\"cardHolderName\\\": \\\"John Appleseed\\\"\\n    },\\n    \\\"customerAgreement\\\": {\\n      \\\"type\\\": \\\"cardOnFile\\\",\\n      \\\"storedCardUsage\\\": \\\"first\\\"\\n    }\\n  },\\n  \\\"authentication\\\": {\\n    \\\"threeDS\\\": {\\n      \\\"eci\\\": \\\"05\\\",\\n      \\\"version\\\": \\\"2.1.0\\\",\\n      \\\"authenticationValue\\\": \\\"MAAAAAAAAAAAAAAAAAAAAAAAAAA=\\\",\\n      \\\"transactionId\\\": \\\"c5b808e7-1de1-4069-a17b-f70d3b3b1645\\\"\\n    },\\n    \\\"networkToken\\\": {\\n      \\\"cryptogram\\\": \\\"MAAAAAAAAAAAAAAAAAAAAAAAAAB=\\\",\\n      \\\"eci\\\": \\\"06\\\"\\n    }\\n  }\\n}\")\n  req, err := http.NewRequest(\"POST\", reqUrl, payload)\n  if err != nil {\n    panic(err)\n  }\n  req.Header.Add(\"Accept\", \"application/vnd.worldpay.cardVerifications-v6+json\")\n  req.Header.Add(\"Content-Type\", \"application/vnd.worldpay.cardverifications-v6+json\")\n  res, err := http.DefaultClient.Do(req)\n  if err != nil {\n    panic(err)\n  }\n  defer res.Body.Close()\n  body, err := ioutil.ReadAll(res.Body)\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Println(res)\n  fmt.Println(string(body))\n}"},{"lang":"php","title":"PHP","source":"/**\n * Requires libcurl\n */\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n  CURLOPT_HTTPHEADER => [\n    \"Accept: application/vnd.worldpay.cardVerifications-v6+json\",\n    \"Content-Type: application/vnd.worldpay.cardverifications-v6+json\"\n  ],\n  CURLOPT_POSTFIELDS => \"{\\n  \\\"type\\\": \\\"cardVerification\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\\n  \\\"instruction\\\": {\\n    \\\"consumerBillPayment\\\": true,\\n    \\\"value\\\": {\\n      \\\"amount\\\": 250,\\n      \\\"currency\\\": \\\"GBP\\\"\\n    },\\n    \\\"narrative\\\": {\\n      \\\"line1\\\": \\\"MindPalace\\\",\\n      \\\"line2\\\": \\\"Memory\\\"\\n    },\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/networkToken\\\",\\n      \\\"tokenNumber\\\": \\\"4444333322221111\\\",\\n      \\\"expiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2050\\n      },\\n      \\\"billingAddress\\\": {\\n        \\\"address1\\\": \\\"221B Baker Street\\\",\\n        \\\"address2\\\": \\\"Marylebone\\\",\\n        \\\"address3\\\": \\\"Westminster\\\",\\n        \\\"postalCode\\\": \\\"NW1 6XE\\\",\\n        \\\"city\\\": \\\"Cambridge\\\",\\n        \\\"countryCode\\\": \\\"GB\\\"\\n      },\\n      \\\"cardHolderName\\\": \\\"John Appleseed\\\"\\n    },\\n    \\\"customerAgreement\\\": {\\n      \\\"type\\\": \\\"cardOnFile\\\",\\n      \\\"storedCardUsage\\\": \\\"first\\\"\\n    }\\n  },\\n  \\\"authentication\\\": {\\n    \\\"threeDS\\\": {\\n      \\\"eci\\\": \\\"05\\\",\\n      \\\"version\\\": \\\"2.1.0\\\",\\n      \\\"authenticationValue\\\": \\\"MAAAAAAAAAAAAAAAAAAAAAAAAAA=\\\",\\n      \\\"transactionId\\\": \\\"c5b808e7-1de1-4069-a17b-f70d3b3b1645\\\"\\n    },\\n    \\\"networkToken\\\": {\\n      \\\"cryptogram\\\": \\\"MAAAAAAAAAAAAAAAAAAAAAAAAAB=\\\",\\n      \\\"eci\\\": \\\"06\\\"\\n    }\\n  }\\n}\",\n  CURLOPT_URL => \"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\",\n  CURLOPT_RETURNTRANSFER => true,\n  CURLOPT_CUSTOMREQUEST => \"POST\",\n]);\n\n$response = curl_exec($curl);\n$error = curl_error($curl);\n\ncurl_close($curl);\n\nif ($error) {\n  echo \"cURL Error #:\" . $error;\n} else {\n  echo $response;\n}"},{"lang":"ruby","title":"Ruby","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI('https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications')\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest['Accept'] = 'application/vnd.worldpay.cardVerifications-v6+json'\nrequest['Content-Type'] = 'application/vnd.worldpay.cardverifications-v6+json'\nrequest.body = \"{\\n  \\\"type\\\": \\\"cardVerification\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\\n  \\\"instruction\\\": {\\n    \\\"consumerBillPayment\\\": true,\\n    \\\"value\\\": {\\n      \\\"amount\\\": 250,\\n      \\\"currency\\\": \\\"GBP\\\"\\n    },\\n    \\\"narrative\\\": {\\n      \\\"line1\\\": \\\"MindPalace\\\",\\n      \\\"line2\\\": \\\"Memory\\\"\\n    },\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/networkToken\\\",\\n      \\\"tokenNumber\\\": \\\"4444333322221111\\\",\\n      \\\"expiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2050\\n      },\\n      \\\"billingAddress\\\": {\\n        \\\"address1\\\": \\\"221B Baker Street\\\",\\n        \\\"address2\\\": \\\"Marylebone\\\",\\n        \\\"address3\\\": \\\"Westminster\\\",\\n        \\\"postalCode\\\": \\\"NW1 6XE\\\",\\n        \\\"city\\\": \\\"Cambridge\\\",\\n        \\\"countryCode\\\": \\\"GB\\\"\\n      },\\n      \\\"cardHolderName\\\": \\\"John Appleseed\\\"\\n    },\\n    \\\"customerAgreement\\\": {\\n      \\\"type\\\": \\\"cardOnFile\\\",\\n      \\\"storedCardUsage\\\": \\\"first\\\"\\n    }\\n  },\\n  \\\"authentication\\\": {\\n    \\\"threeDS\\\": {\\n      \\\"eci\\\": \\\"05\\\",\\n      \\\"version\\\": \\\"2.1.0\\\",\\n      \\\"authenticationValue\\\": \\\"MAAAAAAAAAAAAAAAAAAAAAAAAAA=\\\",\\n      \\\"transactionId\\\": \\\"c5b808e7-1de1-4069-a17b-f70d3b3b1645\\\"\\n    },\\n    \\\"networkToken\\\": {\\n      \\\"cryptogram\\\": \\\"MAAAAAAAAAAAAAAAAAAAAAAAAAB=\\\",\\n      \\\"eci\\\": \\\"06\\\"\\n    }\\n  }\\n}\"\n\nresponse = http.request(request)\nputs response.read_body\n"},{"lang":"csharp","title":"C#","source":"using System;\nusing System.Net.Http;\nusing System.Threading.Tasks;\n\npublic class Program\n{\n  public static async Task Main()\n  {\n    System.Net.Http.HttpClient client = new()\n    {\n      DefaultRequestHeaders =\n      {\n        {\"Accept\", \"application/vnd.worldpay.cardVerifications-v6+json\"},\n      }\n    };\n\n    using HttpResponseMessage request = await client.PostAsync(\"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\", postData);\n    string response = await request.Content.ReadAsStringAsync();\n\n    Console.WriteLine(response);\n  }\n}"}]},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"parameter-descriptions","__idx":3},"children":["Parameter descriptions"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Parameter"},"children":["Parameter"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required?"},"children":["Required?"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["✅"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Defines the type of request. Use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cardVerification"]}," to verify a card or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["nameInquiry"]}," if you want to make a name inquiry."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["merchant"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["✅"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["An object that contains information about the merchant. See full object descriptions in our ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/card-verifications/openapi/other/cardverify#other/cardverify/t=request&path=&oneof=0/merchant"},"children":["API Reference"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["transactionReference"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["✅"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A ",{"$$mdtype":"Tag","name":"b","attributes":{},"children":["unique"]}," reference generated by you that is used to identify a payment throughout its lifecycle. See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/reference/formatting#transaction-reference-format"},"children":["transaction reference format"]},", for more details and the best practices."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["instruction"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["✅"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The object that contains all the payment information related to the verification request. See full object descriptions in our ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/card-verifications/openapi/other/cardverify#other/cardverify/t=request&path=&oneof=0/instruction"},"children":["API Reference"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["channel"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["❌"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The payment channel indicates the interaction of the cardholder with you. Supply a value of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["moto"]}," to process an authorization as a Mail Order or Telephone Order transaction. When channel is not provided, the default is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ecom"]}," One of: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ecom"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["moto"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["customerAgreement"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["❌"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["An object that contains specific customer agreements for the transaction. One of: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cardOnFile"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["subscription"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["installment"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["unscheduled"]},". See full object descriptions in our ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/card-verifications/openapi/other/cardverify#other/cardverify/t=request&path=&oneof=0/instruction/customeragreement"},"children":["API Reference"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["authentication"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["❌"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["An object containing information about the authentication of your customer. See full object descriptions in our ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/card-verifications/openapi/other/cardverify#other/cardverify/t=request&path=&oneof=0/authentication"},"children":["API Reference"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["recipient"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["❌"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The details of the recipient of the payment. See full object descriptions in our ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/card-verifications/openapi/other/cardverify#other/cardverify/t=request&path=&oneof=0/recipient"},"children":["API Reference"]},". ",{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Recommendation"},"children":[" We highly recommend you supply this, if your MCC is 6012 or 6051. Sending this field ensures you remain PSD2 compliant and avoid potential acquirer refusals. "]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Note"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can also find the full schema and more example requests in our ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/card-verifications/openapi/#other/cardVerify"},"children":["API Reference"]},"."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"risk-factors","__idx":4},"children":["Risk factors"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["We recommend you supply ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cvc"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["billingAddress"]}," to increase probability of a successful verification."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"name-inquiry","__idx":5},"children":["Name inquiry"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can now make a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["nameInquiry"]}," for Visa cards. This allows you to check the validity of the cardholder name provided."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This is important if you make payouts so you can check that the person receiving the payout is who they say they are."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"Prerequisite"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In order to make a name inquiry, your account must be enabled. Please contact your Worldpay Implementation Manager."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"example-request-1","__idx":6},"children":["Example request"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]},"  ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications"]}]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Name inquiry - card","disable":false},"children":[{"$$mdtype":"Tag","name":"OpenApiCodeSample","attributes":{"descriptionFile":"api-docs-products/card-verifications/@v6/openapi.yaml","operationId":"cardVerify","exampleKey":"Successful cardholder name inquiry with card details","parameters":{},"environments":{},"codeSamplesResolved":[{"lang":"json","title":"Payload application/vnd.worldpay.cardverifications-v6+json","source":"{\n  \"type\": \"nameInquiry\",\n  \"merchant\": {\n    \"entity\": \"default\"\n  },\n  \"instruction\": {\n    \"paymentInstrument\": {\n      \"type\": \"card/plain\",\n      \"cardNumber\": \"4444333322221111\",\n      \"expiryDate\": {\n        \"month\": 5,\n        \"year\": 2035\n      },\n      \"cvc\": \"123\"\n    },\n    \"cardHolder\": {\n      \"firstName\": \"William\",\n      \"middleName\": \"Sherlock Scott\",\n      \"lastName\": \"Holmes\"\n    }\n  }\n}"},{"lang":"shell","title":"curl","source":"curl -i -X POST \\\n  https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications \\\n  -H 'Accept: application/vnd.worldpay.cardVerifications-v6+json' \\\n  -H 'Content-Type: application/vnd.worldpay.cardverifications-v6+json' \\\n  -d '{\n    \"type\": \"nameInquiry\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"instruction\": {\n      \"paymentInstrument\": {\n        \"type\": \"card/plain\",\n        \"cardNumber\": \"4444333322221111\",\n        \"expiryDate\": {\n          \"month\": 5,\n          \"year\": 2035\n        },\n        \"cvc\": \"123\"\n      },\n      \"cardHolder\": {\n        \"firstName\": \"William\",\n        \"middleName\": \"Sherlock Scott\",\n        \"lastName\": \"Holmes\"\n      }\n    }\n  }'"},{"lang":"python","title":"Python","source":"import requests\n\nurl = \"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\"\n\npayload = '''\n  {\n    \"type\": \"nameInquiry\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"instruction\": {\n      \"paymentInstrument\": {\n        \"type\": \"card/plain\",\n        \"cardNumber\": \"4444333322221111\",\n        \"expiryDate\": {\n          \"month\": 5,\n          \"year\": 2035\n        },\n        \"cvc\": \"123\"\n      },\n      \"cardHolder\": {\n        \"firstName\": \"William\",\n        \"middleName\": \"Sherlock Scott\",\n        \"lastName\": \"Holmes\"\n      }\n    }\n  }\n'''\n\nheaders = {\n  \"Accept\": \"application/vnd.worldpay.cardVerifications-v6+json\",\n  \"Content-Type\": \"application/vnd.worldpay.cardverifications-v6+json\"\n}\n\nresponse = requests.post(url, data=payload, headers=headers)\n\ndata = response.json()\nprint(data)"},{"lang":"java","title":"Java","source":"import java.net.*;\nimport java.net.http.*;\nimport java.util.*;\n\npublic class App {\n  public static void main(String[] args) throws Exception {\n    var httpClient = HttpClient.newBuilder().build();\n\n    var host = \"https://try.access.worldpay-bsh.securedataplatform.co.uk\";\n    var pathname = \"/cardVerifications\";\n    var request = HttpRequest.newBuilder()\n      .POST(HttpRequest.BodyPublishers.ofString(payload))\n      .uri(URI.create(host + pathname ))\n      .header(\"Accept\", \"application/vnd.worldpay.cardVerifications-v6+json\")\n      .header(\"Content-Type\", \"application/vnd.worldpay.cardverifications-v6+json\")\n      .build();\n\n    var response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());\n\n    System.out.println(response.body());\n  }\n}"},{"lang":"javascript","title":"Node.js","source":"import fetch from 'node-fetch';\n\nasync function run() {\n  const resp = await fetch(\n    `https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications`,\n    {\n      method: 'POST',\n      headers: {\n        Accept: 'application/vnd.worldpay.cardVerifications-v6+json',\n        'Content-Type': 'application/vnd.worldpay.cardverifications-v6+json'\n      },\n      body: `{\n          \"type\": \"nameInquiry\",\n          \"merchant\": {\n            \"entity\": \"default\"\n          },\n          \"instruction\": {\n            \"paymentInstrument\": {\n              \"type\": \"card/plain\",\n              \"cardNumber\": \"4444333322221111\",\n              \"expiryDate\": {\n                \"month\": 5,\n                \"year\": 2035\n              },\n              \"cvc\": \"123\"\n            },\n            \"cardHolder\": {\n              \"firstName\": \"William\",\n              \"middleName\": \"Sherlock Scott\",\n              \"lastName\": \"Holmes\"\n            }\n          }\n        }`\n    }\n  );\n\n  const data = await resp.text();\n  console.log(data);\n}\n\nrun();"},{"lang":"go","title":"Go","source":"package main\n\nimport (\n  \"fmt\"\n  \"strings\"\n  \"net/http\"\n  \"io/ioutil\"\n)\n\nfunc main() {\n  reqUrl := \"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\"\n  payload := strings.NewReader(\"{\\n  \\\"type\\\": \\\"nameInquiry\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"instruction\\\": {\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/plain\\\",\\n      \\\"cardNumber\\\": \\\"4444333322221111\\\",\\n      \\\"expiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2035\\n      },\\n      \\\"cvc\\\": \\\"123\\\"\\n    },\\n    \\\"cardHolder\\\": {\\n      \\\"firstName\\\": \\\"William\\\",\\n      \\\"middleName\\\": \\\"Sherlock Scott\\\",\\n      \\\"lastName\\\": \\\"Holmes\\\"\\n    }\\n  }\\n}\")\n  req, err := http.NewRequest(\"POST\", reqUrl, payload)\n  if err != nil {\n    panic(err)\n  }\n  req.Header.Add(\"Accept\", \"application/vnd.worldpay.cardVerifications-v6+json\")\n  req.Header.Add(\"Content-Type\", \"application/vnd.worldpay.cardverifications-v6+json\")\n  res, err := http.DefaultClient.Do(req)\n  if err != nil {\n    panic(err)\n  }\n  defer res.Body.Close()\n  body, err := ioutil.ReadAll(res.Body)\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Println(res)\n  fmt.Println(string(body))\n}"},{"lang":"php","title":"PHP","source":"/**\n * Requires libcurl\n */\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n  CURLOPT_HTTPHEADER => [\n    \"Accept: application/vnd.worldpay.cardVerifications-v6+json\",\n    \"Content-Type: application/vnd.worldpay.cardverifications-v6+json\"\n  ],\n  CURLOPT_POSTFIELDS => \"{\\n  \\\"type\\\": \\\"nameInquiry\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"instruction\\\": {\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/plain\\\",\\n      \\\"cardNumber\\\": \\\"4444333322221111\\\",\\n      \\\"expiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2035\\n      },\\n      \\\"cvc\\\": \\\"123\\\"\\n    },\\n    \\\"cardHolder\\\": {\\n      \\\"firstName\\\": \\\"William\\\",\\n      \\\"middleName\\\": \\\"Sherlock Scott\\\",\\n      \\\"lastName\\\": \\\"Holmes\\\"\\n    }\\n  }\\n}\",\n  CURLOPT_URL => \"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\",\n  CURLOPT_RETURNTRANSFER => true,\n  CURLOPT_CUSTOMREQUEST => \"POST\",\n]);\n\n$response = curl_exec($curl);\n$error = curl_error($curl);\n\ncurl_close($curl);\n\nif ($error) {\n  echo \"cURL Error #:\" . $error;\n} else {\n  echo $response;\n}"},{"lang":"ruby","title":"Ruby","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI('https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications')\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest['Accept'] = 'application/vnd.worldpay.cardVerifications-v6+json'\nrequest['Content-Type'] = 'application/vnd.worldpay.cardverifications-v6+json'\nrequest.body = \"{\\n  \\\"type\\\": \\\"nameInquiry\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"instruction\\\": {\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/plain\\\",\\n      \\\"cardNumber\\\": \\\"4444333322221111\\\",\\n      \\\"expiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2035\\n      },\\n      \\\"cvc\\\": \\\"123\\\"\\n    },\\n    \\\"cardHolder\\\": {\\n      \\\"firstName\\\": \\\"William\\\",\\n      \\\"middleName\\\": \\\"Sherlock Scott\\\",\\n      \\\"lastName\\\": \\\"Holmes\\\"\\n    }\\n  }\\n}\"\n\nresponse = http.request(request)\nputs response.read_body\n"},{"lang":"csharp","title":"C#","source":"using System;\nusing System.Net.Http;\nusing System.Threading.Tasks;\n\npublic class Program\n{\n  public static async Task Main()\n  {\n    System.Net.Http.HttpClient client = new()\n    {\n      DefaultRequestHeaders =\n      {\n        {\"Accept\", \"application/vnd.worldpay.cardVerifications-v6+json\"},\n      }\n    };\n\n    using HttpResponseMessage request = await client.PostAsync(\"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\", postData);\n    string response = await request.Content.ReadAsStringAsync();\n\n    Console.WriteLine(response);\n  }\n}"}]},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Name inquiry - token","disable":false},"children":[{"$$mdtype":"Tag","name":"OpenApiCodeSample","attributes":{"descriptionFile":"api-docs-products/card-verifications/@v6/openapi.yaml","operationId":"cardVerify","exampleKey":"Successful cardholder name inquiry with a token","parameters":{},"environments":{},"codeSamplesResolved":[{"lang":"json","title":"Payload application/vnd.worldpay.cardverifications-v6+json","source":"{\n  \"type\": \"nameInquiry\",\n  \"merchant\": {\n    \"entity\": \"default\"\n  },\n  \"instruction\": {\n    \"paymentInstrument\": {\n      \"type\": \"card/token\",\n      \"href\": \"https://tokens/token\",\n      \"cvc\": \"101\"\n    },\n    \"cardHolder\": {\n      \"firstName\": \"William\",\n      \"middleName\": \"Sherlock Scott\",\n      \"lastName\": \"Holmes\"\n    }\n  }\n}"},{"lang":"shell","title":"curl","source":"curl -i -X POST \\\n  https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications \\\n  -H 'Accept: application/vnd.worldpay.cardVerifications-v6+json' \\\n  -H 'Content-Type: application/vnd.worldpay.cardverifications-v6+json' \\\n  -d '{\n    \"type\": \"nameInquiry\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"instruction\": {\n      \"paymentInstrument\": {\n        \"type\": \"card/token\",\n        \"href\": \"https://tokens/token\",\n        \"cvc\": \"101\"\n      },\n      \"cardHolder\": {\n        \"firstName\": \"William\",\n        \"middleName\": \"Sherlock Scott\",\n        \"lastName\": \"Holmes\"\n      }\n    }\n  }'"},{"lang":"python","title":"Python","source":"import requests\n\nurl = \"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\"\n\npayload = '''\n  {\n    \"type\": \"nameInquiry\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"instruction\": {\n      \"paymentInstrument\": {\n        \"type\": \"card/token\",\n        \"href\": \"https://tokens/token\",\n        \"cvc\": \"101\"\n      },\n      \"cardHolder\": {\n        \"firstName\": \"William\",\n        \"middleName\": \"Sherlock Scott\",\n        \"lastName\": \"Holmes\"\n      }\n    }\n  }\n'''\n\nheaders = {\n  \"Accept\": \"application/vnd.worldpay.cardVerifications-v6+json\",\n  \"Content-Type\": \"application/vnd.worldpay.cardverifications-v6+json\"\n}\n\nresponse = requests.post(url, data=payload, headers=headers)\n\ndata = response.json()\nprint(data)"},{"lang":"java","title":"Java","source":"import java.net.*;\nimport java.net.http.*;\nimport java.util.*;\n\npublic class App {\n  public static void main(String[] args) throws Exception {\n    var httpClient = HttpClient.newBuilder().build();\n\n    var host = \"https://try.access.worldpay-bsh.securedataplatform.co.uk\";\n    var pathname = \"/cardVerifications\";\n    var request = HttpRequest.newBuilder()\n      .POST(HttpRequest.BodyPublishers.ofString(payload))\n      .uri(URI.create(host + pathname ))\n      .header(\"Accept\", \"application/vnd.worldpay.cardVerifications-v6+json\")\n      .header(\"Content-Type\", \"application/vnd.worldpay.cardverifications-v6+json\")\n      .build();\n\n    var response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());\n\n    System.out.println(response.body());\n  }\n}"},{"lang":"javascript","title":"Node.js","source":"import fetch from 'node-fetch';\n\nasync function run() {\n  const resp = await fetch(\n    `https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications`,\n    {\n      method: 'POST',\n      headers: {\n        Accept: 'application/vnd.worldpay.cardVerifications-v6+json',\n        'Content-Type': 'application/vnd.worldpay.cardverifications-v6+json'\n      },\n      body: `{\n          \"type\": \"nameInquiry\",\n          \"merchant\": {\n            \"entity\": \"default\"\n          },\n          \"instruction\": {\n            \"paymentInstrument\": {\n              \"type\": \"card/token\",\n              \"href\": \"https://tokens/token\",\n              \"cvc\": \"101\"\n            },\n            \"cardHolder\": {\n              \"firstName\": \"William\",\n              \"middleName\": \"Sherlock Scott\",\n              \"lastName\": \"Holmes\"\n            }\n          }\n        }`\n    }\n  );\n\n  const data = await resp.text();\n  console.log(data);\n}\n\nrun();"},{"lang":"go","title":"Go","source":"package main\n\nimport (\n  \"fmt\"\n  \"strings\"\n  \"net/http\"\n  \"io/ioutil\"\n)\n\nfunc main() {\n  reqUrl := \"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\"\n  payload := strings.NewReader(\"{\\n  \\\"type\\\": \\\"nameInquiry\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"instruction\\\": {\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/token\\\",\\n      \\\"href\\\": \\\"https://tokens/token\\\",\\n      \\\"cvc\\\": \\\"101\\\"\\n    },\\n    \\\"cardHolder\\\": {\\n      \\\"firstName\\\": \\\"William\\\",\\n      \\\"middleName\\\": \\\"Sherlock Scott\\\",\\n      \\\"lastName\\\": \\\"Holmes\\\"\\n    }\\n  }\\n}\")\n  req, err := http.NewRequest(\"POST\", reqUrl, payload)\n  if err != nil {\n    panic(err)\n  }\n  req.Header.Add(\"Accept\", \"application/vnd.worldpay.cardVerifications-v6+json\")\n  req.Header.Add(\"Content-Type\", \"application/vnd.worldpay.cardverifications-v6+json\")\n  res, err := http.DefaultClient.Do(req)\n  if err != nil {\n    panic(err)\n  }\n  defer res.Body.Close()\n  body, err := ioutil.ReadAll(res.Body)\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Println(res)\n  fmt.Println(string(body))\n}"},{"lang":"php","title":"PHP","source":"/**\n * Requires libcurl\n */\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n  CURLOPT_HTTPHEADER => [\n    \"Accept: application/vnd.worldpay.cardVerifications-v6+json\",\n    \"Content-Type: application/vnd.worldpay.cardverifications-v6+json\"\n  ],\n  CURLOPT_POSTFIELDS => \"{\\n  \\\"type\\\": \\\"nameInquiry\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"instruction\\\": {\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/token\\\",\\n      \\\"href\\\": \\\"https://tokens/token\\\",\\n      \\\"cvc\\\": \\\"101\\\"\\n    },\\n    \\\"cardHolder\\\": {\\n      \\\"firstName\\\": \\\"William\\\",\\n      \\\"middleName\\\": \\\"Sherlock Scott\\\",\\n      \\\"lastName\\\": \\\"Holmes\\\"\\n    }\\n  }\\n}\",\n  CURLOPT_URL => \"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\",\n  CURLOPT_RETURNTRANSFER => true,\n  CURLOPT_CUSTOMREQUEST => \"POST\",\n]);\n\n$response = curl_exec($curl);\n$error = curl_error($curl);\n\ncurl_close($curl);\n\nif ($error) {\n  echo \"cURL Error #:\" . $error;\n} else {\n  echo $response;\n}"},{"lang":"ruby","title":"Ruby","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI('https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications')\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest['Accept'] = 'application/vnd.worldpay.cardVerifications-v6+json'\nrequest['Content-Type'] = 'application/vnd.worldpay.cardverifications-v6+json'\nrequest.body = \"{\\n  \\\"type\\\": \\\"nameInquiry\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"instruction\\\": {\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/token\\\",\\n      \\\"href\\\": \\\"https://tokens/token\\\",\\n      \\\"cvc\\\": \\\"101\\\"\\n    },\\n    \\\"cardHolder\\\": {\\n      \\\"firstName\\\": \\\"William\\\",\\n      \\\"middleName\\\": \\\"Sherlock Scott\\\",\\n      \\\"lastName\\\": \\\"Holmes\\\"\\n    }\\n  }\\n}\"\n\nresponse = http.request(request)\nputs response.read_body\n"},{"lang":"csharp","title":"C#","source":"using System;\nusing System.Net.Http;\nusing System.Threading.Tasks;\n\npublic class Program\n{\n  public static async Task Main()\n  {\n    System.Net.Http.HttpClient client = new()\n    {\n      DefaultRequestHeaders =\n      {\n        {\"Accept\", \"application/vnd.worldpay.cardVerifications-v6+json\"},\n      }\n    };\n\n    using HttpResponseMessage request = await client.PostAsync(\"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\", postData);\n    string response = await request.Content.ReadAsStringAsync();\n\n    Console.WriteLine(response);\n  }\n}"}]},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"parameter-descriptions-1","__idx":7},"children":["Parameter descriptions"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Parameter"},"children":["Parameter"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required?"},"children":["Required?"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["✅"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Defines the type of request. Use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cardVerification"]}," to verify a card or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["nameInquiry"]}," if you want to make a name inquiry."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["merchant"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["✅"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["An object that contains information about the merchant. See full object descriptions in our ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/card-verifications/openapi/other/cardverify#other/cardverify/t=request&path=&oneof=0/merchant"},"children":["API Reference"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["instruction"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["✅"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The object that contains all the payment information related to the verification request. See full object descriptions in our ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/card-verifications/openapi/other/cardverify#other/cardverify/t=request&path=&oneof=0/instruction"},"children":["API Reference"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cardHolder"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["✅"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The object that contains cardholder name information. See full object descriptions in our ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/card-verifications/openapi"},"children":["API Reference"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["lastname"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["✅"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The Last name of the cardholder. Must not contain 'All spaces', 'All zeros' , ' All numeric , 'Question marks - ?'. See full object descriptions in our ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developer.worldpay-bsh.securedataplatform.co.uk/products/card-verifications/openapi/other/cardverify#other/cardverify/t=request&path=&oneof=1/instruction/cardholder/lastname"},"children":["API Reference"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["firstname"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["❌"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The First name of the cardholder. Must not contain 'All spaces', 'All zeros' , ' All numeric , 'Question marks - ?'. See full object descriptions in our ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developer.worldpay-bsh.securedataplatform.co.uk/products/card-verifications/openapi/other/cardverify#other/cardverify/t=request&path=&oneof=1/instruction/cardholder/lastname"},"children":["API Reference"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["middlename"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["❌"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The Middle name of the cardholder. Must not contain 'All spaces', 'All zeros' , ' All numeric , 'Question marks - ?'. See full object descriptions in our ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developer.worldpay-bsh.securedataplatform.co.uk/products/card-verifications/openapi/other/cardverify#other/cardverify/t=request&path=&oneof=1/instruction/cardholder/lastname"},"children":["API Reference"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Note"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can also find the full schema and more example requests in our ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/card-verifications/openapi"},"children":["API reference"]},"."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"test-values","__idx":8},"children":["Test values"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Test cardholder name inquiry outcomes using the values below:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Test card number"},"children":["Test card number"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"nameInquiry"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["nameInquiry"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"riskFactors"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["riskFactors"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["4462030000000000"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["matched"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["riskFactors"]}," returned"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["4484070000000000"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["partialMatched"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["riskFactors.risk"]}," value of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["partialMatched"]}," is returned where ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["riskFactors.type"]}," = ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["nameInquiry"]},", for the following ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["riskFactors.detail"]}," values: ",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["firstName"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["middleName"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["lastName"]}]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["4917300800000000"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["notMatched"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["riskFactors.risk"]}," value of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["notMatched"]}," is returned where ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["riskFactors.type"]}," = ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["nameInquiry"]},", for the following ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["riskFactors.detail"]}," values: ",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["firstName"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["middleName"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["lastName"]}]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["4444333322221111"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["notChecked"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["riskFactors.risk"]}," value of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["notChecked"]}," is returned where ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["riskFactors.type"]}," = ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["nameInquiry"]},", for the following ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["riskFactors.detail"]}," values: ",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["firstName"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["middleName"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["lastName"]}]}]}]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"3ds","__idx":9},"children":["3DS"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can optionally submit 3DS parameters for card verification requests."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To get the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["customer"]}," authentication object you must complete an ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/3ds/web/authentication"},"children":["authentication request"]}," using our ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/3ds"},"children":["3DS API"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"example-request-2","__idx":10},"children":["Example request"]},{"$$mdtype":"Tag","name":"OpenApiCodeSample","attributes":{"descriptionFile":"api-docs-products/card-verifications/@v6/openapi.yaml","operationId":"cardVerify","exampleKey":"Successful card verification with 3DS2 values","parameters":{},"environments":{},"codeSamplesResolved":[{"lang":"json","title":"Payload application/vnd.worldpay.cardverifications-v6+json","source":"{\n  \"type\": \"cardVerification\",\n  \"merchant\": {\n    \"entity\": \"default\"\n  },\n  \"transactionReference\": \"Memory265-13/08/1876\",\n  \"instruction\": {\n    \"value\": {\n      \"amount\": 250,\n      \"currency\": \"GBP\"\n    },\n    \"narrative\": {\n      \"line1\": \"MindPalace\",\n      \"line2\": \"Memory\"\n    },\n    \"paymentInstrument\": {\n      \"type\": \"card/plain\",\n      \"cardHolderName\": \"Sherlock Holmes\",\n      \"expiryDate\": {\n        \"month\": 5,\n        \"year\": 2050\n      },\n      \"cardNumber\": \"4444333322221111\",\n      \"billingAddress\": {\n        \"address1\": \"221B Baker Street\",\n        \"address2\": \"Marylebone\",\n        \"address3\": \"Westminster\",\n        \"postalCode\": \"NW1 6XE\",\n        \"city\": \"Cambridge\",\n        \"countryCode\": \"GB\"\n      },\n      \"cvc\": \"101\"\n    }\n  },\n  \"authentication\": {\n    \"threeDS\": {\n      \"eci\": \"05\",\n      \"version\": \"2.1.0\",\n      \"authenticationValue\": \"MAAAAAAAAAAAAAAAAAAAAAAAAAA=\",\n      \"transactionId\": \"c5b808e7-1de1-4069-a17b-f70d3b3b1645\",\n      \"cryptogramAlgorithm\": \"2\",\n      \"challengePreference\": \"challengeMandated\",\n      \"authenticationFlow\": \"challenge\",\n      \"statusReason\": \"11\",\n      \"cancellationIndicator\": \"01\",\n      \"networkScore\": \"00\",\n      \"brand\": \"cartesBancaires\"\n    }\n  }\n}"},{"lang":"shell","title":"curl","source":"curl -i -X POST \\\n  https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications \\\n  -H 'Accept: application/vnd.worldpay.cardVerifications-v6+json' \\\n  -H 'Content-Type: application/vnd.worldpay.cardverifications-v6+json' \\\n  -d '{\n    \"type\": \"cardVerification\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"instruction\": {\n      \"value\": {\n        \"amount\": 250,\n        \"currency\": \"GBP\"\n      },\n      \"narrative\": {\n        \"line1\": \"MindPalace\",\n        \"line2\": \"Memory\"\n      },\n      \"paymentInstrument\": {\n        \"type\": \"card/plain\",\n        \"cardHolderName\": \"Sherlock Holmes\",\n        \"expiryDate\": {\n          \"month\": 5,\n          \"year\": 2050\n        },\n        \"cardNumber\": \"4444333322221111\",\n        \"billingAddress\": {\n          \"address1\": \"221B Baker Street\",\n          \"address2\": \"Marylebone\",\n          \"address3\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"Cambridge\",\n          \"countryCode\": \"GB\"\n        },\n        \"cvc\": \"101\"\n      }\n    },\n    \"authentication\": {\n      \"threeDS\": {\n        \"eci\": \"05\",\n        \"version\": \"2.1.0\",\n        \"authenticationValue\": \"MAAAAAAAAAAAAAAAAAAAAAAAAAA=\",\n        \"transactionId\": \"c5b808e7-1de1-4069-a17b-f70d3b3b1645\",\n        \"cryptogramAlgorithm\": \"2\",\n        \"challengePreference\": \"challengeMandated\",\n        \"authenticationFlow\": \"challenge\",\n        \"statusReason\": \"11\",\n        \"cancellationIndicator\": \"01\",\n        \"networkScore\": \"00\",\n        \"brand\": \"cartesBancaires\"\n      }\n    }\n  }'"},{"lang":"python","title":"Python","source":"import requests\n\nurl = \"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\"\n\npayload = '''\n  {\n    \"type\": \"cardVerification\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"instruction\": {\n      \"value\": {\n        \"amount\": 250,\n        \"currency\": \"GBP\"\n      },\n      \"narrative\": {\n        \"line1\": \"MindPalace\",\n        \"line2\": \"Memory\"\n      },\n      \"paymentInstrument\": {\n        \"type\": \"card/plain\",\n        \"cardHolderName\": \"Sherlock Holmes\",\n        \"expiryDate\": {\n          \"month\": 5,\n          \"year\": 2050\n        },\n        \"cardNumber\": \"4444333322221111\",\n        \"billingAddress\": {\n          \"address1\": \"221B Baker Street\",\n          \"address2\": \"Marylebone\",\n          \"address3\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"Cambridge\",\n          \"countryCode\": \"GB\"\n        },\n        \"cvc\": \"101\"\n      }\n    },\n    \"authentication\": {\n      \"threeDS\": {\n        \"eci\": \"05\",\n        \"version\": \"2.1.0\",\n        \"authenticationValue\": \"MAAAAAAAAAAAAAAAAAAAAAAAAAA=\",\n        \"transactionId\": \"c5b808e7-1de1-4069-a17b-f70d3b3b1645\",\n        \"cryptogramAlgorithm\": \"2\",\n        \"challengePreference\": \"challengeMandated\",\n        \"authenticationFlow\": \"challenge\",\n        \"statusReason\": \"11\",\n        \"cancellationIndicator\": \"01\",\n        \"networkScore\": \"00\",\n        \"brand\": \"cartesBancaires\"\n      }\n    }\n  }\n'''\n\nheaders = {\n  \"Accept\": \"application/vnd.worldpay.cardVerifications-v6+json\",\n  \"Content-Type\": \"application/vnd.worldpay.cardverifications-v6+json\"\n}\n\nresponse = requests.post(url, data=payload, headers=headers)\n\ndata = response.json()\nprint(data)"},{"lang":"java","title":"Java","source":"import java.net.*;\nimport java.net.http.*;\nimport java.util.*;\n\npublic class App {\n  public static void main(String[] args) throws Exception {\n    var httpClient = HttpClient.newBuilder().build();\n\n    var host = \"https://try.access.worldpay-bsh.securedataplatform.co.uk\";\n    var pathname = \"/cardVerifications\";\n    var request = HttpRequest.newBuilder()\n      .POST(HttpRequest.BodyPublishers.ofString(payload))\n      .uri(URI.create(host + pathname ))\n      .header(\"Accept\", \"application/vnd.worldpay.cardVerifications-v6+json\")\n      .header(\"Content-Type\", \"application/vnd.worldpay.cardverifications-v6+json\")\n      .build();\n\n    var response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());\n\n    System.out.println(response.body());\n  }\n}"},{"lang":"javascript","title":"Node.js","source":"import fetch from 'node-fetch';\n\nasync function run() {\n  const resp = await fetch(\n    `https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications`,\n    {\n      method: 'POST',\n      headers: {\n        Accept: 'application/vnd.worldpay.cardVerifications-v6+json',\n        'Content-Type': 'application/vnd.worldpay.cardverifications-v6+json'\n      },\n      body: `{\n          \"type\": \"cardVerification\",\n          \"merchant\": {\n            \"entity\": \"default\"\n          },\n          \"transactionReference\": \"Memory265-13/08/1876\",\n          \"instruction\": {\n            \"value\": {\n              \"amount\": 250,\n              \"currency\": \"GBP\"\n            },\n            \"narrative\": {\n              \"line1\": \"MindPalace\",\n              \"line2\": \"Memory\"\n            },\n            \"paymentInstrument\": {\n              \"type\": \"card/plain\",\n              \"cardHolderName\": \"Sherlock Holmes\",\n              \"expiryDate\": {\n                \"month\": 5,\n                \"year\": 2050\n              },\n              \"cardNumber\": \"4444333322221111\",\n              \"billingAddress\": {\n                \"address1\": \"221B Baker Street\",\n                \"address2\": \"Marylebone\",\n                \"address3\": \"Westminster\",\n                \"postalCode\": \"NW1 6XE\",\n                \"city\": \"Cambridge\",\n                \"countryCode\": \"GB\"\n              },\n              \"cvc\": \"101\"\n            }\n          },\n          \"authentication\": {\n            \"threeDS\": {\n              \"eci\": \"05\",\n              \"version\": \"2.1.0\",\n              \"authenticationValue\": \"MAAAAAAAAAAAAAAAAAAAAAAAAAA=\",\n              \"transactionId\": \"c5b808e7-1de1-4069-a17b-f70d3b3b1645\",\n              \"cryptogramAlgorithm\": \"2\",\n              \"challengePreference\": \"challengeMandated\",\n              \"authenticationFlow\": \"challenge\",\n              \"statusReason\": \"11\",\n              \"cancellationIndicator\": \"01\",\n              \"networkScore\": \"00\",\n              \"brand\": \"cartesBancaires\"\n            }\n          }\n        }`\n    }\n  );\n\n  const data = await resp.text();\n  console.log(data);\n}\n\nrun();"},{"lang":"go","title":"Go","source":"package main\n\nimport (\n  \"fmt\"\n  \"strings\"\n  \"net/http\"\n  \"io/ioutil\"\n)\n\nfunc main() {\n  reqUrl := \"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\"\n  payload := strings.NewReader(\"{\\n  \\\"type\\\": \\\"cardVerification\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\\n  \\\"instruction\\\": {\\n    \\\"value\\\": {\\n      \\\"amount\\\": 250,\\n      \\\"currency\\\": \\\"GBP\\\"\\n    },\\n    \\\"narrative\\\": {\\n      \\\"line1\\\": \\\"MindPalace\\\",\\n      \\\"line2\\\": \\\"Memory\\\"\\n    },\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/plain\\\",\\n      \\\"cardHolderName\\\": \\\"Sherlock Holmes\\\",\\n      \\\"expiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2050\\n      },\\n      \\\"cardNumber\\\": \\\"4444333322221111\\\",\\n      \\\"billingAddress\\\": {\\n        \\\"address1\\\": \\\"221B Baker Street\\\",\\n        \\\"address2\\\": \\\"Marylebone\\\",\\n        \\\"address3\\\": \\\"Westminster\\\",\\n        \\\"postalCode\\\": \\\"NW1 6XE\\\",\\n        \\\"city\\\": \\\"Cambridge\\\",\\n        \\\"countryCode\\\": \\\"GB\\\"\\n      },\\n      \\\"cvc\\\": \\\"101\\\"\\n    }\\n  },\\n  \\\"authentication\\\": {\\n    \\\"threeDS\\\": {\\n      \\\"eci\\\": \\\"05\\\",\\n      \\\"version\\\": \\\"2.1.0\\\",\\n      \\\"authenticationValue\\\": \\\"MAAAAAAAAAAAAAAAAAAAAAAAAAA=\\\",\\n      \\\"transactionId\\\": \\\"c5b808e7-1de1-4069-a17b-f70d3b3b1645\\\",\\n      \\\"cryptogramAlgorithm\\\": \\\"2\\\",\\n      \\\"challengePreference\\\": \\\"challengeMandated\\\",\\n      \\\"authenticationFlow\\\": \\\"challenge\\\",\\n      \\\"statusReason\\\": \\\"11\\\",\\n      \\\"cancellationIndicator\\\": \\\"01\\\",\\n      \\\"networkScore\\\": \\\"00\\\",\\n      \\\"brand\\\": \\\"cartesBancaires\\\"\\n    }\\n  }\\n}\")\n  req, err := http.NewRequest(\"POST\", reqUrl, payload)\n  if err != nil {\n    panic(err)\n  }\n  req.Header.Add(\"Accept\", \"application/vnd.worldpay.cardVerifications-v6+json\")\n  req.Header.Add(\"Content-Type\", \"application/vnd.worldpay.cardverifications-v6+json\")\n  res, err := http.DefaultClient.Do(req)\n  if err != nil {\n    panic(err)\n  }\n  defer res.Body.Close()\n  body, err := ioutil.ReadAll(res.Body)\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Println(res)\n  fmt.Println(string(body))\n}"},{"lang":"php","title":"PHP","source":"/**\n * Requires libcurl\n */\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n  CURLOPT_HTTPHEADER => [\n    \"Accept: application/vnd.worldpay.cardVerifications-v6+json\",\n    \"Content-Type: application/vnd.worldpay.cardverifications-v6+json\"\n  ],\n  CURLOPT_POSTFIELDS => \"{\\n  \\\"type\\\": \\\"cardVerification\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\\n  \\\"instruction\\\": {\\n    \\\"value\\\": {\\n      \\\"amount\\\": 250,\\n      \\\"currency\\\": \\\"GBP\\\"\\n    },\\n    \\\"narrative\\\": {\\n      \\\"line1\\\": \\\"MindPalace\\\",\\n      \\\"line2\\\": \\\"Memory\\\"\\n    },\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/plain\\\",\\n      \\\"cardHolderName\\\": \\\"Sherlock Holmes\\\",\\n      \\\"expiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2050\\n      },\\n      \\\"cardNumber\\\": \\\"4444333322221111\\\",\\n      \\\"billingAddress\\\": {\\n        \\\"address1\\\": \\\"221B Baker Street\\\",\\n        \\\"address2\\\": \\\"Marylebone\\\",\\n        \\\"address3\\\": \\\"Westminster\\\",\\n        \\\"postalCode\\\": \\\"NW1 6XE\\\",\\n        \\\"city\\\": \\\"Cambridge\\\",\\n        \\\"countryCode\\\": \\\"GB\\\"\\n      },\\n      \\\"cvc\\\": \\\"101\\\"\\n    }\\n  },\\n  \\\"authentication\\\": {\\n    \\\"threeDS\\\": {\\n      \\\"eci\\\": \\\"05\\\",\\n      \\\"version\\\": \\\"2.1.0\\\",\\n      \\\"authenticationValue\\\": \\\"MAAAAAAAAAAAAAAAAAAAAAAAAAA=\\\",\\n      \\\"transactionId\\\": \\\"c5b808e7-1de1-4069-a17b-f70d3b3b1645\\\",\\n      \\\"cryptogramAlgorithm\\\": \\\"2\\\",\\n      \\\"challengePreference\\\": \\\"challengeMandated\\\",\\n      \\\"authenticationFlow\\\": \\\"challenge\\\",\\n      \\\"statusReason\\\": \\\"11\\\",\\n      \\\"cancellationIndicator\\\": \\\"01\\\",\\n      \\\"networkScore\\\": \\\"00\\\",\\n      \\\"brand\\\": \\\"cartesBancaires\\\"\\n    }\\n  }\\n}\",\n  CURLOPT_URL => \"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\",\n  CURLOPT_RETURNTRANSFER => true,\n  CURLOPT_CUSTOMREQUEST => \"POST\",\n]);\n\n$response = curl_exec($curl);\n$error = curl_error($curl);\n\ncurl_close($curl);\n\nif ($error) {\n  echo \"cURL Error #:\" . $error;\n} else {\n  echo $response;\n}"},{"lang":"ruby","title":"Ruby","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI('https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications')\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest['Accept'] = 'application/vnd.worldpay.cardVerifications-v6+json'\nrequest['Content-Type'] = 'application/vnd.worldpay.cardverifications-v6+json'\nrequest.body = \"{\\n  \\\"type\\\": \\\"cardVerification\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\\n  \\\"instruction\\\": {\\n    \\\"value\\\": {\\n      \\\"amount\\\": 250,\\n      \\\"currency\\\": \\\"GBP\\\"\\n    },\\n    \\\"narrative\\\": {\\n      \\\"line1\\\": \\\"MindPalace\\\",\\n      \\\"line2\\\": \\\"Memory\\\"\\n    },\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/plain\\\",\\n      \\\"cardHolderName\\\": \\\"Sherlock Holmes\\\",\\n      \\\"expiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2050\\n      },\\n      \\\"cardNumber\\\": \\\"4444333322221111\\\",\\n      \\\"billingAddress\\\": {\\n        \\\"address1\\\": \\\"221B Baker Street\\\",\\n        \\\"address2\\\": \\\"Marylebone\\\",\\n        \\\"address3\\\": \\\"Westminster\\\",\\n        \\\"postalCode\\\": \\\"NW1 6XE\\\",\\n        \\\"city\\\": \\\"Cambridge\\\",\\n        \\\"countryCode\\\": \\\"GB\\\"\\n      },\\n      \\\"cvc\\\": \\\"101\\\"\\n    }\\n  },\\n  \\\"authentication\\\": {\\n    \\\"threeDS\\\": {\\n      \\\"eci\\\": \\\"05\\\",\\n      \\\"version\\\": \\\"2.1.0\\\",\\n      \\\"authenticationValue\\\": \\\"MAAAAAAAAAAAAAAAAAAAAAAAAAA=\\\",\\n      \\\"transactionId\\\": \\\"c5b808e7-1de1-4069-a17b-f70d3b3b1645\\\",\\n      \\\"cryptogramAlgorithm\\\": \\\"2\\\",\\n      \\\"challengePreference\\\": \\\"challengeMandated\\\",\\n      \\\"authenticationFlow\\\": \\\"challenge\\\",\\n      \\\"statusReason\\\": \\\"11\\\",\\n      \\\"cancellationIndicator\\\": \\\"01\\\",\\n      \\\"networkScore\\\": \\\"00\\\",\\n      \\\"brand\\\": \\\"cartesBancaires\\\"\\n    }\\n  }\\n}\"\n\nresponse = http.request(request)\nputs response.read_body\n"},{"lang":"csharp","title":"C#","source":"using System;\nusing System.Net.Http;\nusing System.Threading.Tasks;\n\npublic class Program\n{\n  public static async Task Main()\n  {\n    System.Net.Http.HttpClient client = new()\n    {\n      DefaultRequestHeaders =\n      {\n        {\"Accept\", \"application/vnd.worldpay.cardVerifications-v6+json\"},\n      }\n    };\n\n    using HttpResponseMessage request = await client.PostAsync(\"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\", postData);\n    string response = await request.Content.ReadAsStringAsync();\n\n    Console.WriteLine(response);\n  }\n}"}]},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"3ds-parameters","__idx":11},"children":["3DS Parameters"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can view the full details for our ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["authentication"]}," object in our ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/card-verifications/openapi"},"children":["API Reference"]},"."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"apple-pay-google-pay-and-samsung-pay-decrypted","__idx":12},"children":["Apple Pay, Google Pay, and Samsung Pay decrypted"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can optionally submit Apple Pay, Google Pay, and Samsung Pay decrypted parameters for card verification requests."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"example-request-3","__idx":13},"children":["Example request"]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Apple Pay decrypted","disable":false},"children":[{"$$mdtype":"Tag","name":"OpenApiCodeSample","attributes":{"descriptionFile":"api-docs-products/card-verifications/@v6/openapi.yaml","operationId":"cardVerify","exampleKey":"Successful card verification with Apple Pay decrypted","parameters":{},"environments":{},"codeSamplesResolved":[{"lang":"json","title":"Payload application/vnd.worldpay.cardverifications-v6+json","source":"{\n  \"type\": \"cardVerification\",\n  \"merchant\": {\n    \"entity\": \"default\"\n  },\n  \"transactionReference\": \"Memory265-13/08/1876\",\n  \"instruction\": {\n    \"consumerBillPayment\": true,\n    \"value\": {\n      \"amount\": 250,\n      \"currency\": \"GBP\"\n    },\n    \"narrative\": {\n      \"line1\": \"MindPalace\",\n      \"line2\": \"Memory\"\n    },\n    \"paymentInstrument\": {\n      \"type\": \"card/networkToken+applepay\",\n      \"cardHolderName\": \"Sherlock Holmes\",\n      \"expiryDate\": {\n        \"month\": 5,\n        \"year\": 2050\n      },\n      \"tokenNumber\": \"4444333322221111\",\n      \"billingAddress\": {\n        \"address1\": \"221B Baker Street\",\n        \"address2\": \"Marylebone\",\n        \"address3\": \"Westminster\",\n        \"postalCode\": \"NW1 6XE\",\n        \"city\": \"Cambridge\",\n        \"countryCode\": \"GB\"\n      }\n    },\n    \"customerAgreement\": {\n      \"type\": \"cardOnFile\",\n      \"storedCardUsage\": \"first\"\n    }\n  },\n  \"authentication\": {\n    \"networkToken\": {\n      \"cryptogram\": \"MAAAAAAB=\",\n      \"eci\": \"06\"\n    }\n  }\n}"},{"lang":"shell","title":"curl","source":"curl -i -X POST \\\n  https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications \\\n  -H 'Accept: application/vnd.worldpay.cardVerifications-v6+json' \\\n  -H 'Content-Type: application/vnd.worldpay.cardverifications-v6+json' \\\n  -d '{\n    \"type\": \"cardVerification\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"instruction\": {\n      \"consumerBillPayment\": true,\n      \"value\": {\n        \"amount\": 250,\n        \"currency\": \"GBP\"\n      },\n      \"narrative\": {\n        \"line1\": \"MindPalace\",\n        \"line2\": \"Memory\"\n      },\n      \"paymentInstrument\": {\n        \"type\": \"card/networkToken+applepay\",\n        \"cardHolderName\": \"Sherlock Holmes\",\n        \"expiryDate\": {\n          \"month\": 5,\n          \"year\": 2050\n        },\n        \"tokenNumber\": \"4444333322221111\",\n        \"billingAddress\": {\n          \"address1\": \"221B Baker Street\",\n          \"address2\": \"Marylebone\",\n          \"address3\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"Cambridge\",\n          \"countryCode\": \"GB\"\n        }\n      },\n      \"customerAgreement\": {\n        \"type\": \"cardOnFile\",\n        \"storedCardUsage\": \"first\"\n      }\n    },\n    \"authentication\": {\n      \"networkToken\": {\n        \"cryptogram\": \"MAAAAAAB=\",\n        \"eci\": \"06\"\n      }\n    }\n  }'"},{"lang":"python","title":"Python","source":"import requests\n\nurl = \"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\"\n\npayload = '''\n  {\n    \"type\": \"cardVerification\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"instruction\": {\n      \"consumerBillPayment\": true,\n      \"value\": {\n        \"amount\": 250,\n        \"currency\": \"GBP\"\n      },\n      \"narrative\": {\n        \"line1\": \"MindPalace\",\n        \"line2\": \"Memory\"\n      },\n      \"paymentInstrument\": {\n        \"type\": \"card/networkToken+applepay\",\n        \"cardHolderName\": \"Sherlock Holmes\",\n        \"expiryDate\": {\n          \"month\": 5,\n          \"year\": 2050\n        },\n        \"tokenNumber\": \"4444333322221111\",\n        \"billingAddress\": {\n          \"address1\": \"221B Baker Street\",\n          \"address2\": \"Marylebone\",\n          \"address3\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"Cambridge\",\n          \"countryCode\": \"GB\"\n        }\n      },\n      \"customerAgreement\": {\n        \"type\": \"cardOnFile\",\n        \"storedCardUsage\": \"first\"\n      }\n    },\n    \"authentication\": {\n      \"networkToken\": {\n        \"cryptogram\": \"MAAAAAAB=\",\n        \"eci\": \"06\"\n      }\n    }\n  }\n'''\n\nheaders = {\n  \"Accept\": \"application/vnd.worldpay.cardVerifications-v6+json\",\n  \"Content-Type\": \"application/vnd.worldpay.cardverifications-v6+json\"\n}\n\nresponse = requests.post(url, data=payload, headers=headers)\n\ndata = response.json()\nprint(data)"},{"lang":"java","title":"Java","source":"import java.net.*;\nimport java.net.http.*;\nimport java.util.*;\n\npublic class App {\n  public static void main(String[] args) throws Exception {\n    var httpClient = HttpClient.newBuilder().build();\n\n    var host = \"https://try.access.worldpay-bsh.securedataplatform.co.uk\";\n    var pathname = \"/cardVerifications\";\n    var request = HttpRequest.newBuilder()\n      .POST(HttpRequest.BodyPublishers.ofString(payload))\n      .uri(URI.create(host + pathname ))\n      .header(\"Accept\", \"application/vnd.worldpay.cardVerifications-v6+json\")\n      .header(\"Content-Type\", \"application/vnd.worldpay.cardverifications-v6+json\")\n      .build();\n\n    var response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());\n\n    System.out.println(response.body());\n  }\n}"},{"lang":"javascript","title":"Node.js","source":"import fetch from 'node-fetch';\n\nasync function run() {\n  const resp = await fetch(\n    `https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications`,\n    {\n      method: 'POST',\n      headers: {\n        Accept: 'application/vnd.worldpay.cardVerifications-v6+json',\n        'Content-Type': 'application/vnd.worldpay.cardverifications-v6+json'\n      },\n      body: `{\n          \"type\": \"cardVerification\",\n          \"merchant\": {\n            \"entity\": \"default\"\n          },\n          \"transactionReference\": \"Memory265-13/08/1876\",\n          \"instruction\": {\n            \"consumerBillPayment\": true,\n            \"value\": {\n              \"amount\": 250,\n              \"currency\": \"GBP\"\n            },\n            \"narrative\": {\n              \"line1\": \"MindPalace\",\n              \"line2\": \"Memory\"\n            },\n            \"paymentInstrument\": {\n              \"type\": \"card/networkToken+applepay\",\n              \"cardHolderName\": \"Sherlock Holmes\",\n              \"expiryDate\": {\n                \"month\": 5,\n                \"year\": 2050\n              },\n              \"tokenNumber\": \"4444333322221111\",\n              \"billingAddress\": {\n                \"address1\": \"221B Baker Street\",\n                \"address2\": \"Marylebone\",\n                \"address3\": \"Westminster\",\n                \"postalCode\": \"NW1 6XE\",\n                \"city\": \"Cambridge\",\n                \"countryCode\": \"GB\"\n              }\n            },\n            \"customerAgreement\": {\n              \"type\": \"cardOnFile\",\n              \"storedCardUsage\": \"first\"\n            }\n          },\n          \"authentication\": {\n            \"networkToken\": {\n              \"cryptogram\": \"MAAAAAAB=\",\n              \"eci\": \"06\"\n            }\n          }\n        }`\n    }\n  );\n\n  const data = await resp.text();\n  console.log(data);\n}\n\nrun();"},{"lang":"go","title":"Go","source":"package main\n\nimport (\n  \"fmt\"\n  \"strings\"\n  \"net/http\"\n  \"io/ioutil\"\n)\n\nfunc main() {\n  reqUrl := \"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\"\n  payload := strings.NewReader(\"{\\n  \\\"type\\\": \\\"cardVerification\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\\n  \\\"instruction\\\": {\\n    \\\"consumerBillPayment\\\": true,\\n    \\\"value\\\": {\\n      \\\"amount\\\": 250,\\n      \\\"currency\\\": \\\"GBP\\\"\\n    },\\n    \\\"narrative\\\": {\\n      \\\"line1\\\": \\\"MindPalace\\\",\\n      \\\"line2\\\": \\\"Memory\\\"\\n    },\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/networkToken+applepay\\\",\\n      \\\"cardHolderName\\\": \\\"Sherlock Holmes\\\",\\n      \\\"expiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2050\\n      },\\n      \\\"tokenNumber\\\": \\\"4444333322221111\\\",\\n      \\\"billingAddress\\\": {\\n        \\\"address1\\\": \\\"221B Baker Street\\\",\\n        \\\"address2\\\": \\\"Marylebone\\\",\\n        \\\"address3\\\": \\\"Westminster\\\",\\n        \\\"postalCode\\\": \\\"NW1 6XE\\\",\\n        \\\"city\\\": \\\"Cambridge\\\",\\n        \\\"countryCode\\\": \\\"GB\\\"\\n      }\\n    },\\n    \\\"customerAgreement\\\": {\\n      \\\"type\\\": \\\"cardOnFile\\\",\\n      \\\"storedCardUsage\\\": \\\"first\\\"\\n    }\\n  },\\n  \\\"authentication\\\": {\\n    \\\"networkToken\\\": {\\n      \\\"cryptogram\\\": \\\"MAAAAAAB=\\\",\\n      \\\"eci\\\": \\\"06\\\"\\n    }\\n  }\\n}\")\n  req, err := http.NewRequest(\"POST\", reqUrl, payload)\n  if err != nil {\n    panic(err)\n  }\n  req.Header.Add(\"Accept\", \"application/vnd.worldpay.cardVerifications-v6+json\")\n  req.Header.Add(\"Content-Type\", \"application/vnd.worldpay.cardverifications-v6+json\")\n  res, err := http.DefaultClient.Do(req)\n  if err != nil {\n    panic(err)\n  }\n  defer res.Body.Close()\n  body, err := ioutil.ReadAll(res.Body)\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Println(res)\n  fmt.Println(string(body))\n}"},{"lang":"php","title":"PHP","source":"/**\n * Requires libcurl\n */\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n  CURLOPT_HTTPHEADER => [\n    \"Accept: application/vnd.worldpay.cardVerifications-v6+json\",\n    \"Content-Type: application/vnd.worldpay.cardverifications-v6+json\"\n  ],\n  CURLOPT_POSTFIELDS => \"{\\n  \\\"type\\\": \\\"cardVerification\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\\n  \\\"instruction\\\": {\\n    \\\"consumerBillPayment\\\": true,\\n    \\\"value\\\": {\\n      \\\"amount\\\": 250,\\n      \\\"currency\\\": \\\"GBP\\\"\\n    },\\n    \\\"narrative\\\": {\\n      \\\"line1\\\": \\\"MindPalace\\\",\\n      \\\"line2\\\": \\\"Memory\\\"\\n    },\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/networkToken+applepay\\\",\\n      \\\"cardHolderName\\\": \\\"Sherlock Holmes\\\",\\n      \\\"expiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2050\\n      },\\n      \\\"tokenNumber\\\": \\\"4444333322221111\\\",\\n      \\\"billingAddress\\\": {\\n        \\\"address1\\\": \\\"221B Baker Street\\\",\\n        \\\"address2\\\": \\\"Marylebone\\\",\\n        \\\"address3\\\": \\\"Westminster\\\",\\n        \\\"postalCode\\\": \\\"NW1 6XE\\\",\\n        \\\"city\\\": \\\"Cambridge\\\",\\n        \\\"countryCode\\\": \\\"GB\\\"\\n      }\\n    },\\n    \\\"customerAgreement\\\": {\\n      \\\"type\\\": \\\"cardOnFile\\\",\\n      \\\"storedCardUsage\\\": \\\"first\\\"\\n    }\\n  },\\n  \\\"authentication\\\": {\\n    \\\"networkToken\\\": {\\n      \\\"cryptogram\\\": \\\"MAAAAAAB=\\\",\\n      \\\"eci\\\": \\\"06\\\"\\n    }\\n  }\\n}\",\n  CURLOPT_URL => \"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\",\n  CURLOPT_RETURNTRANSFER => true,\n  CURLOPT_CUSTOMREQUEST => \"POST\",\n]);\n\n$response = curl_exec($curl);\n$error = curl_error($curl);\n\ncurl_close($curl);\n\nif ($error) {\n  echo \"cURL Error #:\" . $error;\n} else {\n  echo $response;\n}"},{"lang":"ruby","title":"Ruby","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI('https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications')\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest['Accept'] = 'application/vnd.worldpay.cardVerifications-v6+json'\nrequest['Content-Type'] = 'application/vnd.worldpay.cardverifications-v6+json'\nrequest.body = \"{\\n  \\\"type\\\": \\\"cardVerification\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\\n  \\\"instruction\\\": {\\n    \\\"consumerBillPayment\\\": true,\\n    \\\"value\\\": {\\n      \\\"amount\\\": 250,\\n      \\\"currency\\\": \\\"GBP\\\"\\n    },\\n    \\\"narrative\\\": {\\n      \\\"line1\\\": \\\"MindPalace\\\",\\n      \\\"line2\\\": \\\"Memory\\\"\\n    },\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/networkToken+applepay\\\",\\n      \\\"cardHolderName\\\": \\\"Sherlock Holmes\\\",\\n      \\\"expiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2050\\n      },\\n      \\\"tokenNumber\\\": \\\"4444333322221111\\\",\\n      \\\"billingAddress\\\": {\\n        \\\"address1\\\": \\\"221B Baker Street\\\",\\n        \\\"address2\\\": \\\"Marylebone\\\",\\n        \\\"address3\\\": \\\"Westminster\\\",\\n        \\\"postalCode\\\": \\\"NW1 6XE\\\",\\n        \\\"city\\\": \\\"Cambridge\\\",\\n        \\\"countryCode\\\": \\\"GB\\\"\\n      }\\n    },\\n    \\\"customerAgreement\\\": {\\n      \\\"type\\\": \\\"cardOnFile\\\",\\n      \\\"storedCardUsage\\\": \\\"first\\\"\\n    }\\n  },\\n  \\\"authentication\\\": {\\n    \\\"networkToken\\\": {\\n      \\\"cryptogram\\\": \\\"MAAAAAAB=\\\",\\n      \\\"eci\\\": \\\"06\\\"\\n    }\\n  }\\n}\"\n\nresponse = http.request(request)\nputs response.read_body\n"},{"lang":"csharp","title":"C#","source":"using System;\nusing System.Net.Http;\nusing System.Threading.Tasks;\n\npublic class Program\n{\n  public static async Task Main()\n  {\n    System.Net.Http.HttpClient client = new()\n    {\n      DefaultRequestHeaders =\n      {\n        {\"Accept\", \"application/vnd.worldpay.cardVerifications-v6+json\"},\n      }\n    };\n\n    using HttpResponseMessage request = await client.PostAsync(\"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\", postData);\n    string response = await request.Content.ReadAsStringAsync();\n\n    Console.WriteLine(response);\n  }\n}"}]},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Google Pay decrypted","disable":false},"children":[{"$$mdtype":"Tag","name":"OpenApiCodeSample","attributes":{"descriptionFile":"api-docs-products/card-verifications/@v6/openapi.yaml","operationId":"cardVerify","exampleKey":"Successful card verification with Google Pay decrypted","parameters":{},"environments":{},"codeSamplesResolved":[{"lang":"json","title":"Payload application/vnd.worldpay.cardverifications-v6+json","source":"{\n  \"type\": \"cardVerification\",\n  \"merchant\": {\n    \"entity\": \"default\"\n  },\n  \"transactionReference\": \"Memory265-13/08/1877\",\n  \"instruction\": {\n    \"consumerBillPayment\": true,\n    \"value\": {\n      \"amount\": 250,\n      \"currency\": \"GBP\"\n    },\n    \"narrative\": {\n      \"line1\": \"MindPalace\",\n      \"line2\": \"Memory\"\n    },\n    \"paymentInstrument\": {\n      \"type\": \"card/networkToken+googlepay\",\n      \"cardHolderName\": \"Sherlock Holmes\",\n      \"expiryDate\": {\n        \"month\": 5,\n        \"year\": 2050\n      },\n      \"tokenNumber\": \"4444333322221111\",\n      \"billingAddress\": {\n        \"address1\": \"221B Baker Street\",\n        \"address2\": \"Marylebone\",\n        \"address3\": \"Westminster\",\n        \"postalCode\": \"NW1 6XE\",\n        \"city\": \"Cambridge\",\n        \"countryCode\": \"GB\"\n      }\n    },\n    \"customerAgreement\": {\n      \"type\": \"cardOnFile\",\n      \"storedCardUsage\": \"first\"\n    }\n  },\n  \"authentication\": {\n    \"networkToken\": {\n      \"cryptogram\": \"MAAAAACB=\",\n      \"eci\": \"02\"\n    }\n  }\n}"},{"lang":"shell","title":"curl","source":"curl -i -X POST \\\n  https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications \\\n  -H 'Accept: application/vnd.worldpay.cardVerifications-v6+json' \\\n  -H 'Content-Type: application/vnd.worldpay.cardverifications-v6+json' \\\n  -d '{\n    \"type\": \"cardVerification\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"transactionReference\": \"Memory265-13/08/1877\",\n    \"instruction\": {\n      \"consumerBillPayment\": true,\n      \"value\": {\n        \"amount\": 250,\n        \"currency\": \"GBP\"\n      },\n      \"narrative\": {\n        \"line1\": \"MindPalace\",\n        \"line2\": \"Memory\"\n      },\n      \"paymentInstrument\": {\n        \"type\": \"card/networkToken+googlepay\",\n        \"cardHolderName\": \"Sherlock Holmes\",\n        \"expiryDate\": {\n          \"month\": 5,\n          \"year\": 2050\n        },\n        \"tokenNumber\": \"4444333322221111\",\n        \"billingAddress\": {\n          \"address1\": \"221B Baker Street\",\n          \"address2\": \"Marylebone\",\n          \"address3\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"Cambridge\",\n          \"countryCode\": \"GB\"\n        }\n      },\n      \"customerAgreement\": {\n        \"type\": \"cardOnFile\",\n        \"storedCardUsage\": \"first\"\n      }\n    },\n    \"authentication\": {\n      \"networkToken\": {\n        \"cryptogram\": \"MAAAAACB=\",\n        \"eci\": \"02\"\n      }\n    }\n  }'"},{"lang":"python","title":"Python","source":"import requests\n\nurl = \"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\"\n\npayload = '''\n  {\n    \"type\": \"cardVerification\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"transactionReference\": \"Memory265-13/08/1877\",\n    \"instruction\": {\n      \"consumerBillPayment\": true,\n      \"value\": {\n        \"amount\": 250,\n        \"currency\": \"GBP\"\n      },\n      \"narrative\": {\n        \"line1\": \"MindPalace\",\n        \"line2\": \"Memory\"\n      },\n      \"paymentInstrument\": {\n        \"type\": \"card/networkToken+googlepay\",\n        \"cardHolderName\": \"Sherlock Holmes\",\n        \"expiryDate\": {\n          \"month\": 5,\n          \"year\": 2050\n        },\n        \"tokenNumber\": \"4444333322221111\",\n        \"billingAddress\": {\n          \"address1\": \"221B Baker Street\",\n          \"address2\": \"Marylebone\",\n          \"address3\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"Cambridge\",\n          \"countryCode\": \"GB\"\n        }\n      },\n      \"customerAgreement\": {\n        \"type\": \"cardOnFile\",\n        \"storedCardUsage\": \"first\"\n      }\n    },\n    \"authentication\": {\n      \"networkToken\": {\n        \"cryptogram\": \"MAAAAACB=\",\n        \"eci\": \"02\"\n      }\n    }\n  }\n'''\n\nheaders = {\n  \"Accept\": \"application/vnd.worldpay.cardVerifications-v6+json\",\n  \"Content-Type\": \"application/vnd.worldpay.cardverifications-v6+json\"\n}\n\nresponse = requests.post(url, data=payload, headers=headers)\n\ndata = response.json()\nprint(data)"},{"lang":"java","title":"Java","source":"import java.net.*;\nimport java.net.http.*;\nimport java.util.*;\n\npublic class App {\n  public static void main(String[] args) throws Exception {\n    var httpClient = HttpClient.newBuilder().build();\n\n    var host = \"https://try.access.worldpay-bsh.securedataplatform.co.uk\";\n    var pathname = \"/cardVerifications\";\n    var request = HttpRequest.newBuilder()\n      .POST(HttpRequest.BodyPublishers.ofString(payload))\n      .uri(URI.create(host + pathname ))\n      .header(\"Accept\", \"application/vnd.worldpay.cardVerifications-v6+json\")\n      .header(\"Content-Type\", \"application/vnd.worldpay.cardverifications-v6+json\")\n      .build();\n\n    var response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());\n\n    System.out.println(response.body());\n  }\n}"},{"lang":"javascript","title":"Node.js","source":"import fetch from 'node-fetch';\n\nasync function run() {\n  const resp = await fetch(\n    `https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications`,\n    {\n      method: 'POST',\n      headers: {\n        Accept: 'application/vnd.worldpay.cardVerifications-v6+json',\n        'Content-Type': 'application/vnd.worldpay.cardverifications-v6+json'\n      },\n      body: `{\n          \"type\": \"cardVerification\",\n          \"merchant\": {\n            \"entity\": \"default\"\n          },\n          \"transactionReference\": \"Memory265-13/08/1877\",\n          \"instruction\": {\n            \"consumerBillPayment\": true,\n            \"value\": {\n              \"amount\": 250,\n              \"currency\": \"GBP\"\n            },\n            \"narrative\": {\n              \"line1\": \"MindPalace\",\n              \"line2\": \"Memory\"\n            },\n            \"paymentInstrument\": {\n              \"type\": \"card/networkToken+googlepay\",\n              \"cardHolderName\": \"Sherlock Holmes\",\n              \"expiryDate\": {\n                \"month\": 5,\n                \"year\": 2050\n              },\n              \"tokenNumber\": \"4444333322221111\",\n              \"billingAddress\": {\n                \"address1\": \"221B Baker Street\",\n                \"address2\": \"Marylebone\",\n                \"address3\": \"Westminster\",\n                \"postalCode\": \"NW1 6XE\",\n                \"city\": \"Cambridge\",\n                \"countryCode\": \"GB\"\n              }\n            },\n            \"customerAgreement\": {\n              \"type\": \"cardOnFile\",\n              \"storedCardUsage\": \"first\"\n            }\n          },\n          \"authentication\": {\n            \"networkToken\": {\n              \"cryptogram\": \"MAAAAACB=\",\n              \"eci\": \"02\"\n            }\n          }\n        }`\n    }\n  );\n\n  const data = await resp.text();\n  console.log(data);\n}\n\nrun();"},{"lang":"go","title":"Go","source":"package main\n\nimport (\n  \"fmt\"\n  \"strings\"\n  \"net/http\"\n  \"io/ioutil\"\n)\n\nfunc main() {\n  reqUrl := \"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\"\n  payload := strings.NewReader(\"{\\n  \\\"type\\\": \\\"cardVerification\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1877\\\",\\n  \\\"instruction\\\": {\\n    \\\"consumerBillPayment\\\": true,\\n    \\\"value\\\": {\\n      \\\"amount\\\": 250,\\n      \\\"currency\\\": \\\"GBP\\\"\\n    },\\n    \\\"narrative\\\": {\\n      \\\"line1\\\": \\\"MindPalace\\\",\\n      \\\"line2\\\": \\\"Memory\\\"\\n    },\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/networkToken+googlepay\\\",\\n      \\\"cardHolderName\\\": \\\"Sherlock Holmes\\\",\\n      \\\"expiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2050\\n      },\\n      \\\"tokenNumber\\\": \\\"4444333322221111\\\",\\n      \\\"billingAddress\\\": {\\n        \\\"address1\\\": \\\"221B Baker Street\\\",\\n        \\\"address2\\\": \\\"Marylebone\\\",\\n        \\\"address3\\\": \\\"Westminster\\\",\\n        \\\"postalCode\\\": \\\"NW1 6XE\\\",\\n        \\\"city\\\": \\\"Cambridge\\\",\\n        \\\"countryCode\\\": \\\"GB\\\"\\n      }\\n    },\\n    \\\"customerAgreement\\\": {\\n      \\\"type\\\": \\\"cardOnFile\\\",\\n      \\\"storedCardUsage\\\": \\\"first\\\"\\n    }\\n  },\\n  \\\"authentication\\\": {\\n    \\\"networkToken\\\": {\\n      \\\"cryptogram\\\": \\\"MAAAAACB=\\\",\\n      \\\"eci\\\": \\\"02\\\"\\n    }\\n  }\\n}\")\n  req, err := http.NewRequest(\"POST\", reqUrl, payload)\n  if err != nil {\n    panic(err)\n  }\n  req.Header.Add(\"Accept\", \"application/vnd.worldpay.cardVerifications-v6+json\")\n  req.Header.Add(\"Content-Type\", \"application/vnd.worldpay.cardverifications-v6+json\")\n  res, err := http.DefaultClient.Do(req)\n  if err != nil {\n    panic(err)\n  }\n  defer res.Body.Close()\n  body, err := ioutil.ReadAll(res.Body)\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Println(res)\n  fmt.Println(string(body))\n}"},{"lang":"php","title":"PHP","source":"/**\n * Requires libcurl\n */\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n  CURLOPT_HTTPHEADER => [\n    \"Accept: application/vnd.worldpay.cardVerifications-v6+json\",\n    \"Content-Type: application/vnd.worldpay.cardverifications-v6+json\"\n  ],\n  CURLOPT_POSTFIELDS => \"{\\n  \\\"type\\\": \\\"cardVerification\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1877\\\",\\n  \\\"instruction\\\": {\\n    \\\"consumerBillPayment\\\": true,\\n    \\\"value\\\": {\\n      \\\"amount\\\": 250,\\n      \\\"currency\\\": \\\"GBP\\\"\\n    },\\n    \\\"narrative\\\": {\\n      \\\"line1\\\": \\\"MindPalace\\\",\\n      \\\"line2\\\": \\\"Memory\\\"\\n    },\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/networkToken+googlepay\\\",\\n      \\\"cardHolderName\\\": \\\"Sherlock Holmes\\\",\\n      \\\"expiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2050\\n      },\\n      \\\"tokenNumber\\\": \\\"4444333322221111\\\",\\n      \\\"billingAddress\\\": {\\n        \\\"address1\\\": \\\"221B Baker Street\\\",\\n        \\\"address2\\\": \\\"Marylebone\\\",\\n        \\\"address3\\\": \\\"Westminster\\\",\\n        \\\"postalCode\\\": \\\"NW1 6XE\\\",\\n        \\\"city\\\": \\\"Cambridge\\\",\\n        \\\"countryCode\\\": \\\"GB\\\"\\n      }\\n    },\\n    \\\"customerAgreement\\\": {\\n      \\\"type\\\": \\\"cardOnFile\\\",\\n      \\\"storedCardUsage\\\": \\\"first\\\"\\n    }\\n  },\\n  \\\"authentication\\\": {\\n    \\\"networkToken\\\": {\\n      \\\"cryptogram\\\": \\\"MAAAAACB=\\\",\\n      \\\"eci\\\": \\\"02\\\"\\n    }\\n  }\\n}\",\n  CURLOPT_URL => \"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\",\n  CURLOPT_RETURNTRANSFER => true,\n  CURLOPT_CUSTOMREQUEST => \"POST\",\n]);\n\n$response = curl_exec($curl);\n$error = curl_error($curl);\n\ncurl_close($curl);\n\nif ($error) {\n  echo \"cURL Error #:\" . $error;\n} else {\n  echo $response;\n}"},{"lang":"ruby","title":"Ruby","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI('https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications')\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest['Accept'] = 'application/vnd.worldpay.cardVerifications-v6+json'\nrequest['Content-Type'] = 'application/vnd.worldpay.cardverifications-v6+json'\nrequest.body = \"{\\n  \\\"type\\\": \\\"cardVerification\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1877\\\",\\n  \\\"instruction\\\": {\\n    \\\"consumerBillPayment\\\": true,\\n    \\\"value\\\": {\\n      \\\"amount\\\": 250,\\n      \\\"currency\\\": \\\"GBP\\\"\\n    },\\n    \\\"narrative\\\": {\\n      \\\"line1\\\": \\\"MindPalace\\\",\\n      \\\"line2\\\": \\\"Memory\\\"\\n    },\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/networkToken+googlepay\\\",\\n      \\\"cardHolderName\\\": \\\"Sherlock Holmes\\\",\\n      \\\"expiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2050\\n      },\\n      \\\"tokenNumber\\\": \\\"4444333322221111\\\",\\n      \\\"billingAddress\\\": {\\n        \\\"address1\\\": \\\"221B Baker Street\\\",\\n        \\\"address2\\\": \\\"Marylebone\\\",\\n        \\\"address3\\\": \\\"Westminster\\\",\\n        \\\"postalCode\\\": \\\"NW1 6XE\\\",\\n        \\\"city\\\": \\\"Cambridge\\\",\\n        \\\"countryCode\\\": \\\"GB\\\"\\n      }\\n    },\\n    \\\"customerAgreement\\\": {\\n      \\\"type\\\": \\\"cardOnFile\\\",\\n      \\\"storedCardUsage\\\": \\\"first\\\"\\n    }\\n  },\\n  \\\"authentication\\\": {\\n    \\\"networkToken\\\": {\\n      \\\"cryptogram\\\": \\\"MAAAAACB=\\\",\\n      \\\"eci\\\": \\\"02\\\"\\n    }\\n  }\\n}\"\n\nresponse = http.request(request)\nputs response.read_body\n"},{"lang":"csharp","title":"C#","source":"using System;\nusing System.Net.Http;\nusing System.Threading.Tasks;\n\npublic class Program\n{\n  public static async Task Main()\n  {\n    System.Net.Http.HttpClient client = new()\n    {\n      DefaultRequestHeaders =\n      {\n        {\"Accept\", \"application/vnd.worldpay.cardVerifications-v6+json\"},\n      }\n    };\n\n    using HttpResponseMessage request = await client.PostAsync(\"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\", postData);\n    string response = await request.Content.ReadAsStringAsync();\n\n    Console.WriteLine(response);\n  }\n}"}]},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Samsung Pay decrypted","disable":false},"children":[{"$$mdtype":"Tag","name":"OpenApiCodeSample","attributes":{"descriptionFile":"api-docs-products/card-verifications/@v6/openapi.yaml","operationId":"cardVerify","exampleKey":"Successful card verification with Samsung Pay decrypted","parameters":{},"environments":{},"codeSamplesResolved":[{"lang":"json","title":"Payload application/vnd.worldpay.cardverifications-v6+json","source":"{\n  \"type\": \"cardVerification\",\n  \"merchant\": {\n    \"entity\": \"default\"\n  },\n  \"transactionReference\": \"Memory265-13/08/1878\",\n  \"instruction\": {\n    \"consumerBillPayment\": true,\n    \"value\": {\n      \"amount\": 250,\n      \"currency\": \"GBP\"\n    },\n    \"narrative\": {\n      \"line1\": \"MindPalace\",\n      \"line2\": \"Memory\"\n    },\n    \"paymentInstrument\": {\n      \"type\": \"card/networkToken+samsungpay\",\n      \"cardHolderName\": \"Sherlock Holmes\",\n      \"expiryDate\": {\n        \"month\": 5,\n        \"year\": 2050\n      },\n      \"tokenNumber\": \"4444333322221111\",\n      \"billingAddress\": {\n        \"address1\": \"221B Baker Street\",\n        \"address2\": \"Marylebone\",\n        \"address3\": \"Westminster\",\n        \"postalCode\": \"NW1 6XE\",\n        \"city\": \"Cambridge\",\n        \"countryCode\": \"GB\"\n      }\n    },\n    \"customerAgreement\": {\n      \"type\": \"cardOnFile\",\n      \"storedCardUsage\": \"first\"\n    }\n  },\n  \"authentication\": {\n    \"networkToken\": {\n      \"cryptogram\": \"MAAACDAB=\",\n      \"eci\": \"04\"\n    }\n  }\n}"},{"lang":"shell","title":"curl","source":"curl -i -X POST \\\n  https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications \\\n  -H 'Accept: application/vnd.worldpay.cardVerifications-v6+json' \\\n  -H 'Content-Type: application/vnd.worldpay.cardverifications-v6+json' \\\n  -d '{\n    \"type\": \"cardVerification\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"transactionReference\": \"Memory265-13/08/1878\",\n    \"instruction\": {\n      \"consumerBillPayment\": true,\n      \"value\": {\n        \"amount\": 250,\n        \"currency\": \"GBP\"\n      },\n      \"narrative\": {\n        \"line1\": \"MindPalace\",\n        \"line2\": \"Memory\"\n      },\n      \"paymentInstrument\": {\n        \"type\": \"card/networkToken+samsungpay\",\n        \"cardHolderName\": \"Sherlock Holmes\",\n        \"expiryDate\": {\n          \"month\": 5,\n          \"year\": 2050\n        },\n        \"tokenNumber\": \"4444333322221111\",\n        \"billingAddress\": {\n          \"address1\": \"221B Baker Street\",\n          \"address2\": \"Marylebone\",\n          \"address3\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"Cambridge\",\n          \"countryCode\": \"GB\"\n        }\n      },\n      \"customerAgreement\": {\n        \"type\": \"cardOnFile\",\n        \"storedCardUsage\": \"first\"\n      }\n    },\n    \"authentication\": {\n      \"networkToken\": {\n        \"cryptogram\": \"MAAACDAB=\",\n        \"eci\": \"04\"\n      }\n    }\n  }'"},{"lang":"python","title":"Python","source":"import requests\n\nurl = \"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\"\n\npayload = '''\n  {\n    \"type\": \"cardVerification\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"transactionReference\": \"Memory265-13/08/1878\",\n    \"instruction\": {\n      \"consumerBillPayment\": true,\n      \"value\": {\n        \"amount\": 250,\n        \"currency\": \"GBP\"\n      },\n      \"narrative\": {\n        \"line1\": \"MindPalace\",\n        \"line2\": \"Memory\"\n      },\n      \"paymentInstrument\": {\n        \"type\": \"card/networkToken+samsungpay\",\n        \"cardHolderName\": \"Sherlock Holmes\",\n        \"expiryDate\": {\n          \"month\": 5,\n          \"year\": 2050\n        },\n        \"tokenNumber\": \"4444333322221111\",\n        \"billingAddress\": {\n          \"address1\": \"221B Baker Street\",\n          \"address2\": \"Marylebone\",\n          \"address3\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"Cambridge\",\n          \"countryCode\": \"GB\"\n        }\n      },\n      \"customerAgreement\": {\n        \"type\": \"cardOnFile\",\n        \"storedCardUsage\": \"first\"\n      }\n    },\n    \"authentication\": {\n      \"networkToken\": {\n        \"cryptogram\": \"MAAACDAB=\",\n        \"eci\": \"04\"\n      }\n    }\n  }\n'''\n\nheaders = {\n  \"Accept\": \"application/vnd.worldpay.cardVerifications-v6+json\",\n  \"Content-Type\": \"application/vnd.worldpay.cardverifications-v6+json\"\n}\n\nresponse = requests.post(url, data=payload, headers=headers)\n\ndata = response.json()\nprint(data)"},{"lang":"java","title":"Java","source":"import java.net.*;\nimport java.net.http.*;\nimport java.util.*;\n\npublic class App {\n  public static void main(String[] args) throws Exception {\n    var httpClient = HttpClient.newBuilder().build();\n\n    var host = \"https://try.access.worldpay-bsh.securedataplatform.co.uk\";\n    var pathname = \"/cardVerifications\";\n    var request = HttpRequest.newBuilder()\n      .POST(HttpRequest.BodyPublishers.ofString(payload))\n      .uri(URI.create(host + pathname ))\n      .header(\"Accept\", \"application/vnd.worldpay.cardVerifications-v6+json\")\n      .header(\"Content-Type\", \"application/vnd.worldpay.cardverifications-v6+json\")\n      .build();\n\n    var response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());\n\n    System.out.println(response.body());\n  }\n}"},{"lang":"javascript","title":"Node.js","source":"import fetch from 'node-fetch';\n\nasync function run() {\n  const resp = await fetch(\n    `https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications`,\n    {\n      method: 'POST',\n      headers: {\n        Accept: 'application/vnd.worldpay.cardVerifications-v6+json',\n        'Content-Type': 'application/vnd.worldpay.cardverifications-v6+json'\n      },\n      body: `{\n          \"type\": \"cardVerification\",\n          \"merchant\": {\n            \"entity\": \"default\"\n          },\n          \"transactionReference\": \"Memory265-13/08/1878\",\n          \"instruction\": {\n            \"consumerBillPayment\": true,\n            \"value\": {\n              \"amount\": 250,\n              \"currency\": \"GBP\"\n            },\n            \"narrative\": {\n              \"line1\": \"MindPalace\",\n              \"line2\": \"Memory\"\n            },\n            \"paymentInstrument\": {\n              \"type\": \"card/networkToken+samsungpay\",\n              \"cardHolderName\": \"Sherlock Holmes\",\n              \"expiryDate\": {\n                \"month\": 5,\n                \"year\": 2050\n              },\n              \"tokenNumber\": \"4444333322221111\",\n              \"billingAddress\": {\n                \"address1\": \"221B Baker Street\",\n                \"address2\": \"Marylebone\",\n                \"address3\": \"Westminster\",\n                \"postalCode\": \"NW1 6XE\",\n                \"city\": \"Cambridge\",\n                \"countryCode\": \"GB\"\n              }\n            },\n            \"customerAgreement\": {\n              \"type\": \"cardOnFile\",\n              \"storedCardUsage\": \"first\"\n            }\n          },\n          \"authentication\": {\n            \"networkToken\": {\n              \"cryptogram\": \"MAAACDAB=\",\n              \"eci\": \"04\"\n            }\n          }\n        }`\n    }\n  );\n\n  const data = await resp.text();\n  console.log(data);\n}\n\nrun();"},{"lang":"go","title":"Go","source":"package main\n\nimport (\n  \"fmt\"\n  \"strings\"\n  \"net/http\"\n  \"io/ioutil\"\n)\n\nfunc main() {\n  reqUrl := \"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\"\n  payload := strings.NewReader(\"{\\n  \\\"type\\\": \\\"cardVerification\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1878\\\",\\n  \\\"instruction\\\": {\\n    \\\"consumerBillPayment\\\": true,\\n    \\\"value\\\": {\\n      \\\"amount\\\": 250,\\n      \\\"currency\\\": \\\"GBP\\\"\\n    },\\n    \\\"narrative\\\": {\\n      \\\"line1\\\": \\\"MindPalace\\\",\\n      \\\"line2\\\": \\\"Memory\\\"\\n    },\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/networkToken+samsungpay\\\",\\n      \\\"cardHolderName\\\": \\\"Sherlock Holmes\\\",\\n      \\\"expiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2050\\n      },\\n      \\\"tokenNumber\\\": \\\"4444333322221111\\\",\\n      \\\"billingAddress\\\": {\\n        \\\"address1\\\": \\\"221B Baker Street\\\",\\n        \\\"address2\\\": \\\"Marylebone\\\",\\n        \\\"address3\\\": \\\"Westminster\\\",\\n        \\\"postalCode\\\": \\\"NW1 6XE\\\",\\n        \\\"city\\\": \\\"Cambridge\\\",\\n        \\\"countryCode\\\": \\\"GB\\\"\\n      }\\n    },\\n    \\\"customerAgreement\\\": {\\n      \\\"type\\\": \\\"cardOnFile\\\",\\n      \\\"storedCardUsage\\\": \\\"first\\\"\\n    }\\n  },\\n  \\\"authentication\\\": {\\n    \\\"networkToken\\\": {\\n      \\\"cryptogram\\\": \\\"MAAACDAB=\\\",\\n      \\\"eci\\\": \\\"04\\\"\\n    }\\n  }\\n}\")\n  req, err := http.NewRequest(\"POST\", reqUrl, payload)\n  if err != nil {\n    panic(err)\n  }\n  req.Header.Add(\"Accept\", \"application/vnd.worldpay.cardVerifications-v6+json\")\n  req.Header.Add(\"Content-Type\", \"application/vnd.worldpay.cardverifications-v6+json\")\n  res, err := http.DefaultClient.Do(req)\n  if err != nil {\n    panic(err)\n  }\n  defer res.Body.Close()\n  body, err := ioutil.ReadAll(res.Body)\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Println(res)\n  fmt.Println(string(body))\n}"},{"lang":"php","title":"PHP","source":"/**\n * Requires libcurl\n */\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n  CURLOPT_HTTPHEADER => [\n    \"Accept: application/vnd.worldpay.cardVerifications-v6+json\",\n    \"Content-Type: application/vnd.worldpay.cardverifications-v6+json\"\n  ],\n  CURLOPT_POSTFIELDS => \"{\\n  \\\"type\\\": \\\"cardVerification\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1878\\\",\\n  \\\"instruction\\\": {\\n    \\\"consumerBillPayment\\\": true,\\n    \\\"value\\\": {\\n      \\\"amount\\\": 250,\\n      \\\"currency\\\": \\\"GBP\\\"\\n    },\\n    \\\"narrative\\\": {\\n      \\\"line1\\\": \\\"MindPalace\\\",\\n      \\\"line2\\\": \\\"Memory\\\"\\n    },\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/networkToken+samsungpay\\\",\\n      \\\"cardHolderName\\\": \\\"Sherlock Holmes\\\",\\n      \\\"expiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2050\\n      },\\n      \\\"tokenNumber\\\": \\\"4444333322221111\\\",\\n      \\\"billingAddress\\\": {\\n        \\\"address1\\\": \\\"221B Baker Street\\\",\\n        \\\"address2\\\": \\\"Marylebone\\\",\\n        \\\"address3\\\": \\\"Westminster\\\",\\n        \\\"postalCode\\\": \\\"NW1 6XE\\\",\\n        \\\"city\\\": \\\"Cambridge\\\",\\n        \\\"countryCode\\\": \\\"GB\\\"\\n      }\\n    },\\n    \\\"customerAgreement\\\": {\\n      \\\"type\\\": \\\"cardOnFile\\\",\\n      \\\"storedCardUsage\\\": \\\"first\\\"\\n    }\\n  },\\n  \\\"authentication\\\": {\\n    \\\"networkToken\\\": {\\n      \\\"cryptogram\\\": \\\"MAAACDAB=\\\",\\n      \\\"eci\\\": \\\"04\\\"\\n    }\\n  }\\n}\",\n  CURLOPT_URL => \"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\",\n  CURLOPT_RETURNTRANSFER => true,\n  CURLOPT_CUSTOMREQUEST => \"POST\",\n]);\n\n$response = curl_exec($curl);\n$error = curl_error($curl);\n\ncurl_close($curl);\n\nif ($error) {\n  echo \"cURL Error #:\" . $error;\n} else {\n  echo $response;\n}"},{"lang":"ruby","title":"Ruby","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI('https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications')\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest['Accept'] = 'application/vnd.worldpay.cardVerifications-v6+json'\nrequest['Content-Type'] = 'application/vnd.worldpay.cardverifications-v6+json'\nrequest.body = \"{\\n  \\\"type\\\": \\\"cardVerification\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1878\\\",\\n  \\\"instruction\\\": {\\n    \\\"consumerBillPayment\\\": true,\\n    \\\"value\\\": {\\n      \\\"amount\\\": 250,\\n      \\\"currency\\\": \\\"GBP\\\"\\n    },\\n    \\\"narrative\\\": {\\n      \\\"line1\\\": \\\"MindPalace\\\",\\n      \\\"line2\\\": \\\"Memory\\\"\\n    },\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/networkToken+samsungpay\\\",\\n      \\\"cardHolderName\\\": \\\"Sherlock Holmes\\\",\\n      \\\"expiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2050\\n      },\\n      \\\"tokenNumber\\\": \\\"4444333322221111\\\",\\n      \\\"billingAddress\\\": {\\n        \\\"address1\\\": \\\"221B Baker Street\\\",\\n        \\\"address2\\\": \\\"Marylebone\\\",\\n        \\\"address3\\\": \\\"Westminster\\\",\\n        \\\"postalCode\\\": \\\"NW1 6XE\\\",\\n        \\\"city\\\": \\\"Cambridge\\\",\\n        \\\"countryCode\\\": \\\"GB\\\"\\n      }\\n    },\\n    \\\"customerAgreement\\\": {\\n      \\\"type\\\": \\\"cardOnFile\\\",\\n      \\\"storedCardUsage\\\": \\\"first\\\"\\n    }\\n  },\\n  \\\"authentication\\\": {\\n    \\\"networkToken\\\": {\\n      \\\"cryptogram\\\": \\\"MAAACDAB=\\\",\\n      \\\"eci\\\": \\\"04\\\"\\n    }\\n  }\\n}\"\n\nresponse = http.request(request)\nputs response.read_body\n"},{"lang":"csharp","title":"C#","source":"using System;\nusing System.Net.Http;\nusing System.Threading.Tasks;\n\npublic class Program\n{\n  public static async Task Main()\n  {\n    System.Net.Http.HttpClient client = new()\n    {\n      DefaultRequestHeaders =\n      {\n        {\"Accept\", \"application/vnd.worldpay.cardVerifications-v6+json\"},\n      }\n    };\n\n    using HttpResponseMessage request = await client.PostAsync(\"https://try.access.worldpay-bsh.securedataplatform.co.uk/cardVerifications\", postData);\n    string response = await request.Content.ReadAsStringAsync();\n\n    Console.WriteLine(response);\n  }\n}"}]},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"apple-pay-google-pay-and-samsung-pay-decrypted-parameter-descriptions","__idx":14},"children":["Apple Pay, Google Pay, and Samsung Pay decrypted parameter descriptions"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can view the full details for the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"card/networkToken+applepay\""]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"card/networkToken+googlepay\""]},", and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"card/networkToken+samsungpay\""]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["paymentInstrument"]},"in our ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/card-verifications/openapi"},"children":["API Reference"]},"."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"funds-transfers","__idx":15},"children":["Funds transfers"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A funds transfer is a money movement for a reason other than for the purchase of goods or services. These are also referred to as Account Funding Transactions (AFTs)."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Examples:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["loading a wallet with funds using a card (including stored value digital wallets and crypto or trading wallets)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["adding funds to a pre-paid card using another card"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["sending money to another person (for example as a gift)"]}]},{"$$mdtype":"Tag","name":"details","attributes":{},"children":[{"$$mdtype":"Tag","name":"summary","attributes":{},"children":["Parameters"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You must include the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["instruction.fundsTransfer"]}," object to correctly flag a transaction as a funds transfer."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Parameter"},"children":["Parameter"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required?"},"children":["Required?"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["instruction.fundsTransfer"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["❌"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["An object containing details about the transfer and the sender and recipient of funds."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["fundsTransfer.type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["✅"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Possible values:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["accountToAccount"]}," - Move funds to another financial institution account owned by the same person "]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cash"]}," - A card is used to fund a transfer where funds are given to the recipient in cash"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["disbursement"]}," - A card is used as the source of funds for a disbursement "]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["transfer"]}," - Move funds to another account owned by the same person. Eg crypto/trading"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["personToPerson"]}," - Move money to an account owned by another person "]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payrollDisbursement"]}," - Use a card to fund payroll disbursements"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["prePaidTopUp"]}," - Top up a pre-paid card "]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["debitTopUp"]}," - Transfer funds from a card to a debit card account owned by the same person"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["fundsTransfer.purpose"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["❌"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Possible values:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["familySupport"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["travel"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["education"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["medical"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["emergency"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["savings"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["gift"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["other"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["salary"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["crowdLending"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["crypto"]}]}]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"code-example","__idx":16},"children":["Code example"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"    \"instruction\": {        \n        \"fundsTransfer\": {\n            \"type\": \"transfer\",\n            \"purpose\": \"crypto\",\n           }\n      }\n"},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"response","__idx":17},"children":["Response"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You receive:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["200"]}," (name inquiry) or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["201"]}," (card verification) HTTP response code"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["a verification ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["outcome"]}," (either ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["verified"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["not verified"]},")"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["an ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/reference/refusal-response"},"children":["issuer response code and description"]}," (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["not verified"]}," result only), and a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["refusalAdvice"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["code"]}," (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["not verified"]}," result only and MasterCard is the only card that may return this)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["a scheme reference for card on file only (not all issuers return this)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#risk-factors"},"children":["riskFactors"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["paymentInstrument"]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"success","name":"Best practice"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Access Worldpay returns a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["WP-CorrelationId"]}," in the headers of service responses. We ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["highly recommend"]}," you log this. The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["WP-CorrelationId"]}," is used by us to examine individual service requests."]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Note"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["paymentInstrument"]}," contains the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["paymentInstrument.type"]}," sent in the request at minimum. If you wish to receive more card metadata this must be enabled. For more information contact your Worldpay Implementation Manager."]}]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Verified (card verification)","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"file":"./code/card-verification-verified.json","language":"json","header":{"controls":{"copy":{}}},"lang":"json","source":"{\n    \"outcome\": \"verified\",    \n    \"scheme\": {\n        \"reference\": \"MCCYQ2PBT0626\"\n    },\n    \"checkedAt\": \"2024-06-26T14:33:22.780572Z\",\n    \"riskFactors\": [\n        {\n            \"risk\": \"matched\",\n            \"type\": \"cvc\"\n        },\n        {\n            \"risk\": \"notSupplied\",\n            \"detail\": \"postcode\",\n            \"type\": \"avs\"\n        },\n        {\n            \"risk\": \"notSupplied\",\n            \"detail\": \"address\",\n            \"type\": \"avs\"\n        }\n    ],\n    \"paymentInstrument\": {\n        \"type\": \"card/plain+masked\",\n        \"countryCode\": \"GB\",\n        \"cardBrand\": \"mastercard\",\n        \"fundingType\": \"credit\",\n        \"issuerName\": \"BANK OF SCOTLAND PLC\",\n        \"category\": \"consumer\"\n    },\n    \"_links\": {\n        \"cardVerifications:verification\": {\n            \"href\": \"https://access.worldpay-bsh.securedataplatform.co.uk/cardVerifications/MjpHbzRkTGNDVnh1alJzN3NFdG1LSGZnPT06QUVTL0NCQy9QS0NTNVBhZGRpbmc6SktwM2Q0MkFsM2RORlV2NnhkendYTlFZcHlPMmxUeUs0TVlpY0srUmtBcVY4Sk1tRGJaaGVMQ3ZDWjZ0M2dJdDE3Vi94VHhFZHdZR0NXbFlXL1gxSmFUaEZXaHhzbWtzT0xHdlpBc2pPUGZ3eVE3bVRpZVNncVN2NTJRQ3c5QVo=\"\n        }\n    }\n}\n"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Not verified (card verification)","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"file":"./code/card-verification-not-verified.json","language":"json","header":{"controls":{"copy":{}}},"lang":"json","source":"{\n    \"outcome\": \"not verified\",\n    \"refusalCode\": \"1\",\n    \"refusalDescription\": \"Refer to card issuer\",\n    \"checkedAt\": \"2024-06-26T14:31:43.478Z\",\n    \"scheme\": {\n        \"reference\": \"MCCYQ2PBT0626\"\n    },\n    \"riskFactors\": [\n        {\n            \"risk\": \"notChecked\",\n            \"type\": \"cvc\"\n        },\n        {\n            \"risk\": \"notChecked\",\n            \"detail\": \"postcode\",\n            \"type\": \"avs\"\n        },\n        {\n            \"risk\": \"notChecked\",\n            \"detail\": \"address\",\n            \"type\": \"avs\"\n        }\n    ],\n    \"paymentInstrument\": {\n        \"type\": \"card/plain+masked\",\n        \"brand\": \"visa\",\n        \"fundingType\": \"credit\",\n        \"issuerName\": \"UNKNOWN\",\n        \"category\": \"consumer\"\n    },\n    \"_links\": {\n        \"cardVerifications:verification\": {\n            \"href\": \"https://access.worldpay-bsh.securedataplatform.co.uk/cardVerifications/Mjp0WmJTZG81akNJVEpvbTdhbEJzdThBPT06QUVTL0NCQy9QS0NTNVBhZGRpbmc6OWFKWDZyS1M1YnVjdWExaUpjVloxZE1NNWdkc3AzdHNkSldXcnBMby9YZXRyM2VpQS9WYXhraFhqMjJsT3NFMDBwZU5lMHJnWVIzR1hNTjJlaTkvWndJWk9vdTZSa3FBSWIrdnRHZ25oamtYL1M2T2NOQU1Gd0ozekM1TmIwMEs=\"\n        }\n    }\n}\n"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Verified (name inquiry: matched)","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"file":"./code/name-inquiry-response-matched.json","language":"json","header":{"controls":{"copy":{}}},"lang":"json","source":"{\n  \"outcome\": \"verified\",\n  \"nameInquiry\": \"matched\"\n}\n"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Verified (name inquiry: not matched)","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"file":"./code/name-inquiry-response-not-matched.json","language":"json","header":{"controls":{"copy":{}}},"lang":"json","source":"{\n  \"outcome\": \"verified\",\n  \"nameInquiry\": \"not matched\",\n  \"riskFactors\": [\n    {\n      \"type\": \"nameInquiry\",\n      \"detail\": \"firstName\",\n      \"risk\": \"notSupplied\"\n    },\n    {\n      \"type\": \"nameInquiry\",\n      \"detail\": \"middleName\",\n      \"risk\": \"notMatched\"\n    },\n    {\n      \"type\": \"nameInquiry\",\n      \"detail\": \"lastName\",\n      \"risk\": \"notMatched\"\n    }\n  ]\n}"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Not verified (name inquiry: not matched)","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"file":"./code/name-inquiry-response-not-verified-not-matched.json","language":"json","header":{"controls":{"copy":{}}},"lang":"json","source":"{\n    \"outcome\": \"not verified\",\n    \"nameInquiry\": \"notMatched\",\n    \"refusalCode\": \"N7\",\n    \"refusalDescription\": \"Decline for CVV2 failure\",\n    \"riskFactors\": [\n        {\n            \"type\": \"nameInquiry\",\n            \"detail\": \"firstName\",\n            \"risk\": \"notMatched\"\n        },\n        {\n            \"type\": \"nameInquiry\",\n            \"detail\": \"middleName\",\n            \"risk\": \"notMatched\"\n        },\n        {\n            \"type\": \"nameInquiry\",\n            \"detail\": \"lastName\",\n            \"risk\": \"notMatched\"\n        },\n        {\n            \"type\": \"cvc\",\n            \"risk\": \"notMatched\"\n        }\n    ]\n}\n"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"payment-instrument","__idx":18},"children":["Payment instrument"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["We only return the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["paymentInstrument"]}," card metadata if you are enabled for this feature."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"success","name":"Best practice"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you receive an ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["outcome"]}," of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["not verified"]}," it means that your customer has failed the verification. We ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["strongly recommend that you refuse the payment"]}," made with that payment instrument."]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Note"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In case of any errors, you can get further information in our error reference."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"location-storing","__idx":19},"children":["Location storing"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You ",{"$$mdtype":"Tag","name":"b","attributes":{},"children":["must"]}," store the returned location information. Failing to store the location information means the outcome of the verification is lost. You are not able to query a historic verification."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The location is stored in the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["href"]}," of the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["verifications:verification"]}," action link received on your verifications response."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"success","name":"Best practice"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["We recommend you store all responses."]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]}]},"headings":[{"value":"Verify a customer's card","id":"verify-a-customers-card","depth":1},{"value":"Card Verification","id":"card-verification","depth":2},{"value":"Example request","id":"example-request","depth":3},{"value":"Parameter descriptions","id":"parameter-descriptions","depth":3},{"value":"Risk factors","id":"risk-factors","depth":4},{"value":"Name inquiry","id":"name-inquiry","depth":2},{"value":"Example request","id":"example-request-1","depth":3},{"value":"Parameter descriptions","id":"parameter-descriptions-1","depth":3},{"value":"Test values","id":"test-values","depth":3},{"value":"3DS","id":"3ds","depth":2},{"value":"Example request","id":"example-request-2","depth":4},{"value":"3DS Parameters","id":"3ds-parameters","depth":3},{"value":"Apple Pay, Google Pay, and Samsung Pay decrypted","id":"apple-pay-google-pay-and-samsung-pay-decrypted","depth":2},{"value":"Example request","id":"example-request-3","depth":4},{"value":"Apple Pay, Google Pay, and Samsung Pay decrypted parameter descriptions","id":"apple-pay-google-pay-and-samsung-pay-decrypted-parameter-descriptions","depth":4},{"value":"Funds transfers","id":"funds-transfers","depth":2},{"value":"Code example","id":"code-example","depth":4},{"value":"Response","id":"response","depth":2},{"value":"Payment instrument","id":"payment-instrument","depth":4},{"value":"Location storing","id":"location-storing","depth":4}],"frontmatter":{"seo":{"title":"Verify a customer's card"}},"lastModified":"2026-05-13T07:59:15.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/products/card-verifications/verifications","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}