Skip to content

What is the best practice if we have fields specs which are different for different type of messages ? #242

Answered by alovak
Achuthen asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Achuthen! From my experience working the all of the major card brands, the way iso8583 messaging works is this:

  1. You define whole specification with all possible messages. Example of such can be found here: https://github.com/moov-io/iso8583/blob/master/specs/spec87ascii.go. You should define all fields that your provider has in their documentation. You don't know when some field can be added to the response and you will fail to unpack a message with an unknown field.

In some cases, when field N is a composite field (field with subfields) but you don't need to work with it now or in the future, you can just define it as Binary field in your spec without digging deeper. In this way d…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by adamdecaf
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested best practice how to
3 participants
Converted from issue

This discussion was converted from issue #241 on June 26, 2023 18:27.