Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mohammadhosseinzavvar opened this issue May 27, 2024 · 0 comments
Assignees

Comments

@mohammadhosseinzavvar
Copy link

mohammadhosseinzavvar commented May 27, 2024

قبلا با استفاده از کد زیر به درگاه پرداخت ایران کیش متصل میشدم، ولی جدیدا خطای زیر و میده سلام

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

  • Package Name: Parbad
  • Version: 3.9.1
  • Package Name: Parbad.AspNetCore
  • Version: 1.3.0
  • Package Name: Parbad.Gateway.IranKish
  • Version: 1.0.0

Web application type:
ASP.NET CORE 6.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants