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