{"id":272,"date":"2021-07-22T09:42:44","date_gmt":"2021-07-22T09:42:44","guid":{"rendered":"https:\/\/payb.co.uk\/integration-guide\/?p=272"},"modified":"2021-07-22T09:45:08","modified_gmt":"2021-07-22T09:45:08","slug":"input-variables-2","status":"publish","type":"post","link":"https:\/\/payb.co.uk\/integration-guide\/transparent-redirect\/initial-request\/input-variables-2\/","title":{"rendered":"Input Variables"},"content":{"rendered":"<p>Below is a description of the variables that comprise the input API of the payment form. This request may yield either a 3D Secure &#8220;Authentication Required&#8221; response or a &#8220;Payment Complete&#8221; response.<\/p>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td >\n<p>Input Field Name<\/p>\n<\/td>\n<td >\n<p>Data Type<\/p>\n<\/td>\n<td >\n<p>Max Length<\/p>\n<\/td>\n<td >\n<p>Mandatory or Always Present<\/p>\n<\/td>\n<td >\n<p>Comments<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>HashDigest<\/p>\n<\/td>\n<td >\n<p>A<\/p>\n<\/td>\n<td >\n<p>&#8211;<\/p>\n<\/td>\n<td >\n<p>Yes<\/p>\n<\/td>\n<td >\n<p>A hashed string that contains all the variables passed and also data that is not passed but is known to both sides &#8211; namely the PreSharedKey and the gateway account password. (see section below)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>MerchantID<\/p>\n<\/td>\n<td >\n<p>A<\/p>\n<\/td>\n<td >\n<p>15<\/p>\n<\/td>\n<td >\n<p>Yes<\/p>\n<\/td>\n<td >\n<p>The merchant ID that corresponds to the gateway account the transaction will be run through. NOTE: If this variable is not present, then the skinning of the payment form will not happen<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>Amount<\/p>\n<\/td>\n<td >\n<p>N<\/p>\n<\/td>\n<td >\n<p>13<\/p>\n<\/td>\n<td >\n<p>Yes<\/p>\n<\/td>\n<td >\n<p>The transaction amount in minor currency &#8211; e.g. for &pound;10.00, it must be submitted as 1000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>CurrencyCode<\/p>\n<\/td>\n<td >\n<p>N<\/p>\n<\/td>\n<td >\n<p>3<\/p>\n<\/td>\n<td >\n<p>Yes<\/p>\n<\/td>\n<td >\n<p>The currency of the transaction. ISO 4217<\/p>\n<p>e.g. GBP: 826<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>EchoAVSCheckResult<\/p>\n<\/td>\n<td >\n<p>B<\/p>\n<\/td>\n<td >\n<p>true\/false<\/p>\n<\/td>\n<td >\n<p>Yes<\/p>\n<\/td>\n<td >\n<p>Instructs the payment form to include the AVS check result of the transaction in the output variables<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>EchoCV2CheckResult<\/p>\n<\/td>\n<td >\n<p>B<\/p>\n<\/td>\n<td >\n<p>true\/false<\/p>\n<\/td>\n<td >\n<p>Yes<\/p>\n<\/td>\n<td >\n<p>Instructs the payment form to include the CV2 check result of the transaction in the output variables<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>EchoThreeDSecureAuthenticationCheckResult<\/p>\n<\/td>\n<td >\n<p>B<\/p>\n<\/td>\n<td >\n<p>true\/false<\/p>\n<\/td>\n<td >\n<p>Yes<\/p>\n<\/td>\n<td >\n<p>Instructs the payment form to include the 3D Secure check result of the transaction in the output variables<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>EchoFraudProtectionCheckResult<\/p>\n<\/td>\n<td >\n<p>B<\/p>\n<\/td>\n<td >\n<p>true\/false<\/p>\n<\/td>\n<td >\n<p>Yes<\/p>\n<\/td>\n<td >\n<p>Instructs the payment form to include the Fraud protection check result of the transaction<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>&nbsp;<\/p>\n<\/td>\n<td >\n<p>&nbsp;<\/p>\n<\/td>\n<td >\n<p>&nbsp;<\/p>\n<\/td>\n<td >\n<p>&nbsp;<\/p>\n<\/td>\n<td >\n<p>in the output variables<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>EchoCardType<\/p>\n<\/td>\n<td >\n<p>B<\/p>\n<\/td>\n<td >\n<p>true\/false<\/p>\n<\/td>\n<td >\n<p>Yes<\/p>\n<\/td>\n<td >\n<p>Instructs the payment form to include the card type of the transaction in the output variables<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>AVSOverridePolicy<\/p>\n<\/td>\n<td >\n<p>A<\/p>\n<\/td>\n<td >\n<p>4<\/p>\n<\/td>\n<td >\n<p>No<\/p>\n<\/td>\n<td >\n<p>Sets the override AVS checking policy for this transaction<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>CV2OverridePolicy<\/p>\n<\/td>\n<td >\n<p>A<\/p>\n<\/td>\n<td >\n<p>2<\/p>\n<\/td>\n<td >\n<p>No<\/p>\n<\/td>\n<td >\n<p>Sets the CV2 checking policy for this transaction<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>ThreeDSecureOverridePolicy<\/p>\n<\/td>\n<td >\n<p>B<\/p>\n<\/td>\n<td >\n<p>true\/false<\/p>\n<\/td>\n<td >\n<p>No<\/p>\n<\/td>\n<td >\n<p>Instructs the payment form to enable\/disable the 3D Secure checking for this transaction (where possible)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>OrderID<\/p>\n<\/td>\n<td >\n<p>A<\/p>\n<\/td>\n<td >\n<p>50<\/p>\n<\/td>\n<td >\n<p>Yes<\/p>\n<\/td>\n<td >\n<p>A merchant side ID for the order &#8211; primarily used to for determining duplicate transactions. Note: make sure that special characters in the OrderID are properly escaped, otherwise the hash digest will not match<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>TransactionType<\/p>\n<\/td>\n<td >\n<p>&#8211;<\/p>\n<\/td>\n<td >\n<p>&#8211;<\/p>\n<\/td>\n<td >\n<p>Yes<\/p>\n<\/td>\n<td >\n<p>Must be either SALE or<\/p>\n<p>PREAUTH<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>TransactionDateTime<\/p>\n<\/td>\n<td >\n<p>DT<\/p>\n<\/td>\n<td >\n<p>&#8211;<\/p>\n<\/td>\n<td >\n<p>Yes<\/p>\n<\/td>\n<td >\n<p>The date &amp; time (as seen by the merchant&#8217;s server) of the transaction. Needs to be in the form &#8220;YYYY- MM-DD HH:MM:SS +00:00&#8221;, with the time in 24 hour format, where 00:00 is the offset from UTC &#8211; e.g. &#8220;2008-12-01 14:12:00 +01:00&#8221;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>CallbackURL<\/p>\n<\/td>\n<td >\n<p>A<\/p>\n<\/td>\n<td >\n<p>&#8211;<\/p>\n<\/td>\n<td >\n<p>Yes<\/p>\n<\/td>\n<td >\n<p>The URL of the page on the merchant&#8217;s site that the results of the transaction will be posted back to (see section below)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>OrderDescription<\/p>\n<\/td>\n<td >\n<p>A<\/p>\n<\/td>\n<td >\n<p>256<\/p>\n<\/td>\n<td >\n<p>No<\/p>\n<\/td>\n<td >\n<p>A description for the order. Note: make sure that special characters in the OrderDescription are properly escaped, otherwise the hash digest will not match<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>Address1<\/p>\n<\/td>\n<td >\n<p>A<\/p>\n<\/td>\n<td >\n<p>100<\/p>\n<\/td>\n<td >\n<p>No<\/p>\n<\/td>\n<td >\n<p>Customer&#8217;s billing address line 1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>Address2<\/p>\n<\/td>\n<td >\n<p>A<\/p>\n<\/td>\n<td >\n<p>50<\/p>\n<\/td>\n<td >\n<p>No<\/p>\n<\/td>\n<td >\n<p>Customer&#8217;s billing<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>&nbsp;<\/p>\n<\/td>\n<td >\n<p>&nbsp;<\/p>\n<\/td>\n<td >\n<p>&nbsp;<\/p>\n<\/td>\n<td >\n<p>&nbsp;<\/p>\n<\/td>\n<td >\n<p>address line 2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>Address3<\/p>\n<\/td>\n<td >\n<p>A<\/p>\n<\/td>\n<td >\n<p>50<\/p>\n<\/td>\n<td >\n<p>No<\/p>\n<\/td>\n<td >\n<p>Customer&#8217;s billing address line 3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>Address4<\/p>\n<\/td>\n<td >\n<p>A<\/p>\n<\/td>\n<td >\n<p>50<\/p>\n<\/td>\n<td >\n<p>No<\/p>\n<\/td>\n<td >\n<p>Customer&#8217;s billing address line 4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>City<\/p>\n<\/td>\n<td >\n<p>A<\/p>\n<\/td>\n<td >\n<p>50<\/p>\n<\/td>\n<td >\n<p>No<\/p>\n<\/td>\n<td >\n<p>Customer&#8217;s billing address city<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>State<\/p>\n<\/td>\n<td >\n<p>A<\/p>\n<\/td>\n<td >\n<p>50<\/p>\n<\/td>\n<td >\n<p>No<\/p>\n<\/td>\n<td >\n<p>Customer&#8217;s billing address state<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>PostCode<\/p>\n<\/td>\n<td >\n<p>A<\/p>\n<\/td>\n<td >\n<p>50<\/p>\n<\/td>\n<td >\n<p>No<\/p>\n<\/td>\n<td >\n<p>Customer&#8217;s billing address post code<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>CountryCode<\/p>\n<\/td>\n<td >\n<p>N<\/p>\n<\/td>\n<td >\n<p>3<\/p>\n<\/td>\n<td >\n<p>No<\/p>\n<\/td>\n<td >\n<p>Customer&#8217;s billing country code. ISO 3166- 1 e.g. United Kingdom: 826<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>EmailAddress<\/p>\n<\/td>\n<td >\n<p>A<\/p>\n<\/td>\n<td >\n<p>100<\/p>\n<\/td>\n<td >\n<p>No<\/p>\n<\/td>\n<td >\n<p>Customer&#8217;s email<\/p>\n<p>address<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>PhoneNumber<\/p>\n<\/td>\n<td >\n<p>A<\/p>\n<\/td>\n<td >\n<p>30<\/p>\n<\/td>\n<td >\n<p>No<\/p>\n<\/td>\n<td >\n<p>Customer&#8217;s phone number<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>CardName<\/p>\n<\/td>\n<td >\n<p>A<\/p>\n<\/td>\n<td >\n<p>100<\/p>\n<\/td>\n<td >\n<p>Yes<\/p>\n<\/td>\n<td >\n<p>The cardholder&#8217;s name as it appears on the front of the card<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>CardNumber<\/p>\n<\/td>\n<td >\n<p>A<\/p>\n<\/td>\n<td >\n<p>19<\/p>\n<\/td>\n<td >\n<p>Yes<\/p>\n<\/td>\n<td >\n<p>The full card number as it appears on the front of the card<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>ExpiryDateMonth<\/p>\n<\/td>\n<td >\n<p>A<\/p>\n<\/td>\n<td >\n<p>2<\/p>\n<\/td>\n<td >\n<p>Yes<\/p>\n<\/td>\n<td >\n<p>The first 2 digits from the card&#8217;s expiry date representing the month part of the expiry date<\/p>\n<p>e.g. 02\/12 where 02 is the card&#8217;s expiry month<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>ExpiryDateYear<\/p>\n<\/td>\n<td >\n<p>A<\/p>\n<\/td>\n<td >\n<p>2<\/p>\n<\/td>\n<td >\n<p>Yes<\/p>\n<\/td>\n<td >\n<p>The last 2 digits from the card&#8217;s expiry date representing the year part of the expiry date<\/p>\n<p>e.g. 02\/12 where 12 is the card&#8217;s expiry year of 2012<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>StartDateMonth<\/p>\n<\/td>\n<td >\n<p>A<\/p>\n<\/td>\n<td >\n<p>2<\/p>\n<\/td>\n<td >\n<p>No<\/p>\n<\/td>\n<td >\n<p>The first 2 digits from the card&#8217;s start date representing the month part of the start date<\/p>\n<p>e.g. 01\/09 where 01 is the card&#8217;s start month<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>StartDateYear<\/p>\n<\/td>\n<td >\n<p>A<\/p>\n<\/td>\n<td >\n<p>2<\/p>\n<\/td>\n<td >\n<p>No<\/p>\n<\/td>\n<td >\n<p>The last 2 digits from card&#8217;s start date representing the year part of the start date<\/p>\n<p>e.g. 01\/09 where 09 is the card&#8217;s start year of 2009<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>IssueNumber<\/p>\n<\/td>\n<td >\n<p>A<\/p>\n<\/td>\n<td >\n<p>2<\/p>\n<\/td>\n<td >\n<p>No<\/p>\n<\/td>\n<td >\n<p>The card&#8217;s issue number as it appears on the front on the card<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td >\n<p>CV2<\/p>\n<\/td>\n<td >\n<p>N<\/p>\n<\/td>\n<td >\n<p>3<\/p>\n<\/td>\n<td >\n<p>No<\/p>\n<\/td>\n<td >\n<p>The card&#8217;s CV2 number<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Below is a description of the variables that comprise the input API of the payment form. This request may yield either a 3D Secure &#8220;Authentication Required&#8221; response or a &#8220;Payment Complete&#8221; response. &nbsp; Input Field Name Data Type Max Length Mandatory or Always Present Comments HashDigest A &#8211; Yes A hashed string that contains all&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/payb.co.uk\/integration-guide\/wp-json\/wp\/v2\/posts\/272"}],"collection":[{"href":"https:\/\/payb.co.uk\/integration-guide\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/payb.co.uk\/integration-guide\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/payb.co.uk\/integration-guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/payb.co.uk\/integration-guide\/wp-json\/wp\/v2\/comments?post=272"}],"version-history":[{"count":3,"href":"https:\/\/payb.co.uk\/integration-guide\/wp-json\/wp\/v2\/posts\/272\/revisions"}],"predecessor-version":[{"id":281,"href":"https:\/\/payb.co.uk\/integration-guide\/wp-json\/wp\/v2\/posts\/272\/revisions\/281"}],"wp:attachment":[{"href":"https:\/\/payb.co.uk\/integration-guide\/wp-json\/wp\/v2\/media?parent=272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/payb.co.uk\/integration-guide\/wp-json\/wp\/v2\/categories?post=272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/payb.co.uk\/integration-guide\/wp-json\/wp\/v2\/tags?post=272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}