protected void Page_Load(object sender, EventArgs e) { try { PaymentRequest request = Session[PageName] as PaymentRequest; if (null != request) { request.Submit(); } } catch (Exception ex) { //Logging } finally { Session.Remove(PageName); } }
public override void Submit() { try { PaymentRequest request = HttpContext.Current.Session["PGHInterface.aspx"] as PaymentRequest; if (null != request) { if (HLConfigManager.Configurations.PaymentsConfiguration.ConvertAmountDue) { request.Amount = OrderProvider.GetConvertedAmount(request.Amount, this._country); } request.Submit(); } } catch (Exception ex) { //Logging string s = ex.Message; } finally { HttpContext.Current.Session.Remove("PGHInterface.aspx"); } }