Open mohammadhosseinzavvar opened 5 months ago
قبلا با استفاده از کد زیر به درگاه پرداخت ایران کیش متصل میشدم، ولی جدیدا خطای زیر و میده سلام
services.AddParbad() .ConfigureGateways(gateways => { gateways .AddIranKish() .WithAccounts(accounts => { accounts.AddInMemory(account => { account.Name = "*****"; account.TerminalId = "*****"; account.PublicKey = "*****"; }); }); }) .ConfigureHttpContext(builder => builder.UseDefaultAspNetCore()) .ConfigureStorage(builder => { builder.UseEfCore(options => { // Using SQL Server var assemblyName = typeof(Startup).Assembly.GetName().Name; options.ConfigureDbContext = db => db.UseSqlServer(Configuration.GetConnectionString("*****"), sql => sql.MigrationsAssembly(assemblyName)); options.PaymentTableOptions.Name = "*****"; options.DefaultSchema = "*****"; options.TransactionTableOptions.Name = "*****"; options.TransactionTableOptions.Schema = "*****"; }); }); کد اتصال به درگاه var result = await _OnlinePayment.RequestAsync(invoice => { var VerifyUrl = Url.Action("Verify", "Default", null, Request.Scheme); decimal Price = 1750000; invoice .SetAmount(Price) .SetCallbackUrl(VerifyUrl) .SetGateway("IranKish"); invoice.UseAutoRandomTrackingNumber(); }); Package name and version
services.AddParbad() .ConfigureGateways(gateways => { gateways .AddIranKish() .WithAccounts(accounts => { accounts.AddInMemory(account => { account.Name = "*****"; account.TerminalId = "*****"; account.PublicKey = "*****"; }); }); }) .ConfigureHttpContext(builder => builder.UseDefaultAspNetCore()) .ConfigureStorage(builder => { builder.UseEfCore(options => { // Using SQL Server var assemblyName = typeof(Startup).Assembly.GetName().Name; options.ConfigureDbContext = db => db.UseSqlServer(Configuration.GetConnectionString("*****"), sql => sql.MigrationsAssembly(assemblyName)); options.PaymentTableOptions.Name = "*****"; options.DefaultSchema = "*****"; options.TransactionTableOptions.Name = "*****"; options.TransactionTableOptions.Schema = "*****"; }); });
var result = await _OnlinePayment.RequestAsync(invoice => { var VerifyUrl = Url.Action("Verify", "Default", null, Request.Scheme); decimal Price = 1750000; invoice .SetAmount(Price) .SetCallbackUrl(VerifyUrl) .SetGateway("IranKish"); invoice.UseAutoRandomTrackingNumber(); });
Web application type: ASP.NET CORE 6.0.0
قبلا با استفاده از کد زیر به درگاه پرداخت ایران کیش متصل میشدم، ولی جدیدا خطای زیر و میده سلام
services.AddParbad() .ConfigureGateways(gateways => { gateways .AddIranKish() .WithAccounts(accounts => { accounts.AddInMemory(account => { account.Name = "*****"; account.TerminalId = "*****"; account.PublicKey = "*****"; }); }); }) .ConfigureHttpContext(builder => builder.UseDefaultAspNetCore()) .ConfigureStorage(builder => { builder.UseEfCore(options => { // Using SQL Server var assemblyName = typeof(Startup).Assembly.GetName().Name; options.ConfigureDbContext = db => db.UseSqlServer(Configuration.GetConnectionString("*****"), sql => sql.MigrationsAssembly(assemblyName)); options.PaymentTableOptions.Name = "*****"; options.DefaultSchema = "*****"; options.TransactionTableOptions.Name = "*****"; options.TransactionTableOptions.Schema = "*****"; }); });
کد اتصال به درگاهvar result = await _OnlinePayment.RequestAsync(invoice => { var VerifyUrl = Url.Action("Verify", "Default", null, Request.Scheme); decimal Price = 1750000; invoice .SetAmount(Price) .SetCallbackUrl(VerifyUrl) .SetGateway("IranKish"); invoice.UseAutoRandomTrackingNumber(); });
Package name and versionWeb application type: ASP.NET CORE 6.0.0