Mangopay / mangopay2-net-sdk

.Net SDK for MANGOPAY
https://www.nuget.org/packages/mangopay2-sdk/
20 stars 23 forks source link

CardInfoType can be nullable in some case when using WithNext payment provider #232

Open RudyLeetchi opened 1 week ago

RudyLeetchi commented 1 week ago

Sometimes with some card in case of a direct card payment, and if MangoPay use the provider WithNext, the response API of the API path https://api.mangopay.com/v2.01/leetchi/payins/card/direct has a sub type CardInfo like:

"CardInfo": { "BIN": "46338910", "IssuingBank": null, "IssuerCountryCode": "FR", "Type": null, "Brand": "VISA", "SubType": "PURCHASING" }

The Type field is null and this is not supported by the deserializer of restSharp which throw an exception but ignored and the sdk return in this case a Dto with all property null.