Skip to content

Commit

Permalink
feat: Checksum change to include also the Prefix BPN(L-S-A)
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirMattarx committed Jun 13, 2024
1 parent 1f2f9e0 commit aea185e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class BpnIssuingService(

private fun createBpn(number: Long, bpnChar: Char): String {
val code = toBpnCode(number)
val checksum = calculateChecksum(code)
val checksum = calculateChecksum(bpnConfigProperties.id + bpnChar + code)

return "${bpnConfigProperties.id}$bpnChar$code$checksum"
}
Expand Down

0 comments on commit aea185e

Please sign in to comment.