checkout / checkout-sdk-net

Checkout SDK for Microsoft .NET
https://checkout.com
MIT License
20 stars 21 forks source link

Missing Enum value in Checkout.Common.CountryCode #339

Closed Saria-Houloub-Webbeds closed 10 months ago

Saria-Houloub-Webbeds commented 11 months ago

Environment

Description

While calling

client.PaymentsClient().GetPaymentDetails(paymentId)

On a transaction that was made under UK billing address, we are getting JSON parse exception "

"Requested value 'UK' was not found."

Expected behavior

Parses correctly and provides the data

Current behavior

Throws JSON parse exception.

Steps to reproduce

Create a payment under UK billing address Try to get the payment through SDK by calling GetPaymentDetails

Possible solution

Additional information

armando-rodriguez-cko commented 11 months ago

Hi @Saria-Houloub-Webbeds! in the API reference we can find: https://api-reference.checkout.com/#operation/requestAPaymentOrPayout!path=0/source/2/billing_address/country&t=request image Here all the country codes: https://github.com/checkout/checkout-sdk-net/blob/master/src/CheckoutSdk/Common/CountryCode.cs "UK" isn't listed, probably you will need to contact with support team, we are checking if we can make something from SDK team. Here are the valid country codes: https://www.checkout.com/docs/developer-resources/testing/codes/country-codes

armando-rodriguez-cko commented 10 months ago

Hi @Saria-Houloub-Webbeds, can you check if your problems have been resolved with the new version?

armando-rodriguez-cko commented 10 months ago

We closed this issue due to inactivity. If you more questions about it, please open a new issue. Thank you.