fix: [opensem] remove the need to care about leading zeroes in rank

This commit is contained in:
Valentin Lab
2025-10-11 04:59:44 +02:00
parent 1e6a92f7a7
commit e7f71e7b40
2 changed files with 3 additions and 1 deletions

View File

@@ -37,7 +37,7 @@ opensem:
paybox-system:
paybox:
test: true
rank: "001" ## keep the double-quotes !
rank: 1 ## no need for zeroes before !
site: 2XXXX9
id: 2XXXXX4
hmac-key: "FFAXXXXX...XXXXX"

View File

@@ -22,6 +22,8 @@ hmac_key=$(relation-get hmac-key) || {
exit 1
}
rank=$(printf "%03d" "$rank")
[ -n "$test" ] && opensem:config-set PAYBOX_TEST "$test"
opensem:config-set PAYBOX_SITE "$site"
opensem:config-set PAYBOX_RANK "$rank"