Error compiling template "/Designs/Rapido/ContentPage/Paragraph/APICallbackJCC_NT.cshtml"
Line 153: The name 'JCC' does not exist in the current context

1 //------------------------------------------------------------------------------ 2 // <auto-generated> 3 // This code was generated by a tool. 4 // Runtime Version:4.0.30319.42000 5 // 6 // Changes to this file may cause incorrect behavior and will be lost if 7 // the code is regenerated. 8 // </auto-generated> 9 //------------------------------------------------------------------------------ 10 11 namespace CompiledRazorTemplates.Dynamic { 12 13 #line 4 "D:\dynamicweb.net\Solutions\NexTech\sodexo.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\APICallbackJCC_NT.cshtml" 14 using System; 15 16 #line default 17 #line hidden 18 19 #line 6 "D:\dynamicweb.net\Solutions\NexTech\sodexo.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\APICallbackJCC_NT.cshtml" 20 using System.Collections.Generic; 21 22 #line default 23 #line hidden 24 using System.Linq; 25 26 #line 2 "D:\dynamicweb.net\Solutions\NexTech\sodexo.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\APICallbackJCC_NT.cshtml" 27 using Dynamicweb; 28 29 #line default 30 #line hidden 31 32 #line 3 "D:\dynamicweb.net\Solutions\NexTech\sodexo.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\APICallbackJCC_NT.cshtml" 33 using Dynamicweb.Core; 34 35 #line default 36 #line hidden 37 38 #line 5 "D:\dynamicweb.net\Solutions\NexTech\sodexo.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\APICallbackJCC_NT.cshtml" 39 using System.Web; 40 41 #line default 42 #line hidden 43 44 #line 7 "D:\dynamicweb.net\Solutions\NexTech\sodexo.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\APICallbackJCC_NT.cshtml" 45 using Dynamicweb.Rapido.Blocks; 46 47 #line default 48 #line hidden 49 50 #line 8 "D:\dynamicweb.net\Solutions\NexTech\sodexo.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\APICallbackJCC_NT.cshtml" 51 using NextechDWAddIn; 52 53 #line default 54 #line hidden 55 56 #line 9 "D:\dynamicweb.net\Solutions\NexTech\sodexo.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\APICallbackJCC_NT.cshtml" 57 using NextechDWAddIn.Common; 58 59 #line default 60 #line hidden 61 62 63 public class RazorEngine_d9d2966470f34f7d91a6013093241d82 : Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> { 64 65 #line hidden 66 67 public RazorEngine_d9d2966470f34f7d91a6013093241d82() { 68 } 69 70 public override void Execute() { 71 WriteLiteral("\r\n"); 72 73 74 #line 11 "D:\dynamicweb.net\Solutions\NexTech\sodexo.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\APICallbackJCC_NT.cshtml" 75 76 77 LoggerTransaction.Instance.Log(ErrorLevel.JCC, "APICallbackJCC_NT.cshtml OnLoad()"); 78 LoggerTransaction.Instance.Log(ErrorLevel.JCC, "APICallbackJCC_NT.cshtml OnLoad() HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority); = " + HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority)); 79 try 80 { 81 var JCCResponse_Test = HttpContext.Current.Request; 82 if (JCCResponse_Test != null) 83 { 84 //LoggerTransaction.Instance.Log(ErrorLevel.JCC, "APICallbackJCC_NT.cshtml JCC Response URL: " + JCCResponse_Test.Url); 85 foreach (string formKey in HttpContext.Current.Request.Form.AllKeys) 86 { 87 LoggerTransaction.Instance.Log(ErrorLevel.JCC, "APICallbackJCC_NT.cshtml Context.Current.Form = > Key: " + formKey + " Value: " + HttpContext.Current.Request.Form[formKey].ToString()); 88 } 89 string MerID_ = ""; 90 string AcqID_ = ""; 91 string OrderID_ = ""; 92 string ResponseCode_ = ""; 93 string ReasonCode_ = ""; 94 string ReasonCodeDesc_ = ""; 95 string ReferenceNo_ = ""; 96 string PaddedCardNo_ = ""; 97 string ResponseSignature_ = ""; 98 string AuthCode_ = ""; 99 //? MerID 100 if (Context.Current.Request.Form["MerID"] != null && !string.IsNullOrWhiteSpace(Context.Current.Request.Form["MerID"])) 101 { 102 MerID_ = Context.Current.Request.Form["MerID"].ToString(); 103 } 104 //? AcqID 105 if (Context.Current.Request.Form["AcqID"] != null && !string.IsNullOrWhiteSpace(Context.Current.Request.Form["AcqID"])) 106 { 107 AcqID_ = Context.Current.Request.Form["AcqID"].ToString(); 108 } 109 //? OrderID 110 if (Context.Current.Request.Form["OrderID"] != null && !string.IsNullOrWhiteSpace(Context.Current.Request.Form["OrderID"])) 111 { 112 OrderID_ = Context.Current.Request.Form["OrderID"].ToString(); 113 } 114 //? ResponseCode 115 if (Context.Current.Request.Form["ResponseCode"] != null && !string.IsNullOrWhiteSpace(Context.Current.Request.Form["ResponseCode"])) 116 { 117 ResponseCode_ = Context.Current.Request.Form["ResponseCode"].ToString(); 118 } 119 //? ReasonCode 120 if (Context.Current.Request.Form["ReasonCode"] != null && !string.IsNullOrWhiteSpace(Context.Current.Request.Form["ReasonCode"])) 121 { 122 ReasonCode_ = Context.Current.Request.Form["ReasonCode"].ToString(); 123 } 124 //? ReasonCodeDesc 125 if (Context.Current.Request.Form["ReasonCodeDesc"] != null && !string.IsNullOrWhiteSpace(Context.Current.Request.Form["ReasonCodeDesc"])) 126 { 127 ReasonCodeDesc_ = Context.Current.Request.Form["ReasonCodeDesc"].ToString(); 128 } 129 //? ReferenceNo 130 if (Context.Current.Request.Form["ReferenceNo"] != null && !string.IsNullOrWhiteSpace(Context.Current.Request.Form["ReferenceNo"])) 131 { 132 ReferenceNo_ = Context.Current.Request.Form["ReferenceNo"].ToString(); 133 } 134 //? PaddedCardNo 135 if (Context.Current.Request.Form["PaddedCardNo"] != null && !string.IsNullOrWhiteSpace(Context.Current.Request.Form["PaddedCardNo"])) 136 { 137 PaddedCardNo_ = Context.Current.Request.Form["PaddedCardNo"].ToString(); 138 } 139 //? ResponseSignature 140 if (Context.Current.Request.Form["ResponseSignature"] != null && !string.IsNullOrWhiteSpace(Context.Current.Request.Form["ResponseSignature"])) 141 { 142 ResponseSignature_ = Context.Current.Request.Form["ResponseSignature"].ToString(); 143 } 144 //! Only if ReasonCode And ResponseCode are equal to 1 145 //? AuthCode 146 if (Context.Current.Request.Form["AuthCode"] != null && !string.IsNullOrWhiteSpace(Context.Current.Request.Form["AuthCode"])) 147 { 148 AuthCode_ = Context.Current.Request.Form["AuthCode"].ToString(); 149 } 150 151 if(!string.IsNullOrWhiteSpace(OrderID_)) 152 { 153 JCC.CompleteOrder_JCCCallback(OrderID_,MerID_,AcqID_,ResponseCode_,ReasonCode_,ReasonCodeDesc_,AuthCode_,ReferenceNo_,PaddedCardNo_,ResponseSignature_); 154 } 155 156 } 157 else 158 {LoggerTransaction.Instance.Log(ErrorLevel.JCC, "APICallbackJCC_NT.cshtml JCC Response IS NULL ");} 159 } 160 catch (Exception CSexce) 161 { 162 LoggerTransaction.Instance.Log(ErrorLevel.JCC, "Error at CompleteOrder_JCCCallback: " + CSexce.Message + " StackTrace: " + CSexce.StackTrace); 163 } 164 165 166 #line default 167 #line hidden 168 } 169 } 170 } 171

1 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 2 @using Dynamicweb 3 @using Dynamicweb.Core 4 @using System 5 @using System.Web 6 @using System.Collections.Generic 7 @using Dynamicweb.Rapido.Blocks 8 @using NextechDWAddIn 9 @using NextechDWAddIn.Common 10 11 @{ 12 13 LoggerTransaction.Instance.Log(ErrorLevel.JCC, "APICallbackJCC_NT.cshtml OnLoad()"); 14 LoggerTransaction.Instance.Log(ErrorLevel.JCC, "APICallbackJCC_NT.cshtml OnLoad() HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority); = " + HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority)); 15 try 16 { 17 var JCCResponse_Test = HttpContext.Current.Request; 18 if (JCCResponse_Test != null) 19 { 20 //LoggerTransaction.Instance.Log(ErrorLevel.JCC, "APICallbackJCC_NT.cshtml JCC Response URL: " + JCCResponse_Test.Url); 21 foreach (string formKey in HttpContext.Current.Request.Form.AllKeys) 22 { 23 LoggerTransaction.Instance.Log(ErrorLevel.JCC, "APICallbackJCC_NT.cshtml Context.Current.Form = > Key: " + formKey + " Value: " + HttpContext.Current.Request.Form[formKey].ToString()); 24 } 25 string MerID_ = ""; 26 string AcqID_ = ""; 27 string OrderID_ = ""; 28 string ResponseCode_ = ""; 29 string ReasonCode_ = ""; 30 string ReasonCodeDesc_ = ""; 31 string ReferenceNo_ = ""; 32 string PaddedCardNo_ = ""; 33 string ResponseSignature_ = ""; 34 string AuthCode_ = ""; 35 //? MerID 36 if (Context.Current.Request.Form["MerID"] != null && !string.IsNullOrWhiteSpace(Context.Current.Request.Form["MerID"])) 37 { 38 MerID_ = Context.Current.Request.Form["MerID"].ToString(); 39 } 40 //? AcqID 41 if (Context.Current.Request.Form["AcqID"] != null && !string.IsNullOrWhiteSpace(Context.Current.Request.Form["AcqID"])) 42 { 43 AcqID_ = Context.Current.Request.Form["AcqID"].ToString(); 44 } 45 //? OrderID 46 if (Context.Current.Request.Form["OrderID"] != null && !string.IsNullOrWhiteSpace(Context.Current.Request.Form["OrderID"])) 47 { 48 OrderID_ = Context.Current.Request.Form["OrderID"].ToString(); 49 } 50 //? ResponseCode 51 if (Context.Current.Request.Form["ResponseCode"] != null && !string.IsNullOrWhiteSpace(Context.Current.Request.Form["ResponseCode"])) 52 { 53 ResponseCode_ = Context.Current.Request.Form["ResponseCode"].ToString(); 54 } 55 //? ReasonCode 56 if (Context.Current.Request.Form["ReasonCode"] != null && !string.IsNullOrWhiteSpace(Context.Current.Request.Form["ReasonCode"])) 57 { 58 ReasonCode_ = Context.Current.Request.Form["ReasonCode"].ToString(); 59 } 60 //? ReasonCodeDesc 61 if (Context.Current.Request.Form["ReasonCodeDesc"] != null && !string.IsNullOrWhiteSpace(Context.Current.Request.Form["ReasonCodeDesc"])) 62 { 63 ReasonCodeDesc_ = Context.Current.Request.Form["ReasonCodeDesc"].ToString(); 64 } 65 //? ReferenceNo 66 if (Context.Current.Request.Form["ReferenceNo"] != null && !string.IsNullOrWhiteSpace(Context.Current.Request.Form["ReferenceNo"])) 67 { 68 ReferenceNo_ = Context.Current.Request.Form["ReferenceNo"].ToString(); 69 } 70 //? PaddedCardNo 71 if (Context.Current.Request.Form["PaddedCardNo"] != null && !string.IsNullOrWhiteSpace(Context.Current.Request.Form["PaddedCardNo"])) 72 { 73 PaddedCardNo_ = Context.Current.Request.Form["PaddedCardNo"].ToString(); 74 } 75 //? ResponseSignature 76 if (Context.Current.Request.Form["ResponseSignature"] != null && !string.IsNullOrWhiteSpace(Context.Current.Request.Form["ResponseSignature"])) 77 { 78 ResponseSignature_ = Context.Current.Request.Form["ResponseSignature"].ToString(); 79 } 80 //! Only if ReasonCode And ResponseCode are equal to 1 81 //? AuthCode 82 if (Context.Current.Request.Form["AuthCode"] != null && !string.IsNullOrWhiteSpace(Context.Current.Request.Form["AuthCode"])) 83 { 84 AuthCode_ = Context.Current.Request.Form["AuthCode"].ToString(); 85 } 86 87 if(!string.IsNullOrWhiteSpace(OrderID_)) 88 { 89 JCC.CompleteOrder_JCCCallback(OrderID_,MerID_,AcqID_,ResponseCode_,ReasonCode_,ReasonCodeDesc_,AuthCode_,ReferenceNo_,PaddedCardNo_,ResponseSignature_); 90 } 91 92 } 93 else 94 {LoggerTransaction.Instance.Log(ErrorLevel.JCC, "APICallbackJCC_NT.cshtml JCC Response IS NULL ");} 95 } 96 catch (Exception CSexce) 97 { 98 LoggerTransaction.Instance.Log(ErrorLevel.JCC, "Error at CompleteOrder_JCCCallback: " + CSexce.Message + " StackTrace: " + CSexce.StackTrace); 99 } 100 }