/// <summary> /// Gets the pay process time. /// </summary> /// <param name="context">The context.</param> /// <returns></returns> public override string GetPayProcessTime(Entity.Payment.CallbackContext context) { return(context.ResponseForm["transferTime"]); }
/// <summary> /// Gets the so system no. /// </summary> /// <param name="context">The context.</param> /// <returns></returns> public override int GetSOSysNo(Entity.Payment.CallbackContext context) { return(int.Parse(context.ResponseForm["orderNo"])); }
/// <summary> /// Gets the serial number. /// </summary> /// <param name="context">The context.</param> /// <returns></returns> public override string GetSerialNumber(Entity.Payment.CallbackContext context) { return(context.ResponseForm["payFlowNo"]); }
/// <summary> /// Gets the pay amount. /// </summary> /// <param name="context">The context.</param> /// <returns></returns> public override decimal GetPayAmount(Entity.Payment.CallbackContext context) { return(decimal.Parse(context.ResponseForm["orderAmt"])); }
/// <summary> /// Gets the pay result. /// </summary> /// <param name="context">The context.</param> /// <returns></returns> public override bool GetPayResult(Entity.Payment.CallbackContext context) { return(context.ResponseForm["tranResult"].Equals("20")); }
/// <summary> /// Verifies the sign. /// </summary> /// <param name="context">The context.</param> /// <returns></returns> public override bool VerifySign(Entity.Payment.CallbackContext context) { return(context.PaymentInfo.PaymentMode.BankCert == context.ResponseForm["merchantNo"] && context.ResponseForm["signMsgBank"].Length > 0 && VerifyCallbackData(context)); }