{"id":229,"date":"2021-07-22T09:15:57","date_gmt":"2021-07-22T09:15:57","guid":{"rendered":"https:\/\/payb.co.uk\/integration-guide\/?p=229"},"modified":"2021-07-22T09:15:57","modified_gmt":"2021-07-22T09:15:57","slug":"server-result-delivery-method-2","status":"publish","type":"post","link":"https:\/\/payb.co.uk\/integration-guide\/hosted-payment-form\/server-result-delivery-method-2\/","title":{"rendered":"SERVER Result Delivery Method"},"content":{"rendered":"<p>&nbsp;<\/p>\n<ol start=\"10\">\n<li>\n<p align=\"LEFT\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: small;\">The results of the transaction are then passed back to the merchant\u2019s system<\/span> <span style=\"font-size: small;\">(ServerResultURL). This is a direct layerofcommunication withoutcustomer involvementor<\/span> <span style=\"font-size: small;\">awareness.<\/span> <span style=\"font-size: small;\">The<\/span> <span style=\"font-size: small;\">data<\/span> <span style=\"font-size: small;\">passed<\/span> <span style=\"font-size: small;\">to<\/span> <span style=\"font-size: small;\">the<\/span> <span style=\"font-size: small;\">Merchant\u2019s<\/span> <span style=\"font-size: small;\">System<\/span> <span style=\"font-size: small;\">should<\/span> <span style=\"font-size: small;\">be<\/span> <span style=\"font-size: small;\">checked<\/span> <span style=\"font-size: small;\">for<\/span> <span style=\"font-size: small;\">errors<\/span> <span style=\"font-size: small;\">at<\/span> <span style=\"font-size: small;\">this<\/span> <span style=\"font-size: small;\">point.<\/span><\/span><\/p>\n<ol type=\"a\">\n<li>\n<p align=\"LEFT\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: small;\"><strong>At<\/strong><\/span> <span style=\"font-size: small;\"><strong>this<\/strong><\/span> <span style=\"font-size: small;\"><strong>point,<\/strong><\/span> <span style=\"font-size: small;\"><strong>the<\/strong><\/span> <span style=\"font-size: small;\"><strong>payment<\/strong><\/span> <span style=\"font-size: small;\"><strong>processing<\/strong><\/span> <span style=\"font-size: small;\"><strong>has<\/strong><\/span> <span style=\"font-size: small;\"><strong>been<\/strong><\/span> <span style=\"font-size: small;\"><strong>completed.<\/strong><\/span> <span style=\"font-size: small;\"><strong>If<\/strong><\/span> <span style=\"font-size: small;\"><strong>the<\/strong><\/span> <span style=\"font-size: small;\"><strong>transaction<\/strong><\/span> <span style=\"font-size: small;\"><strong>was<\/strong><\/span> <span style=\"font-size: small;\"><strong>successful,<\/strong><\/span> <span style=\"font-size: small;\"><strong>money<\/strong><\/span> <span style=\"font-size: small;\"><strong>hasbeenexchangedbetweenbanks.<\/strong><\/span><\/span><\/p>\n<\/li>\n<li>\n<p align=\"LEFT\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: small;\">If<\/span> <span style=\"font-size: small;\">errors<\/span> <span style=\"font-size: small;\">occur<\/span> <span style=\"font-size: small;\">with<\/span> <span style=\"font-size: small;\">the<\/span> <span style=\"font-size: small;\">results<\/span> <span style=\"font-size: small;\">(for<\/span> <span style=\"font-size: small;\">example;<\/span> <span style=\"font-size: small;\">Variable<\/span> <span style=\"font-size: small;\">Tampering),<\/span> <span style=\"font-size: small;\">the<\/span> <span style=\"font-size: small;\">merchant\u2019s<\/span> <span style=\"font-size: small;\">system<\/span> <span style=\"font-size: small;\">should<\/span> <span style=\"font-size: small;\">stop<\/span> <span style=\"font-size: small;\">the<\/span> <span style=\"font-size: small;\">transaction<\/span> <span style=\"font-size: small;\">from<\/span> <span style=\"font-size: small;\">going<\/span> <span style=\"font-size: small;\">any<\/span> <span style=\"font-size: small;\">further<\/span> <span style=\"font-size: small;\">and<\/span> <span style=\"font-size: small;\">move<\/span> <span style=\"font-size: small;\">to step<\/span> <span style=\"font-size: small;\">14.<\/span><\/span><\/p>\n<\/li>\n<li>\n<p align=\"LEFT\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: small;\">If there is an error in the payment gateway being able to reach the merchant\u2019s<\/span> <span style=\"font-size: small;\">system (ServerResultURL), an invalid URL for example, then <\/span><span style=\"font-size: small;\"><strong>the transaction result is<\/strong><\/span> <span style=\"font-size: small;\"><strong>displayed on the payment gateway and the customer is not redirected back to the<\/strong><\/span> <span style=\"font-size: small;\"><strong>merchant\u2019s<\/strong><\/span> <span style=\"font-size: small;\"><strong>website<\/strong><\/span> <span style=\"font-size: small;\">and<\/span> <span style=\"font-size: small;\">the<\/span> <span style=\"font-size: small;\">process does<\/span> <span style=\"font-size: small;\">not<\/span> <span style=\"font-size: small;\">go<\/span> <span style=\"font-size: small;\">any<\/span> <span style=\"font-size: small;\">further.<\/span><\/span><\/p>\n<\/li>\n<\/ol>\n<\/li>\n<li>\n<p align=\"LEFT\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: small;\">The<\/span> <span style=\"font-size: small;\">results<\/span> <span style=\"font-size: small;\">are<\/span> <span style=\"font-size: small;\">stored<\/span> <span style=\"font-size: small;\">by<\/span> <span style=\"font-size: small;\">the<\/span> <span style=\"font-size: small;\">merchants<\/span> <span style=\"font-size: small;\">system<\/span> <span style=\"font-size: small;\">(ServerResultURL).<\/span> <span style=\"font-size: small;\">The<\/span> <span style=\"font-size: small;\">merchant<\/span> <span style=\"font-size: small;\">can<\/span> <span style=\"font-size: small;\">choose<\/span> <span style=\"font-size: small;\">to<\/span> <span style=\"font-size: small;\">store<\/span> <span style=\"font-size: small;\">the<\/span> <span style=\"font-size: small;\">results<\/span> <span style=\"font-size: small;\">where<\/span> <span style=\"font-size: small;\">they<\/span> <span style=\"font-size: small;\">prefer, such<\/span> <span style=\"font-size: small;\">as<\/span> <span style=\"font-size: small;\">a database<\/span> <span style=\"font-size: small;\">table<\/span> <span style=\"font-size: small;\">or<\/span> <span style=\"font-size: small;\">a<\/span> <span style=\"font-size: small;\">secure file<\/span> <span style=\"font-size: small;\">on<\/span> <span style=\"font-size: small;\">the<\/span> <span style=\"font-size: small;\">server.<\/span><\/span><\/p>\n<\/li>\n<li>\n<p align=\"JUSTIFY\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: small;\">The merchants system (ServerResultURL) then passes a response back to the payment<\/span> <span style=\"font-size: small;\">gateway to advise whether the results were received ok, or not (variable tampering for<\/span> <span style=\"font-size: small;\">example).<\/span><\/span><\/p>\n<ol type=\"a\">\n<li>\n<p align=\"LEFT\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: small;\">If the payment gateway receives any other response StatusCode other than 0, <\/span><span style=\"font-size: small;\"><strong>the<\/strong><\/span> <span style=\"font-size: small;\"><strong>payment gateway will not redirect the customer back to the merchants system<\/strong><\/span> <span style=\"font-size: small;\"><strong>(CallbackURL) and will display the transaction result directly<\/strong><\/span><span style=\"font-size: small;\">. No further steps take<\/span> <span style=\"font-size: small;\">place.<\/span><\/span><\/p>\n<\/li>\n<li>\n<p align=\"LEFT\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: small;\">Upon<\/span> <span style=\"font-size: small;\">a<\/span> <span style=\"font-size: small;\">successful<\/span> <span style=\"font-size: small;\">response<\/span> <span style=\"font-size: small;\">from<\/span> <span style=\"font-size: small;\">the<\/span> <span style=\"font-size: small;\">merchants<\/span> <span style=\"font-size: small;\">system<\/span> <span style=\"font-size: small;\">(ServerResultURL),<\/span> <span style=\"font-size: small;\">the<\/span> <span style=\"font-size: small;\">payment<\/span> <span style=\"font-size: small;\">gateway will redirect the customer back to the merchants system (CallbackURL), <\/span><span style=\"font-size: small;\"><strong>unless<\/strong><\/span> <span style=\"font-size: small;\"><strong>the merchant supplied \u201cPaymentFormDisplaysResult\u201d set to TRUE as part of the initial<\/strong><\/span> <span style=\"font-size: small;\"><strong>transaction request sent to the Hosted Payment Form<\/strong><\/span><span style=\"font-size: small;\">. If the<\/span> <span style=\"font-size: small;\">PaymentFormDisplaysResult was set to True at the time of the initial request, <\/span><span style=\"font-size: small;\"><strong>the<\/strong><\/span> <span style=\"font-size: small;\"><strong>payment gateway will not redirect the customer back to the merchants system<\/strong><\/span> <span style=\"font-size: small;\"><strong>(CallbackURL) and will display the transaction result directly<\/strong><\/span><span style=\"font-size: small;\">. No further steps take<\/span> <span style=\"font-size: small;\">place.<\/span><\/span><\/p>\n<\/li>\n<\/ol>\n<\/li>\n<li>\n<p align=\"LEFT\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: small;\">The<\/span> <span style=\"font-size: small;\">merchants system<\/span> <span style=\"font-size: small;\">(CallbackURL)<\/span> <span style=\"font-size: small;\">will<\/span> <span style=\"font-size: small;\">then<\/span> <span style=\"font-size: small;\">retrieve<\/span> <span style=\"font-size: small;\">the<\/span> <span style=\"font-size: small;\">earlier<\/span> <span style=\"font-size: small;\">stored<\/span> <span style=\"font-size: small;\">transaction<\/span> <span style=\"font-size: small;\">results.<\/span><\/span><\/p>\n<\/li>\n<li>\n<p align=\"LEFT\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: small;\">The<\/span> <span style=\"font-size: small;\">merchant\u2019s<\/span> <span style=\"font-size: small;\">system<\/span> <span style=\"font-size: small;\">should<\/span> <span style=\"font-size: small;\">display<\/span> <span style=\"font-size: small;\">the<\/span> <span style=\"font-size: small;\">transaction<\/span> <span style=\"font-size: small;\">result<\/span> <span style=\"font-size: small;\">to<\/span> <span style=\"font-size: small;\">the<\/span> <span style=\"font-size: small;\">customer<\/span> <span style=\"font-size: small;\">(or<\/span> <span style=\"font-size: small;\">desired<\/span> <span style=\"font-size: small;\">error<\/span> <span style=\"font-size: small;\">information<\/span> <span style=\"font-size: small;\">if<\/span> <span style=\"font-size: small;\">any<\/span> <span style=\"font-size: small;\">occurred<\/span> <span style=\"font-size: small;\">before<\/span> <span style=\"font-size: small;\">this<\/span> <span style=\"font-size: small;\">point).<\/span><\/span><\/p>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; The results of the transaction are then passed back to the merchant\u2019s system (ServerResultURL). This is a direct layerofcommunication withoutcustomer involvementor awareness. The data passed to the Merchant\u2019s System should be checked for errors at this point. At this point, the payment processing has been completed. If the transaction was successful, money hasbeenexchangedbetweenbanks. If&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,29],"tags":[],"_links":{"self":[{"href":"https:\/\/payb.co.uk\/integration-guide\/wp-json\/wp\/v2\/posts\/229"}],"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=229"}],"version-history":[{"count":1,"href":"https:\/\/payb.co.uk\/integration-guide\/wp-json\/wp\/v2\/posts\/229\/revisions"}],"predecessor-version":[{"id":230,"href":"https:\/\/payb.co.uk\/integration-guide\/wp-json\/wp\/v2\/posts\/229\/revisions\/230"}],"wp:attachment":[{"href":"https:\/\/payb.co.uk\/integration-guide\/wp-json\/wp\/v2\/media?parent=229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/payb.co.uk\/integration-guide\/wp-json\/wp\/v2\/categories?post=229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/payb.co.uk\/integration-guide\/wp-json\/wp\/v2\/tags?post=229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}