adelosa / cardutil

Payment cards tools including ISO8583 parser and Mastercard IPM files processing
MIT License
24 stars 4 forks source link

MASTERCARD PARAMETER FILE #8

Closed charisad closed 1 year ago

charisad commented 2 years ago

How do I determine DE93 from Parameter file using mci_ipm_param_to_csv.

adelosa commented 2 years ago

I have not mapped out all the config in the IPM Param files so not sure the specific table that contains the DE field mapping to convert to CSV. If you know what table, you can provide your own mapping via config. I don't have the MasterCard manuals to hand to check this.

charisad commented 2 years ago

Okay, I found the tables I want IP0040T1 and IP0075T1. Can you assist on how to use the mci_ipm_param_to_csv? Always getting this error -- requested 4 bytes, got 0 -- exiting. Kindly assist

charisad commented 2 years ago

Okay, I found the tables I want IP0040T1 and IP0075T1. Can you assist on how to use the mci_ipm_param_to_csv? Always getting this error -- requested 4 bytes, got 0 -- exiting. Kindly assist

Kindly assist

adelosa commented 2 years ago

I will look at this when I have some time. I am available for paid engagements if your request is urgent. Please contact me via email for more details on costs to go down this path. Otherwise, please refrain from posting reminders here. Thanks.

adelosa commented 2 years ago

Hi there, There is not enough information for me to work out what the issue is. The 2 tables you mentioned have config, but I have not updated them for some time. I am going to add a debug option to the command line utilities so that I can diagnose issues with files without having the files sent to me, but this will take me a little bit of time to put together. It will be available in the next release. I'll let you know..

charisad commented 1 year ago

Hi @adelosa can you please share a sample config file for the mci_ipm_param_to_csv --config parameter. I want to update the config of the two tables. Below are the added fields for the tables. IP0040T1 [cardholder_bill_primary_currency] [chip_to_magstripe_conversion_service_indicator] [floor_exp_date] [co_brand_participation_switch] [spend_control_switch] [merchant_cleansing_service_participation] [merchant_cleansing_activation_date] [paypass_enabled_indicator] [rate_type_indicator] [psn_route_indicator] [cash_back_wo_purchase_ind]

IP0075T1 [cab_program_status] [tcc] [status]

adelosa commented 1 year ago

Config file documentation: https://cardutil.readthedocs.io/en/latest/cli.html#config-file and https://cardutil.readthedocs.io/en/latest/api.html#mci-parameter-tables Provided default config file: https://github.com/adelosa/cardutil/blob/master/cardutil/config.py Let me know if you need more details. Please consider contributing your new config file back to the project by attaching it to this issue. I will then update the default config.

charisad commented 1 year ago

Hi Anthony,

Thanks, I have found the config file, Attached is the updated config file(cardutil.json). Compressed because of JSON format issues.

Regards,

Collins Baffour.

cardutil.zip

charisad commented 1 year ago

Hi Anthony now everything is working fine, can the echo be turned off for mci_ipm_param_to_csv?

adelosa commented 1 year ago

I don't know what you mean. Can you provide details of what command paeans and the output you are receiving so I can understand the issue.

charisad commented 1 year ago

This is what I mean when you execute the command below, I don't want the tables to be printed in the console as in the image below:

mci_ipm_param_to_csv --in-encoding latin1 T168OLD --config cardutil.json IP0040T1

image

adelosa commented 1 year ago

What is the contents of cardutil.json?

charisad commented 1 year ago

The updated config file I sent to you

On Fri, 21 Oct 2022, 08:27 Anthony Delosa, @.***> wrote:

What is the contents of cardutil.json?

— Reply to this email directly, view it on GitHub https://github.com/adelosa/cardutil/issues/8#issuecomment-1286634513, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFRDNPPOSJ2UWDAJPJ32KDLWEJHWZANCNFSM5Y57CXPQ . You are receiving this because you authored the thread.Message ID: @.***>

adelosa commented 1 year ago

OK great - I missed the files you added to GitHub.. Thanks for this. I am adding this to the default config. I have also removed the print of the tables from param reader so you should not see this list unless you are using debug mode. I will be releasing a new version shortly including the debug, config updates and above print remove.

charisad commented 1 year ago

Awesome, thanks!

On Sat, Oct 22, 2022 at 1:05 AM Anthony Delosa @.***> wrote:

OK great - I missed the files you added to GitHub.. Thanks for this. I am adding this to the default config. I have also removed the print of the tables from param reader so you should not see this list unless you are using debug mode. I will be releasing a new version shortly including the debug, config updates and above print remove.

— Reply to this email directly, view it on GitHub https://github.com/adelosa/cardutil/issues/8#issuecomment-1287567604, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFRDNPIQBIOE4NP6C4AZBCTWEM4W7ANCNFSM5Y57CXPQ . You are receiving this because you authored the thread.Message ID: @.***>

adelosa commented 1 year ago

Closing as resolved.