public PaydunyaCheckoutInvoice(PaydunyaSetup setup, PaydunyaStore store) { this.setup = setup; this.store = store; this.utility = new PaydunyaUtility(setup); storeData.Add("name", this.store.Name); storeData.Add("tagline", this.store.Tagline); storeData.Add("postal_address", this.store.PostalAddress); storeData.Add("website_url", this.store.WebsiteUrl); storeData.Add("phone_number", this.store.PhoneNumber); storeData.Add("logo_url", this.store.LogoUrl); if(!string.IsNullOrEmpty(this.store.CancelUrl)) { actions.Add("cancel_url", this.store.CancelUrl); } if (!string.IsNullOrEmpty(this.store.ReturnUrl)) { actions.Add("return_url", this.store.ReturnUrl); } if (!string.IsNullOrEmpty(this.store.ReturnUrl)) { actions.Add("callback_url", this.store.CallbackUrl); } }
public PaydunyaCheckoutInvoice(PaydunyaSetup setup, PaydunyaStore store) { this.setup = setup; this.store = store; this.utility = new PaydunyaUtility(setup); storeData = PayDunyaHelper.SetPaydunyaStore(store); if (!string.IsNullOrEmpty(this.store.CancelUrl)) { actions.Add("cancel_url", this.store.CancelUrl); } if (!string.IsNullOrEmpty(this.store.ReturnUrl)) { actions.Add("return_url", this.store.ReturnUrl); } if (!string.IsNullOrEmpty(this.store.ReturnUrl)) { actions.Add("callback_url", this.store.CallbackUrl); } }
public PaydunyaDirectPay(PaydunyaSetup setup) { this.setup = setup; this.utility = new PaydunyaUtility(setup); }