Discussions
Role: public
Salve,
sto mandando una richiesta come da guida:
https://developers.satispay.com/reference/testinput
ho fatto anche il check per il digest e signature e mi risultano ok.
Endpoint: https://staging.authservices.satispay.com/wally-services/protocol/tests/signature
Method: POST
Body:
{"flow":"MATCH_CODE","amount_unit":100,"currency":"EUR"}
Headers:
accept: application/json
host: staging.authservices.satispay.com
date: Fri, 21 Jul 2023 12:50:05 +0000
authorization: Signature keyId =" key ID ", algorithm="rsa-sha256", headers="(request-target) host date digest", signature="JmRmfdIw2hwlykiU/XHCuHyZ5pAhRq/o4tqNKmeOrcLBbmgNCOeYuP54p4OSMHGyxbV4EAabMUy6+a+lS+UMmtxgnrF8ZGS4lqMNA7z0jw+fVoJ0FCmOJvwl5NYe9TtUgiXRo8i0kW0mVG0CGS/4Je3W5DESjxUDptPHuv0Js17MQAHZ9udVUQdemIuh/sqi3VwebKgm3+JNUBh3JsHxBAhSNRZo8VvKUYLKYbSpRP27ppj3tDcRj+9oEIcFmEaB0OaldFcsfTK5fBSzuA5LHsb+rzbG0sKnAcGra6xV9hamdJqNuJC3c9ONqjY7eUjBSBpVSZp+1CFnpAwdMyME7Kk3zu+8XB5+3W9l6+lXaWHjpKZLeaW25mTugGyguTWhOkI0Qf4sNsQyEzypHh7AiqTnjahNiVdKhS4Xn/aDRahbCQLFXlqdwimgaU22mScjtY7FFghnA1tL7db2fcvWIvwbgCKviPZLxm+IcR47yrlOtqN2xquxMUL3W7V6xZIiwpixYwAiIS9rz+ucPvh7Ftiay/f1JKOBMIX0svprbf46DIwk6fj3LCMe7mcAdBkZlKwV9K7XXSD2nJa/IQIU92E0usxxl2wPKBWChmbSr0MxNLaLhPzIiN58XqLCDIXEzCKgY2UjaRwApXAOcrLK3rZF8YYWSuJD+aLGNpnQz6Y="
Content-Type: application/json
Il ritorno è
{
"authentication_key": {
"role": "PUBLIC"
},
"signature": {
"algorithm": "RSA_SHA256",
"headers": [
"(request-target)",
"host",
"date",
"digest"
],
"signature": "JmRmfdIw2hwlykiU/XHCuHyZ5pAhRq/o4tqNKmeOrcLBbmgNCOeYuP54p4OSMHGyxbV4EAabMUy6+a+lS+UMmtxgnrF8ZGS4lqMNA7z0jw+fVoJ0FCmOJvwl5NYe9TtUgiXRo8i0kW0mVG0CGS/4Je3W5DESjxUDptPHuv0Js17MQAHZ9udVUQdemIuh/sqi3VwebKgm3+JNUBh3JsHxBAhSNRZo8VvKUYLKYbSpRP27ppj3tDcRj+9oEIcFmEaB0OaldFcsfTK5fBSzuA5LHsb+rzbG0sKnAcGra6xV9hamdJqNuJC3c9ONqjY7eUjBSBpVSZp+1CFnpAwdMyME7Kk3zu+8XB5+3W9l6+lXaWHjpKZLeaW25mTugGyguTWhOkI0Qf4sNsQyEzypHh7AiqTnjahNiVdKhS4Xn/aDRahbCQLFXlqdwimgaU22mScjtY7FFghnA1tL7db2fcvWIvwbgCKviPZLxm+IcR47yrlOtqN2xquxMUL3W7V6xZIiwpixYwAiIS9rz+ucPvh7Ftiay/f1JKOBMIX0svprbf46DIwk6fj3LCMe7mcAdBkZlKwV9K7XXSD2nJa/IQIU92E0usxxl2wPKBWChmbSr0MxNLaLhPzIiN58XqLCDIXEzCKgY2UjaRwApXAOcrLK3rZF8YYWSuJD+aLGNpnQz6Y=",
"resign_required": false,
"iteration_count": 2617,
"valid": false
},
"signed_string": "(request-target): post /wally-services/protocol/tests/signature\nhost: staging.authservices.satispay.com\ndate: Fri, 21 Jul 2023 12:50:05 +0000\ndigest: "
}
Avete modo di indicarmi cosa sto sbagliando.
Grazie mille in anticipo.