Example #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()));
        }
Example #2
0
 private ZarinPal()
 {
     this._HttpCore = new HttpCore();
 }
Example #3
0
 private ZarinPal()
 {
     _HttpCore = new HttpCore();
 }