Discussions

Ask a Question
Back to All

Error code 45 Forbidden

Dear support,
I'm trying to perform a call for create a payment. Following the documentation and the other tools I've this request:

METHOD : POST
URL : https://staging.authservices.satispay.com/g_business/v1/payments
HEADERS :
Content-Type : application/json
host : staging.authservices.satispay.com
date : Wen, 19 Mar 2020 16:10:24 +0000
digest : H5BnW9D/API6OC7g3LWjGeXyLg43uKT8ZG15YCPuQpM=
Authorization : Signature keyId="r95udmo9oo2tbt9q9j3gm5gekao2tbo0ph5pjpd686dp5dcrtb61d7hn0tm7jh3l1r5si4oqh1t31sbeo1urgt893v5063eningek5eird7fc9c30iqq7ai878f5o1bha6u8bso5p5i009b0dqnkeclt5grng17mfv5032h4nus2jib2oe3qluc4nkahr5m71fl1bp3e", algorithm="rsa-sha256", headers="(request-target) host date digest", signature="Yosf2ekIXU7GWpK88jWstJuLp1xTmVSA9toIAYPGydYjgKDY3U9LnLzQc6UoerevUmY8O+nSawp/38HunFag+fHOff+NI8A6VVJLCcFSlgL9Ja4JQerue8UQ4+gOfRrWqA918U9/6ERrUWX6ezeqnuci2EnET5L0hM3N7GWlvmWO5mm3S1dSC0wueKRqWn3gU+XH9tEb5wsk/Zltrj/H2PY/Mf0h7V2RkH3XBJcZMhPVcLC/5+mcKTFbjtbG9hotq8lksiPnj0eCKvXrLfNeZlgVLcdDDSfwcz7MC168inScmQKP7OpvRklxl92/buPFEVbAMGpGXk6JnKYWZzujz2EIHQlQtwPE7Xv8fQogdBPBeTegasADzeCYvGIJpcN+2NJoqnCzUTky+Um73rvJwP0cL5mSySZi2qMwhtnWZnq+SWB+QVCuICi23F6P2+n36/CkuHde72q4f5hL0XA77duYR7PXajbNyM39CsC6mLzzLr5CGYsXz23LKv1U9GqT4uuqxg3jKm08YINhu6XBYod4LkeJjB1bbaShrZoqOE5UODhySwtwTWJjG/6Pagyeijr27sRyhsYlS0mb9UmAjT2HG66/K79EHtt40lIAuZYJMiItsj/hbOV76fCoGVBVfmB25utG3S8kEHW39i9fcEcp3Xi0nVfLHfeNPi1es38="

The digest was generated from the following body:

{
"flow": "MATCH_CODE",
"amount_unit": 100,
"currency": "EUR",
"description": "my_description",
"callback_url": "https://myServer.com/myCallbackUrl?payment_id={uuid}",
"metadata": {
"order_id": "my_order_id",
"user":"my_user_id",
"payment_id":"my_payment",
"session_id":"my_session",
"key": "value"
}
}

With the tool. Also the signature was generated with the tool from the following (and the generated private key):

(request-target): post /wally-services/protocol/tests/signature
host: staging.authservices.satispay.com
date: Mon, 18 Mar 2019 15:10:24 +0000
digest: SHA-256=H5BnW9D/API6OC7g3LWjGeXyLg43uKT8ZG15YCPuQpM=

But the response is :
{
"code": 45,
"message": "Forbidden",
"wlt": "iZt3QxnY"
}

Can you help me?
Thanks