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
364 stars 81 forks source link

وقوع خطا هنگام برگشت دادن پول در درگاه زرین پال #314

Closed Mortezamir81 closed 1 year ago

Mortezamir81 commented 2 years ago

با سلام هنگام استفاده از متد RefundCompletlyAsync به خطای زیر برمیخورم :

JsonSerializationException: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'Parbad.Gateway.ZarinPal.Internal.ZarinPalErrorModel' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly. To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array. Path 'errors', line 1, position 23.

Package name and version

Web application type:

Sina-Soltani commented 2 years ago

310

Sina-Soltani commented 2 years ago

درود این نسخه ظاهرا باگ داره. من متاسفانه تا حداقل ۲ هفته دیگه فرصتی برای برطرف کردن مشکل ندارم. لطفا یا از نسخه قبلی استفاده کنید و یا باید صبر کنید. سپاس

emdadgar2 commented 1 year ago

این باگ در نسخه 1.4 هم مشاهده شد

Sina-Soltani commented 1 year ago

این باگ در نسخه 1.4 هم مشاهده شد

درود در چه زمانی؟

emdadgar2 commented 1 year ago

هنگام verify کردن پرداخت این خطا را می دهد

Sina-Soltani commented 1 year ago

هنگام verify کردن پرداخت این خطا را می دهد

این شرکت اخیرا ساختار پاسخ رو تغییر داده و همچنین درگاه تست رو غیرفعال کرده که باعث شده که تست برنامه دیگه امکان پذیر نباشه. متاسفانه کاری نمیشه کرد مگر اینکه کسی زحمت بکشه و پاسخی که از درگاه موقع وریفای دریافت میشه رو لاگ کنه تا من ببینم ساختار چه تغییری کرده.

emdadgar2 commented 1 year ago

هنگام verify کردن پرداخت این خطا را می دهد

این شرکت اخیرا ساختار پاسخ رو تغییر داده و همچنین درگاه تست رو غیرفعال کرده که باعث شده که تست برنامه دیگه امکان پذیر نباشه. متاسفانه کاری نمیشه کرد مگر اینکه کسی زحمت بکشه و پاسخی که از درگاه موقع وریفای دریافت میشه رو لاگ کنه تا من ببینم ساختار چه تغییری کرده.

این آدرس را چک کردید؟

https://docs.zarinpal.com/paymentGateway/sandbox.html

Sina-Soltani commented 1 year ago

این آدرس را چک کردید؟

https://docs.zarinpal.com/paymentGateway/sandbox.html

https://github.com/Sina-Soltani/Parbad/blob/master/src/Parbad.Gateway/ZarinPal/src/ZarinPalGatewayOptions.cs