AnsweredAssumed Answered

Unable to show "Cancel" Button in Iframe

Question asked by rkmoray on Oct 26, 2018
Latest reply on Nov 1, 2018 by bcartwright

I am using hosted checkout in an iframe .

In my initialization process, I am trying to show the ""Cancel" button, and hide the "JCB" button.

Neither is working.

here is my code.

 

HCService.InitPaymentRequest hcRequest = new HCService.InitPaymentRequest();
hcRequest.MerchantID = Session["MerchantID"].ToString();
hcRequest.Password = Session["MerchantPWD"].ToString();
hcRequest.TranType = "sale";
hcRequest.Memo = "xxxxxxxxxxxxxxxxxxx";
hcRequest.PageTitle = "xxxxxxxxxxxxxxxxxxxxx";
hcRequest.TaxAmount = 0;
hcRequest.TotalAmount = Double.Parse(Session["Charges"].ToString());
hcRequest.Frequency = "OneTime";
hcRequest.CancelButton = "on";
hcRequest.JCB = "off";
hcRequest.Invoice = System.DateTime.Now.ToString("yyyyMMddHHMMfff");
hcRequest.ReturnUrl = System.Web.Configuration.WebConfigurationManager.AppSettings["returnURL"].ToString();
hcRequest.ProcessCompleteUrl = System.Web.Configuration.WebConfigurationManager.AppSettings["processCompleteURL"].ToString();
utils.WriteToLog("Initialize hcWS");
HCService.HCService hcWS = new HCService.HCService();
HCService.InitPaymentResponse response = new HCService.InitPaymentResponse();
response = hcWS.InitializePayment(hcRequest);

Outcomes