Discussions

Ask a Question
Back to All

headers autenticazione

Buongiorno, sto cercando di creare gli headers per l'autenticazione nell'ambiente sandbox ma ricevo questo messaggio di errore:
{"code":52,"message":"Digest doesn't match","wlt":"EHcD0B8C"}

Questo e' il body:

{
"flow": "MATCH_CODE",
"amount_unit": 100,
"currency": "EUR"
}

Con il quale creo questo digest:

Digest: SHA-256=ZML76UQPYzw5yDTmhySnU1S8nmqGde/jhqOG5rpfVSI=

Questa e' la string con cui creo la signature:

(request-target): post /wally-services/protocol/tests/signature
host: staging.authservices.satispay.com
date: Thu, 30 Jun 2022 11:10:10 +0000
digest: SHA-256=ZML76UQPYzw5yDTmhySnU1S8nmqGde/jhqOG5rpfVSI=

Questa e' la signature:
h+gT9i7YN5/4iu/1XkoYnAmWw+4GAQgs8xy1icTFVKMqR1qLrbwM1g/ckx5B6ZVEF3tgQJ2WntUm003Yqq9QB54YTm792t//NHeZAA5d/wEyvl3DIw5eTuMaKTv2NpAch9wHPd48exF7DjyOWFVf+ypLFY2xmvI6Pyyrej/zx0HJiOwTZvSd3abr+od7Ytpkhqb52L93GOI4rXEOtP+IEYIcwF/hGj1TtoO/r8RRfk1jPNH/y+6g7NKtEIsiJpbFW5KU3EyuZg8uqVSvMkBwRTRwD+a7yk83O5Asc2aSbxsJTQDUOFUqjDG7g1aEfzbgJsQDpUfUVzLc/NluUPfn980rhdfeZEkHNU9kHdqVh4IxQJqlGOqSS1uSBh71vrsFTx4deWWfK7sbDeEHfb7dB8r9LbHU/3Yph1mTRAgcSj1TDZXkXG0cokxZPjC7eMnY2+gZZ8IOMryklbvJQ3NcLpx/gsm1t/diT7Ov9yxCG+b09WVynoJ4npxvUX5/rh1+ylNhpXbjdoa57GbnbHS3RfBaoyoHDEBXlw4wKnILECZTk+IS8U4qqNulPasdU+UGjEtDS34TgS8I7NkqzJlIG9QCWOpg1Cc0slNxVuak1wwIsW8wHSVla7bz1S/iGB48C1axu2w7BYRPfvCLNwxTdUkRV1hhbdH1HQ+tLYITAkI=

E questo e' l'header:

{
'Accept': 'application/json',
'Host': 'staging.authservices.satispay.com',
'Date': 'Thu, 30 Jun 2022 11:10:10 +0000',
'Digest': 'SHA-256=ZML76UQPYzw5yDTmhySnU1S8nmqGde/jhqOG5rpfVSI=',
'Authorization': 'Signature keyId="710g1a12r22f1a413clqdunk9epdu99i7dp4ma4v19q7hnlpqlml833hv1o4n5496t0090rudtnfba2sco6p7e4u4jim4sl968cs9etmd78gj3q63jv71rvesba1m43ceh60au9npl4vlckmgdd2nvt3ar8mupolpuu0l2nvmkcmrfcicb2vtomlseiegeevqd6dui9s", algorithm="rsa-sha256", headers="(request-target) host date digest", signature="h+gT9i7YN5/4iu/1XkoYnAmWw+4GAQgs8xy1icTFVKMqR1qLrbwM1g/ckx5B6ZVEF3tgQJ2WntUm003Yqq9QB54YTm792t//NHeZAA5d/wEyvl3DIw5eTuMaKTv2NpAch9wHPd48exF7DjyOWFVf+ypLFY2xmvI6Pyyrej/zx0HJiOwTZvSd3abr+od7Ytpkhqb52L93GOI4rXEOtP+IEYIcwF/hGj1TtoO/r8RRfk1jPNH/y+6g7NKtEIsiJpbFW5KU3EyuZg8uqVSvMkBwRTRwD+a7yk83O5Asc2aSbxsJTQDUOFUqjDG7g1aEfzbgJsQDpUfUVzLc/NluUPfn980rhdfeZEkHNU9kHdqVh4IxQJqlGOqSS1uSBh71vrsFTx4deWWfK7sbDeEHfb7dB8r9LbHU/3Yph1mTRAgcSj1TDZXkXG0cokxZPjC7eMnY2+gZZ8IOMryklbvJQ3NcLpx/gsm1t/diT7Ov9yxCG+b09WVynoJ4npxvUX5/rh1+ylNhpXbjdoa57GbnbHS3RfBaoyoHDEBXlw4wKnILECZTk+IS8U4qqNulPasdU+UGjEtDS34TgS8I7NkqzJlIG9QCWOpg1Cc0slNxVuak1wwIsW8wHSVla7bz1S/iGB48C1axu2w7BYRPfvCLNwxTdUkRV1hhbdH1HQ+tLYITAkI="'
}

Potreste verificare perche' mi dice che il digest non coincide? Sbaglio qualcosa nel creare la stringa? I vostri checker online per la signature ed il digest non funzionano. Potete aiutarmi?
Grazie