Sina-Soltani / Parbad

A free, open-source, integrated and extensible library which connects your web applications to online payment gateways. Gateways can be added or developed by you.
GNU Lesser General Public License v3.0
371 stars 81 forks source link

مشکل در ارسال به درگاه پرداخت ایران کیش #388

Open mohammadhosseinzavvar opened 5 months ago

mohammadhosseinzavvar commented 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 = "*****"; }); }); Error کد اتصال به درگاه 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

Web application type: ASP.NET CORE 6.0.0