Finishing up the first stages of the HSBC Payment Provider and I need to pass through the numeric country code to the service which is currently not available through the API or as far as I can tell the .Net Framework, only the alpha codes.
Looking for advice on the best way to implement this since I am sure they will not be the only payment provider using this method of country identification?
I had a similar challenge when I did our license store. I ended up doing an extension method for country, which maps country codes from a lookup structure.
ISO 3166-1 numeric codes
Finishing up the first stages of the HSBC Payment Provider and I need to pass through the numeric country code to the service which is currently not available through the API or as far as I can tell the .Net Framework, only the alpha codes.
Looking for advice on the best way to implement this since I am sure they will not be the only payment provider using this method of country identification?
Thanks, Simon
I had a similar challenge when I did our license store. I ended up doing an extension method for country, which maps country codes from a lookup structure.
Something you're willing to share? Is this something that may be included OOTB in the future?
Thanks, Simon
In my case my requirement was slightly different: I needed to figure out whether any given ISO code belongs to the EU, but the idea is the same.
Here the extension I did:
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.