Ejemplo n.º 1
0
        public static PayVerifyResponse Verify(string merchantId, long amount, string authority)
        {
            string z     = "";
            int    count = AuthorityLength - authority.Length;

            for (int i = 0; i < count; i++)
            {
                z += "0";
            }
            authority = z + authority;

            bool     sandBoxMode = merchantId.Equals(TestMerchantId);
            HttpCore httpCore    = new HttpCore(Urls.GetVerificationUrl(sandBoxMode), "POST",
                                                JsonConvert.SerializeObject(new PayVerify(merchantId, amount, authority)));

            return(JsonConvert.DeserializeObject <PayVerifyResponse>(httpCore.GetResponse()));
        }
Ejemplo n.º 2
0
 private ZarinPal()
 {
     this._HttpCore = new HttpCore();
 }
Ejemplo n.º 3
0
 private ZarinPal()
 {
     _HttpCore = new HttpCore();
 }