{"id":188,"date":"2021-07-21T17:48:52","date_gmt":"2021-07-21T17:48:52","guid":{"rendered":"https:\/\/payb.co.uk\/integration-guide\/?p=188"},"modified":"2021-07-21T17:55:51","modified_gmt":"2021-07-21T17:55:51","slug":"output-variables-2","status":"publish","type":"post","link":"https:\/\/payb.co.uk\/integration-guide\/transparent-redirect\/payment-complete\/output-variables-2\/","title":{"rendered":"Output Variables"},"content":{"rendered":"<p>Below is a description of the variables will be posted to the merchant&#8217;s CallbackURL. These comprise the &#8220;Payment Complete&#8221; output API of the payment form.<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"244\">\n<p><strong>Variable Name<\/strong><\/p>\n<\/td>\n<td width=\"47\">\n<p><strong>Data Type<\/strong><\/p>\n<\/td>\n<td width=\"57\">\n<p><strong>Max Length<\/strong><\/p>\n<\/td>\n<td width=\"279\">\n<p><strong>Comments<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"244\">\n<p>HashDigest<\/p>\n<\/td>\n<td width=\"47\">\n<p>A<\/p>\n<\/td>\n<td width=\"57\">\n<p>&#8211;<\/p>\n<\/td>\n<td width=\"279\">\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 width=\"244\">\n<p>MerchantID<\/p>\n<\/td>\n<td width=\"47\">\n<p>A<\/p>\n<\/td>\n<td width=\"57\">\n<p>15<\/p>\n<\/td>\n<td width=\"279\">\n<p>The merchant ID that was used to process the transaction<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"244\">\n<p>StatusCode<\/p>\n<\/td>\n<td width=\"47\">\n<p>N<\/p>\n<\/td>\n<td width=\"57\">\n<p>&#8211;<\/p>\n<\/td>\n<td width=\"279\">\n<p>This indicates the status of the transaction: <br \/> 0: transaction successful <br \/> 5: card referred <br \/> 5: card declined <br \/>20: duplicate transaction <br \/> 30: exception<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"244\">\n<p>Message<\/p>\n<\/td>\n<td width=\"47\">\n<p>A<\/p>\n<\/td>\n<td width=\"57\">\n<p>512<\/p>\n<\/td>\n<td width=\"279\">\n<p>This gives a more detailed description of the status of the transaction<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"244\">\n<p>PreviousStatusCode<\/p>\n<\/td>\n<td width=\"47\">\n<p>N<\/p>\n<\/td>\n<td width=\"57\">\n<p>&#8211;<\/p>\n<\/td>\n<td width=\"279\">\n<p>If the transaction was deemed to be a duplicate transaction, this indicates the status of the previous transaction<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"244\">\n<p>PreviousMessage<\/p>\n<\/td>\n<td width=\"47\">\n<p>A<\/p>\n<\/td>\n<td width=\"57\">\n<p>512<\/p>\n<\/td>\n<td width=\"279\">\n<p>If the transaction was deemed to be a duplicate transaction, this gives a more detailed description of the status of the previous transaction<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"244\">\n<p>CrossReference<\/p>\n<\/td>\n<td width=\"47\">\n<p>A<\/p>\n<\/td>\n<td width=\"57\">\n<p>25<\/p>\n<\/td>\n<td width=\"279\">\n<p>This is the unique cross reference for this transaction. If the transaction was determined to be a duplicate transaction, this value will hold the cross reference of the previous transaction, which this transaction was deemed a duplicate of<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"244\">\n<p>AddressNumericCheckResult<\/p>\n<\/td>\n<td width=\"47\">\n<p>A<\/p>\n<\/td>\n<td width=\"57\">\n<p>&#8211;<\/p>\n<\/td>\n<td width=\"279\">\n<p>If requested (input variable &#8220;EchoAVSCheckResult = true&#8221;) this gives the results of the address numeric check &#8211; will be PASSED, FAILED, PARTIAL, NOT_CHECKED or UNKNOWN<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"244\">\n<p>PostCodeCheckResult<\/p>\n<\/td>\n<td width=\"47\">\n<p>A<\/p>\n<\/td>\n<td width=\"57\">\n<p>&#8211;<\/p>\n<\/td>\n<td width=\"279\">\n<p>If requested (input variable &#8220;EchoAVSCheckResult = true&#8221;) this gives the results of the post code check &#8211; will be PASSED, FAILED, PARTIAL, NOT_CHECKED or UNKNOWN<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"244\">\n<p>CV2CheckResult<\/p>\n<\/td>\n<td width=\"47\">\n<p>A<\/p>\n<\/td>\n<td width=\"57\">\n<p>&#8211;<\/p>\n<\/td>\n<td width=\"279\">\n<p>If requested (input variable &#8220;EchoCV2CheckResult = true&#8221;) this gives the results of the CV2check &#8211; will be PASSED, FAILED, NOT_CHECKED or UNKNOWN<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"244\">\n<p>ThreeDSecureAuthenticationCheckResult<\/p>\n<\/td>\n<td width=\"47\">\n<p>A<\/p>\n<\/td>\n<td width=\"57\">\n<p>&#8211;<\/p>\n<\/td>\n<td width=\"279\">\n<p>If 3D Secure policy is enabled (input variable &#8220;ThreeDSecureOverridePolicy = true&#8221;) this will give the results of the 3D Secure check<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"244\">\n<p>FraudProtectionCheckResult<\/p>\n<\/td>\n<td width=\"47\">\n<p>A<\/p>\n<\/td>\n<td width=\"57\">\n<p>&#8211;<\/p>\n<\/td>\n<td width=\"279\">\n<p>If requested (input variable &#8220;EchoFraudProtectionCheckResult = true&#8221;) this gives the results of the Fraud protection check &#8211; will be PASSED, FAILED, CHALLENGE or ERROR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"244\">\n<p>CardType<\/p>\n<\/td>\n<td width=\"47\">\n<p>A<\/p>\n<\/td>\n<td width=\"57\">\n<p>&#8211;<\/p>\n<\/td>\n<td width=\"279\">\n<p>If requested (input variable &#8220;EchoCardType = true&#8221;) this gives the card type of the transaction<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"244\">\n<p>CardClass<\/p>\n<\/td>\n<td width=\"47\">\n<p>A<\/p>\n<\/td>\n<td width=\"57\">\n<p>&#8211;<\/p>\n<\/td>\n<td width=\"279\">\n<p>If requested (input variable &#8220;EchoCardType = true&#8221;) this gives the card class of the transaction<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"244\">\n<p>CardIssuer<\/p>\n<\/td>\n<td width=\"47\">\n<p>A<\/p>\n<\/td>\n<td width=\"57\">\n<p>&#8211;<\/p>\n<\/td>\n<td width=\"279\">\n<p>If requested (input variable &#8220;EchoCardType = true&#8221;) this gives the card issuer (if known)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"244\">\n<p>CardIssuerCountryCode<\/p>\n<\/td>\n<td width=\"47\">\n<p>N<\/p>\n<\/td>\n<td width=\"57\">\n<p>3<\/p>\n<\/td>\n<td width=\"279\">\n<p>If requested (input variable &#8220;EchoCardType = true&#8221;) this gives the 3 digit code of the country the card was issued in (if known)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"244\">\n<p>Amount<\/p>\n<\/td>\n<td width=\"47\">\n<p>N<\/p>\n<\/td>\n<td width=\"57\">\n<p>13<\/p>\n<\/td>\n<td width=\"279\">\n<p>The amount, in minor currency, of the transaction that was processed<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"244\">\n<p>CurrencyCode<\/p>\n<\/td>\n<td width=\"47\">\n<p>N<\/p>\n<\/td>\n<td width=\"57\">\n<p>3<\/p>\n<\/td>\n<td width=\"279\">\n<p>The currency code of the transaction that was processed. ISO 4217 e.g. GBP: 826<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"244\">\n<p>OrderID<\/p>\n<\/td>\n<td width=\"47\">\n<p>A<\/p>\n<\/td>\n<td width=\"57\">\n<p>50<\/p>\n<\/td>\n<td width=\"279\">\n<p>The order ID of the transaction that was processed. 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 width=\"244\">\n<p>TransactionType<\/p>\n<\/td>\n<td width=\"47\">\n<p>&#8211;<\/p>\n<\/td>\n<td width=\"57\">\n<p>&#8211;<\/p>\n<\/td>\n<td width=\"279\">\n<p>The transaction type of the transaction that was processed. Will be either SALE or PREAUTH<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"244\">\n<p>TransactionDateTime<\/p>\n<\/td>\n<td width=\"47\">\n<p>DT<\/p>\n<\/td>\n<td width=\"57\">\n<p>&#8211;<\/p>\n<\/td>\n<td width=\"279\">\n<p>The date &amp; time (as seen by the gateway server) of the transaction. Will be in the form &#8220;YYYY- MM-DD HH:MM:SS +OO:OO&#8221;, with the time in 24 hour format, where OO:OO 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 width=\"244\">\n<p>OrderDescription<\/p>\n<\/td>\n<td width=\"47\">\n<p>A<\/p>\n<\/td>\n<td width=\"57\">\n<p>256<\/p>\n<\/td>\n<td width=\"279\">\n<p>The order description of the transaction that was processed. 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 width=\"244\">\n<p>Address1<\/p>\n<\/td>\n<td width=\"47\">\n<p>A<\/p>\n<\/td>\n<td width=\"57\">\n<p>100<\/p>\n<\/td>\n<td width=\"279\">\n<p>Customer&#8217;s billing address line 1 as it was submitted to the gateway<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"244\">\n<p>Address2<\/p>\n<\/td>\n<td width=\"47\">\n<p>A<\/p>\n<\/td>\n<td width=\"57\">\n<p>50<\/p>\n<\/td>\n<td width=\"279\">\n<p>Customer&#8217;s billing address line 2 as it was submitted to the gateway<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"244\">\n<p>Address3<\/p>\n<\/td>\n<td width=\"47\">\n<p>A<\/p>\n<\/td>\n<td width=\"57\">\n<p>50<\/p>\n<\/td>\n<td width=\"279\">\n<p>Customer&#8217;s billing address line 3 as it was submitted to the gateway<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"244\">\n<p>Address4<\/p>\n<\/td>\n<td width=\"47\">\n<p>A<\/p>\n<\/td>\n<td width=\"57\">\n<p>50<\/p>\n<\/td>\n<td width=\"279\">\n<p>Customer&#8217;s billing address line 4 as it was submitted to the gateway<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"244\">\n<p>City<\/p>\n<\/td>\n<td width=\"47\">\n<p>A<\/p>\n<\/td>\n<td width=\"57\">\n<p>50<\/p>\n<\/td>\n<td width=\"279\">\n<p>Customer&#8217;s billing city as it was submitted to the gateway<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"244\">\n<p>State<\/p>\n<\/td>\n<td width=\"47\">\n<p>A<\/p>\n<\/td>\n<td width=\"57\">\n<p>50<\/p>\n<\/td>\n<td width=\"279\">\n<p>Customer&#8217;s billing state as it was submitted to the gateway<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"244\">\n<p>PostCode<\/p>\n<\/td>\n<td width=\"47\">\n<p>A<\/p>\n<\/td>\n<td width=\"57\">\n<p>50<\/p>\n<\/td>\n<td width=\"279\">\n<p>Customer&#8217;s billing post code as it was submitted to the gateway<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"244\">\n<p>CountryCode<\/p>\n<\/td>\n<td width=\"47\">\n<p>N<\/p>\n<\/td>\n<td width=\"57\">\n<p>3<\/p>\n<\/td>\n<td width=\"279\">\n<p>Customer&#8217;s billing country code as it was submitted to the gateway. ISO 3166-1 e.g. United Kingdom: 826<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"244\">\n<p>EmailAddress<\/p>\n<\/td>\n<td width=\"47\">\n<p>A<\/p>\n<\/td>\n<td width=\"57\">\n<p>100<\/p>\n<\/td>\n<td width=\"279\">\n<p>The customer&#8217;s email address as it was submitted to the gateway<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"244\">\n<p>PhoneNumber<\/p>\n<\/td>\n<td width=\"47\">\n<p>A<\/p>\n<\/td>\n<td width=\"57\">\n<p>30<\/p>\n<\/td>\n<td width=\"279\">\n<p>The customer&#8217;s phone number as it was submitted to the gateway<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Below is a description of the variables will be posted to the merchant&#8217;s CallbackURL. These comprise the &#8220;Payment Complete&#8221; output API of the payment form. Variable Name Data Type Max Length Comments HashDigest A &#8211; A hashed string that contains all the variables passed and also data that is not passed but is known to&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[12],"tags":[],"_links":{"self":[{"href":"https:\/\/payb.co.uk\/integration-guide\/wp-json\/wp\/v2\/posts\/188"}],"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=188"}],"version-history":[{"count":7,"href":"https:\/\/payb.co.uk\/integration-guide\/wp-json\/wp\/v2\/posts\/188\/revisions"}],"predecessor-version":[{"id":195,"href":"https:\/\/payb.co.uk\/integration-guide\/wp-json\/wp\/v2\/posts\/188\/revisions\/195"}],"wp:attachment":[{"href":"https:\/\/payb.co.uk\/integration-guide\/wp-json\/wp\/v2\/media?parent=188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/payb.co.uk\/integration-guide\/wp-json\/wp\/v2\/categories?post=188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/payb.co.uk\/integration-guide\/wp-json\/wp\/v2\/tags?post=188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}