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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RudyLeetchi
Copy link

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.

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

Successfully merging this pull request may close these issues.

1 participant