Closed krisztian-pifko closed 2 years ago
Hello,
I wanted to respond to your issue. I don't have a final answer because I'm not very familiar with the Python RIS SDK, this will take some time to explore. I do have some context that may (or may not!) be helpful :-)
As you noted, the SDK is setting an SDK_VERSION parameter, e.g.
'SDK_VERSION': 'Sdk-Ris-Python-0695-201904241313'
The RIS error, 201 (which means missing version) is related to a different request parameter, VERS
-- This represents the version of the RIS Inquiry. This really drives the behavior, input and output of the Risk Inquiry Service. SDK_VERSION is more metadata about who's using what SDK platform at which version, etc.
Based on the example you posted, I can tell you that RIS is expecting this input: VERS=0695
What I can't answer is where / how / why is the SDK setting VERS to the same string as SDK_VERSION. You should be able to specify the value of VERS using src/kount/request
def set_version(self, version):
"""Set the version number.
Args: version - The SDK version // <-- Yes, this is misleading and should be clarified! -- gallilama
"""
self.set_param("VERS", version)
If you need a quick workaround, try setting VERS in your test client. I will carve out some time for proper root-cause analysis (Python isn't my strength so it may take longer than usual). Hope this helps.
Cheers
@gallilama
Thank you very much for the swift response! I will give the workaround a go.
If VERS
is just SDKConfig.SDK_VERSION
, shouldn't that just automatically be set in the client?
Hello, Based on the example you posted, I can see there is some ris_validator errors = [], missing_in_xml = ['SDK_VERSION', 'SDK'], empty = ['ANID'] Here it’s showing, SDK_VERSION, SDK metadata is missing from xml file.
For that, you have to add this metadata in your kount/resource/validate.xml
`
<max_length>20</max_length>
</param>
<param name='SDK_VERSION'>
<max_length>30</max_length>
</param>
`
And for empty = [‘ANID’] - Automatic Number Identification (ANI) submitted with order. If the ANI cannot be determined, merchant must pass 0123456789 as the ANID. This field is only valid for MODE=P RIS submissions.
Hope it will be helpful for you.
@sanjeevitt I'm still seeing the same error after this PR https://github.com/Kount/kount-ris-python-sdk/pull/19
I am trying to integrate the SDK, but a basic risk query returns a 201 error. As far as I see, the SDK sends a version parameter. Below is my debug output from the client: