Questions

Ask A Question
1
ANSWERED

Are reports available in sandbox environment?

I'm trying to get report url (based on https://www.notion.so/Registration-API-PSP-documentation-08bd5316aac4413c8e030f394bb1c6f9) but I still get {"code":45,"message":"Forbidden","wlt":"BGetnYNG"}. Digest and signature checked successfully and payments API works fine. curl --request POST "https://staging.authservices.satispay.com/g_business/v1/reports" ^ --header "accept: application/json" ^ --header "authorization: Signature keyId=\"biabpkclmde3180mr11dpe4u4hbpftj79r8o0n1l0enhoe3jvq37hs6fa5bb4ve74s3njsuejd6fnv9redevuik140k6v9b33rik9m164ua0fjnahsdno31aq581srikgj228o7te9fm9i14aq0och36qdv76s5ogc0p8e1k21aa2lf1a5fe3np946ud042pne7lehs9\", algorithm=\"rsa-sha256\", headers=\"(request-target) host date digest\", signature=\"XQKwNXIftFc34bVS3Ep6V+HrnLZAH6s1FdX1hcL4pIpjY1q+4lrw+1AujD+oiT+Dk79wEEA4kxag5dgRqfTYqsIADV57KLSPO3ADQkXkY3O/X/hwrcOruEkfrHUWa/8BhHyUQSpa6VTrKPR7yxlwUYEycfKUxQXXEosA3owo37u2PQpKVnCvazX0Clp4slI2J0gXUxjPB0bMz9PSgMIjcjaEsOVPI0UdfQ3awuvkWWEig6+74rIaJNOa12jYGKcPjjNYA5VSS+0orwL44Tw9zaU90kp5tTdBCkyQe2Jgg1qFe+hLBcTCjTxmDE07zUaGSjIu6iVwi1dneoya+rqoEppN7PbeUKaePskyh1JHhEj3ajmH/Q6kExSufc/DNF03kMCgJ7+bRHBJiFiQW5MuPmzZFrgpQpblqp4Bmx7Ct+lZuIL60M8v8sADsZw0FCV2PvtwHnwbepmlquMhk3VJWPPcA63K8ujT8kJfQ2tpSP9Xq/5LZozhcieww2DgxNE3BrQ67WBrL1IFJL9BdiBbIZV8nhUF8ikJZXKtyPjJHnNYDWzf4Q2eIyNrdzzgFFpA88Mh8XUKphm4j21++vEb0ZwP8FkRWycMgt4xQAfyiG+1LfYCAhBuo3lg8T51OAEOj74NDcoWEfP00KFNaEkVexQ5iJHJornADYsCoIzXlr0=\"" ^ --header "content-type: application/json" ^ --header "date: Mon, 27 Sep 2021 13:34:24 +0000" ^ --header "digest: SHA-256=EUFRCU7dRJTP4tBLGuggDj88LLCQK2B95blLgC0mCs8=" ^ --header "host: staging.authservices.satispay.com" ^ --data-raw "{\"type\":\"PAYMENT_SCT\",\"format\":\"CSV\",\"query_type\":\"SCT_DATE\",\"query_payload\":{\"sct_date\":\"2021-09-20\",\"time_zone\":\"Europe/Rome\"}}" + I also tried (based on https://developers.satispay.com/reference?showHidden=9ecba#create-new-report) -> with the same result curl --location --request POST "https://staging.authservices.satispay.com/g_business/v1/reports" ^ --header "accept: application/json" ^ --header "authorization: Signature keyId=\"biabpkclmde3180mr11dpe4u4hbpftj79r8o0n1l0enhoe3jvq37hs6fa5bb4ve74s3njsuejd6fnv9redevuik140k6v9b33rik9m164ua0fjnahsdno31aq581srikgj228o7te9fm9i14aq0och36qdv76s5ogc0p8e1k21aa2lf1a5fe3np946ud042pne7lehs9\", algorithm=\"rsa-sha256\", headers=\"(request-target) host date digest\", signature=\"T6jxFgmn9eQCEgfrn+e8STQP2ZLKdcnytB3wp0/U35Lx3C5Ei+wsppf0Mdyd2zR+koqjKMoUk+DFRqcj2uBvCcTT4gu0UfgOYwJPG1MwsbbzD4kfJidyi2cP+Mvt7VQ+m5Mh+hnkJcWWw2hPs9RtOL3CVSens1Z8r8VjwpxGkxRVjpqEoBI7k/MhQhMg9BGS+dmEUTeTvC4nI8WVVxd3Xk76c9T6U1FDWq1PVV0Pm5GjDs+BdLsUvwRySuOXrNPQ0rSVCZge3tQe5a3RGmXnXdkzL6QEgWQWWGYtOpr+hgcFfh303uTrT2DyqYoGDzfif+MbHNKJPq8fqE3j3ou/vUi23CZCdwr8/VE9oI2X/J9Gdd6hyi18MwWPmb7I7a/UsTH4xb5KEQzTM6PFdF4gqEYlHiklt+qtV1MqxVVxXkfAb/Zl+yt7/bIxh68JZLwCl+QcAIT4lHNAdZ+YKTYQ3Wphkw9GfWJnExcTz8Q5dxmpeef+G5e9XY03td74zvR48v5ME7hW8Y3DqsOLSOboPU7ldDQEcE9tIcMSknEGQ/wz4WicX+ckLJhrL0yDFewfq4ck1PvpmS2WJbWx87dQ1QqIeRovMjcU/Joky0s0Xwd1JDZBqRLCsVY3MGF0JAwFnqwhlptiQ935IOSh5+eaHjYMVxZ17K1sHIX075ZzdLg=\"" ^ --header "content-type: application/json" ^ --header "date: Tue, 28 Sep 2021 05:49:27 GMT" ^ --header "digest: SHA-256=PYgyZQ0VpptTh4tm54hf5ZpVxP2Dcco1L6yXUXbRvFg=" ^ --header "host: staging.authservices.satispay.com" ^ --data-raw "{\"type\":\"PAYMENT\",\"format\":\"CSV\",\"notification\":{\"email_cc_list\":[\"[email protected]\"]},\"query_type\":\"PAYMENT_DATE_INTERVAL\",\"query_payload\":{\"payment_date_from\":\"2021-09-25\",\"payment_date_to\":\"2021-09-28\",\"time_zone\":\"Europe/Rome\"}}"

Posted by Jan 2 months ago

5
ANSWERED

CANCEL_OR_REFUND fails with code: 27, message: "Payment not allowed"

CANCEL_OR_REFUND fails with code: 27, message: "Payment not allowed" on the staging server. What could be the problem? The exactly same code that we use for making the request used to work before, so I wonder if the API has changed somehow in the last couple of months. Below are posted relevant parts from our logs: ========================================================= REQUEST OPTIONS: ========================================================= { "method": "PUT", "url": "https://staging.authservices.satispay.com/g_business/v1/payments/5e314d91-5874-4de2-8ef1-caaaf9504e90", "headers": { "host": "staging.authservices.satispay.com", "date": "Mon, 27 Sep 2021 08:49:30 +0000", "digest": "SHA-256=uJ7Quj8bKvvUB8tmS6oOapuCc8MpAlaAwB2Hc32oxF8=", "Authorization": "Signature keyId=\"7ptp7gh7vs0m5jad1h4hhlsvqmpn9hm4rtbh9k88e195gpvahv147cod6rm2n5posqlie7766qeqb6v613jk0vdgspojvncl3e79lbjb8uqs54va9aldno39754s0saqkkifsbbl8rd22qs9mfa6md0cpkn4ifg9k8hk3fp4sdgp0ribmrjlanhp7u42u8ljjniite3u\", algorithm=\"rsa-sha256\", headers=\"(request-target) host date digest\", signature=\"UNRSqG1G588jWM1BQDRgQ88XbA8cj3FNqG6UU/A2r8PbOt0Z2oxnS7DZ1JhHkUAcp5ksQP7jGkXfFUq82XD0ycZb0/khYBLBukFMGOlM2iRtzrFTsUP/YfG0EPTd6VfR6xOEnbQpySC2OHaEHbry5GAz/TtJD1Yst+GhrkYitxb/r4Pu/h33zNQQRuWF9FzhTPDxBccDUbKigKZp7kWGzhdAxAO8Sx5t7XheS6szPlrmikLLlIFDwUUvM+boEh5oYrpVg1ttrR8l8TrFBtgc2poDb+MYKFbzleycWE3FTMqxcFrFFzgHSiYqvc8Nv7GLSAxilNQczL/2tHMZxZOxADd/1N9AW9Ndr+CUy7GQipM7RCcPKZExdfK/IKl08FAAdi10ETXgRELBC6eTX8AmeGE/9Z+qNr8G41gqQ6CQAF0RboH79zKClN5LiVsEPzSxtf46lc/2EEPWFDb3cSrU/9O0ETbcoasCtokpNavNwLmFIlsc8LE6TSItUUj2BQAQdIYZDc+wsDwsiK91pJ/01UEZiGl7NYrdjfC4hNLjg/TnJHJ4SO3vP+bWm7luyjTNTLtFFRw4Qs/KyJehYXazW5vwKme5f+tYzvNCfxyyzAqOgDFY+9bvkA9SsjUa5O/wwKR9ZXzPsiQjNa124fQiyIcanj6tc/7P5hjAWlwy7D0=\"", "Accept": "application/json", "Content-Type": "application/json" }, "body": "{\"action\":\"CANCEL_OR_REFUND\",\"description\":\"Ref: 111\"}" } ========================================================= REQUEST URL: ========================================================= https://staging.authservices.satispay.com/g_business/v1/payments/5e314d91-5874-4de2-8ef1-caaaf9504e90 ========================================================= put request headers: ========================================================= { "host": "staging.authservices.satispay.com", "date": "Mon, 27 Sep 2021 08:49:30 +0000", "digest": "SHA-256=uJ7Quj8bKvvUB8tmS6oOapuCc8MpAlaAwB2Hc32oxF8=", "Authorization": "Signature keyId=\"7ptp7gh7vs0m5jad1h4hhlsvqmpn9hm4rtbh9k88e195gpvahv147cod6rm2n5posqlie7766qeqb6v613jk0vdgspojvncl3e79lbjb8uqs54va9aldno39754s0saqkkifsbbl8rd22qs9mfa6md0cpkn4ifg9k8hk3fp4sdgp0ribmrjlanhp7u42u8ljjniite3u\", algorithm=\"rsa-sha256\", headers=\"(request-target) host date digest\", signature=\"UNRSqG1G588jWM1BQDRgQ88XbA8cj3FNqG6UU/A2r8PbOt0Z2oxnS7DZ1JhHkUAcp5ksQP7jGkXfFUq82XD0ycZb0/khYBLBukFMGOlM2iRtzrFTsUP/YfG0EPTd6VfR6xOEnbQpySC2OHaEHbry5GAz/TtJD1Yst+GhrkYitxb/r4Pu/h33zNQQRuWF9FzhTPDxBccDUbKigKZp7kWGzhdAxAO8Sx5t7XheS6szPlrmikLLlIFDwUUvM+boEh5oYrpVg1ttrR8l8TrFBtgc2poDb+MYKFbzleycWE3FTMqxcFrFFzgHSiYqvc8Nv7GLSAxilNQczL/2tHMZxZOxADd/1N9AW9Ndr+CUy7GQipM7RCcPKZExdfK/IKl08FAAdi10ETXgRELBC6eTX8AmeGE/9Z+qNr8G41gqQ6CQAF0RboH79zKClN5LiVsEPzSxtf46lc/2EEPWFDb3cSrU/9O0ETbcoasCtokpNavNwLmFIlsc8LE6TSItUUj2BQAQdIYZDc+wsDwsiK91pJ/01UEZiGl7NYrdjfC4hNLjg/TnJHJ4SO3vP+bWm7luyjTNTLtFFRw4Qs/KyJehYXazW5vwKme5f+tYzvNCfxyyzAqOgDFY+9bvkA9SsjUa5O/wwKR9ZXzPsiQjNa124fQiyIcanj6tc/7P5hjAWlwy7D0=\"", "Accept": "application/json", "Content-Type": "application/json" } ========================================================= 2021-09-27 08:49:30 [i] [SatispayManager] RESPONSE: ========================================================= { "statusCode": 400, "body": "{\"code\":27,\"message\":\"Payment not allowed\",\"wlt\":\"TwiZogpO\"}", "headers": { "date": "Mon, 27 Sep 2021 08:49:30 GMT", "server": "Apache", "x-satispay-nch-ofer": "thjCfc5dRB", "x-satispay-cid": "TwiZogpO", "digest": "SHA-256=w6sG0GsmsEhQIniNRG5AuaaokXlXiUY25kNn486Y+e0=", "content-type": "application/json", "content-length": "60", "connection": "close" }, "request": { "uri": { "protocol": "https:", "slashes": true, "auth": null, "host": "staging.authservices.satispay.com", "port": 443, "hostname": "staging.authservices.satispay.com", "hash": null, "search": null, "query": null, "pathname": "/g_business/v1/payments/5e314d91-5874-4de2-8ef1-caaaf9504e90", "path": "/g_business/v1/payments/5e314d91-5874-4de2-8ef1-caaaf9504e90", "href": "https://staging.authservices.satispay.com/g_business/v1/payments/5e314d91-5874-4de2-8ef1-caaaf9504e90" }, "method": "PUT", "headers": { "host": "staging.authservices.satispay.com", "date": "Mon, 27 Sep 2021 08:49:30 +0000", "digest": "SHA-256=uJ7Quj8bKvvUB8tmS6oOapuCc8MpAlaAwB2Hc32oxF8=", "Authorization": "Signature keyId=\"7ptp7gh7vs0m5jad1h4hhlsvqmpn9hm4rtbh9k88e195gpvahv147cod6rm2n5posqlie7766qeqb6v613jk0vdgspojvncl3e79lbjb8uqs54va9aldno39754s0saqkkifsbbl8rd22qs9mfa6md0cpkn4ifg9k8hk3fp4sdgp0ribmrjlanhp7u42u8ljjniite3u\", algorithm=\"rsa-sha256\", headers=\"(request-target) host date digest\", signature=\"UNRSqG1G588jWM1BQDRgQ88XbA8cj3FNqG6UU/A2r8PbOt0Z2oxnS7DZ1JhHkUAcp5ksQP7jGkXfFUq82XD0ycZb0/khYBLBukFMGOlM2iRtzrFTsUP/YfG0EPTd6VfR6xOEnbQpySC2OHaEHbry5GAz/TtJD1Yst+GhrkYitxb/r4Pu/h33zNQQRuWF9FzhTPDxBccDUbKigKZp7kWGzhdAxAO8Sx5t7XheS6szPlrmikLLlIFDwUUvM+boEh5oYrpVg1ttrR8l8TrFBtgc2poDb+MYKFbzleycWE3FTMqxcFrFFzgHSiYqvc8Nv7GLSAxilNQczL/2tHMZxZOxADd/1N9AW9Ndr+CUy7GQipM7RCcPKZExdfK/IKl08FAAdi10ETXgRELBC6eTX8AmeGE/9Z+qNr8G41gqQ6CQAF0RboH79zKClN5LiVsEPzSxtf46lc/2EEPWFDb3cSrU/9O0ETbcoasCtokpNavNwLmFIlsc8LE6TSItUUj2BQAQdIYZDc+wsDwsiK91pJ/01UEZiGl7NYrdjfC4hNLjg/TnJHJ4SO3vP+bWm7luyjTNTLtFFRw4Qs/KyJehYXazW5vwKme5f+tYzvNCfxyyzAqOgDFY+9bvkA9SsjUa5O/wwKR9ZXzPsiQjNa124fQiyIcanj6tc/7P5hjAWlwy7D0=\"", "Accept": "application/json", "Content-Type": "application/json", "content-length": 54 } } } =========================================================

Posted by Petri Savolainen 2 months ago

1
ANSWERED

401 Unauthorized

Hi I'm trying to create a payment in sandbox environment using python and aws, I've checked both hash and sign with online tools and also seems ok, but when I call the service it responds with a 401 unauthorized. This is the postman stack trace: POST https://staging.authservices.satispay.com/wally-services/protocol/tests/signature 401 233 ms POST /wally-services/protocol/tests/signature HTTP/1.1 Content-Type: application/json Date: Wed, 01 Sep 2021 14:19:14 Digest: SHA256=U1ar6gIJcTdkxjghvGXWUzd7MsrQnkoFt4hnHxmSHSI= Authorization: Signature keyId='edurbegl102ttn3dob45gogeeb0oggiqg5ocaol8hrbjmngetllha68al7us7tq3cq9v26tdt7p1gdl359l68mv9ufr4n9b3e0d0on94ims4rercq9brfqf7m8vnqje08j42hgmi5h7tkkr0g1sqsrnsq2itbarrjo9gdgl2u5vjr3vn7n97mkiahe6kr2bur8ghqdri', algorithm='rsa-sha256', headers='(request-target) host date digest', signature='BPGOrQCHogBxFYTQIDO/Z9+5h+HaZh/v0gjf9njKVUBN56DWQjv9kjnKDC1iW5lgNMR6QjkoUgwFiWUktDsnbwZVwybLRWtCKxoqv3ivaghdQc50ZykpgTjPG16L1WSCp5scXTSVpWgwC8oxyUB4iy+KO3KxWjps/DqKuL/Hflie23yo5TtwHq2HhMLY7G4QQy+sPSggfqd6RQ0iQUns1WGX8+YZcjb1rpqUmNEHC0ArwJZXjiKMguU4VoFvfnPKKiXyQrpEwvw4ESG3nN/qZStXkB45FouRlOw2UxHQ+voDleclQ7duL+f5eS3Y7GNbxaFQgYwcBu5nB40cG3PQ9UXz99tTSrQZE7wcrFtFvtBfxukU31GXoWbNFFVClWMmKM+bJ6pBTqWKVGBGYvP5QjXJvOjNGSgKA65JwI6vUEy0OIMJqeHxTlofx1jWHgfUuW29nwMTl3+bcVR5/wQHFde7D9glPAqc7L8u195iydXslWk2+2cx4PyS1JSLXnuK/3o6qSSn59tEto3loT2rVdJxGrFpb4+R+nkCphplMbYkwkOSVfvQyIGvcYoMpjuQ0+H752eVcTE2WVcJ/xD0ITgx8nU2vC7foYwuEH1KDefwwfBLms+Lal+ok+NP1LbBQfIn0J3kuC3WaOGy0Rh0IiRkKT8uXperphJZtUvaBO8=' Host: staging.authservices.satispay.com User-Agent: PostmanRuntime/7.28.4 Accept: */* Cache-Control: no-cache Postman-Token: 612408c1-2940-40e9-ae1b-d255dcb146ad Accept-Encoding: gzip, deflate, br Connection: keep-alive Content-Length: 129 { "flow": "MATCH_CODE", "amount_unit": 100, "currency": "EUR", "external_code": "as", "callback_url": "asd" } HTTP/1.1 401 Unauthorized Date: Wed, 01 Sep 2021 14:28:56 GMT Server: Apache x-satispay-nch-MEDn: 0lVIzKABFz x-satispay-cid: t53nZdC9 Digest: SHA-512=vgHHCYCyUeMr9ZNgzdip+k8zq4/15ztPcVvQ3nruiInSTd7k/uU5W9omqILMOgwP1ClwQvKAFcnUzStSytiobw== Content-Type: application/json Content-Length: 53 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive {"code":34,"message":"Unauthorized","wlt":"t53nZdC9"} Any suggestion?

Posted by Gian Marco 3 months ago