-
Notifications
You must be signed in to change notification settings - Fork 77
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
خطا در دریافت invoice با استفاده از Tracking Number #378
Comments
درود |
خیلی ممنون از پاسخگوییتون |
توضیح خطا
در هنگام استفاده از متد
_onlinePayment.FetchAsync(tackingNumber)
درگاه زرین پال خطای null reference دریافت میشود.System.NullReferenceException: Object reference not set to an instance of an object. at Parbad.Gateway.ZarinPal.ZarinPalGateway.FetchAsync(InvoiceContext context, CancellationToken cancellationToken) at Parbad.Internal.DefaultOnlinePayment.FetchAsync(Payment payment, CancellationToken cancellationToken)
خطا به احتمال زیاد در خط زیر اتفاق میافتد:
Parbad/src/Parbad.Gateway/ZarinPal/src/ZarinPalGateway.cs
Line 83 in 7feb428
در این خط HttpContext نال هست چون من داخل Background Service دارم از این متد استفاده میکنم تا بتونم پرداخت های ناقص رو با زرین پال وریفای کنم.
اما به نظر میرسه حتی اگر HttpContext هم نال نباشه این مسیر اشتباه هست چون اطلاعات وریفای از جمله Authority باید از دیتابیس خودمون برداشته بشه به جای خواندن از ریکوئست.
نام و نسخه پکیج
Web application type:
نوع برنامه وب
The text was updated successfully, but these errors were encountered: