Thursday, 22 December 2016

Integrate Perfect Money in asp.net. , perfect money api integration in asp.net

download class file from give link
http://traininginjaipur.com/perfectmoneyclass.zip



  PerfectMoney obj = new PerfectMoney();

int paymentid= any random unique no ;


   Dictionary<string, string> results = obj.Transfer(PerfectMoneyAc, PerfectMoneyPwd, PerfectMoneyPayeerID,ReciverPayeerID, current_amt_in_doller, 1, paymentid);
                        if (results.Count > 0)
                        {
                            foreach (var i in results)
                            {
                                if (i.Key == "ERROR")
                                {
                                    f = 1;
                                    ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "msg", "alert('" + i.Key + "," + i.Value + "');window.location='Account.aspx';", true);
                                }

                            }

                            if (f == 0)
                            {

                           
                                ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "msg", "alert('Withdrawal successfull');window.location='ReturnfromPerfectMoney_Withdrawal_Yes.aspx?a=" + key + "';", true);
                            }
                        }

No comments:

Post a Comment