예제 #1
0
        void UpdateTransDB()
        {
            // sign up
            if (ShoWName != "" && ShoWName != "")
            {
                if (ShoWName.ToString().Equals("RCM-signup"))
                {
                    RoyalWebApp.EntityServiceReference.EntityServiceClient ServiceClient = new RoyalWebApp.EntityServiceReference.EntityServiceClient();
                    ServiceClient.Open();
                    int Confirm = ServiceClient.UpdatePaymentDetails(transactionId.ToString(), 1, 1, Convert.ToDecimal(amt.ToString()), transactionId.ToString());
                    ServiceClient.Close();
                    //send mail
                    if (!IsPostBack)
                    {
                        HTMLSignUpMailer(transactionId);
                    }
                }
                //top up
                if (ShoWName.ToString().Equals("RCM-topup"))
                {
                    //update top up

                    RoyalWebApp.EntityServiceReference.EntityServiceClient ServiceClient = new RoyalWebApp.EntityServiceReference.EntityServiceClient();
                    ServiceClient.Open();
                    int Confirm = ServiceClient.UpdateTopUpStatus(transactionId.ToString(), 1, 0);
                    ServiceClient.Close();
                }
            }
        }
예제 #2
0
 protected void GetResponse()
 {
     if (status.ToString().Equals("50020"))
     {
         //Pay Details , Sent To Loyelty Card Page --  CardType,TransID,Amt,ShowName
         UpdateTransDB();
         DivResult.InnerHtml = "<b>Payment Successful</b> <br/>Type:<br/>" + ShoWName.ToUpper() + "<br/> Amount: " + amt.ToString() + "<br/>Transaction Id: " + transactionId.ToString();
         //Response.Write("<b>Payment Successful</b> <br/>Type:<br/>" + ShoWName.ToUpper() + "<br/> Amount: " + amt.ToString() + "<br/>Transaction Id: " + transactionId.ToString());
     }
     else
     {
         DivResult.InnerHtml = "<b>Payment Not Successful</b> <br/>Type:<br/>" + ShoWName.ToUpper() + "<br/> Amount: " + amt.ToString() + "<br/>Transaction Id: " + transactionId.ToString();
         //Response.Write("<b>Payment Not Successful</b> <br/>Type:<br/>" + ShoWName.ToUpper() + "<br/> Amount: " + amt.ToString() + "<br/>Transaction Id: " + transactionId.ToString());
     }
 }