Discussions
Authentication_key: Public
Salve, sto provando a testare l'autenticazione tramite una chiamata API a "https://staging.authservices.satispay.com/wally-services/protocol/tests/signature", ma continua a restituire role: public.
Ho ricontrollato sia il Digest che la Signature e non mi sembra ci siano errori.
Il curl della mia chiamata è il seguente:
curl --location --request POST 'https://staging.authservices.satispay.com/wally-services/protocol/tests/signature' \
--header 'Content-Type: application/json' \
--header 'Host: staging.authservices.satispay.com' \
--header 'Date: Mon, 18 Mar 2019 15:10:24 +0000' \
--header 'Digest: ZML76UQPYzw5yDTmhySnU1S8nmqGde/jhqOG5rpfVSI=' \
--header 'Authorization: Signature keyId="mf9elddi1uf516blfr89g26h7agssos2d97hdrf0qp78oc5k78glr91238dujfj8vc2ou1ft0vfnanu14c3n868mujacv6i0cr44s1im42mfcg2n51hsp491o7dvfj2v7jelqn6mrnu7bpfoj7oamupku3r6ar92tnnuo47v51ikm8lhrap09l5p34b1igu6b2rpqpa7", algorithm="rsa-sha256", headers="(request-target) host date digest", signature="G96zyIIJtgF57ukTRR9umqHWqQsZdJux4Af7Ab5ScvGanDERmTsqn7cVzBcthlSA43AD4os3eUWEZgZlgSCZosfIXX3M2WeZrGcN40FzptL8GiWbYEu36BejvHleus6hngcP/ZewVXRShQoXhKSTpKDrP2zTlRfYnlicDyP+PGjfQfLR1BzvvjY/WyonLcAnzgO9oiODOiOM5iMU7J5/s0w1q77Zm/SUL9EphAq11oG5Lgp+rgYVRqQ/dT3oyNgTtSLEX1InOvQvUd7X/Cd9ebk7cxCrYg3xtsskLxX2EXGEIfsuyek0R6ndv61J4BkNh1sWIuLbGIS4rOk+Fhb7Io6VGdLzqFca+xLOpNtQovKCcXPPiFmpdAaRaOw8NguW95CNT7H7m/uK8aIx0LbDQ9uJF7414dQGYmQjhT/uWMYlZqb2gsfXoZd+0ahHLJqUzeLXgDlS6DUsiVqY2cehOnkO8KLovDVpPWg19JNdh3slBsX/itU1hfWSYeaQUSIdik0Be+TnuwQDM7r0Dk8ARUtjo+KZMdor/UVAwZvLynJAEaRYB/PiLStvf122UdrWMegaw+v8Q1MQlio5NHqWKDNxdSp8u41nm08AlOYeOXMHUmpGUEqtBi5sXdE2le5ftClzMJuOlmulCXRvykGC8Xm8yzMjYoo7C0DSCoFyn1c="' \
--data-raw '{
"flow": "MATCH_CODE",
"amount_unit": 100,
"currency": "EUR"
}'
e la risposta è:
{
"authentication_key": {
"role": "PUBLIC"
},
"signature": {
"key_id": "mf9elddi1uf516blfr89g26h7agssos2d97hdrf0qp78oc5k78glr91238dujfj8vc2ou1ft0vfnanu14c3n868mujacv6i0cr44s1im42mfcg2n51hsp491o7dvfj2v7jelqn6mrnu7bpfoj7oamupku3r6ar92tnnuo47v51ikm8lhrap09l5p34b1igu6b2rpqpa7",
"algorithm": "RSA_SHA256",
"headers": [
"(request-target)",
"host",
"date",
"digest"
],
"signature": "G96zyIIJtgF57ukTRR9umqHWqQsZdJux4Af7Ab5ScvGanDERmTsqn7cVzBcthlSA43AD4os3eUWEZgZlgSCZosfIXX3M2WeZrGcN40FzptL8GiWbYEu36BejvHleus6hngcP/ZewVXRShQoXhKSTpKDrP2zTlRfYnlicDyP+PGjfQfLR1BzvvjY/WyonLcAnzgO9oiODOiOM5iMU7J5/s0w1q77Zm/SUL9EphAq11oG5Lgp+rgYVRqQ/dT3oyNgTtSLEX1InOvQvUd7X/Cd9ebk7cxCrYg3xtsskLxX2EXGEIfsuyek0R6ndv61J4BkNh1sWIuLbGIS4rOk+Fhb7Io6VGdLzqFca+xLOpNtQovKCcXPPiFmpdAaRaOw8NguW95CNT7H7m/uK8aIx0LbDQ9uJF7414dQGYmQjhT/uWMYlZqb2gsfXoZd+0ahHLJqUzeLXgDlS6DUsiVqY2cehOnkO8KLovDVpPWg19JNdh3slBsX/itU1hfWSYeaQUSIdik0Be+TnuwQDM7r0Dk8ARUtjo+KZMdor/UVAwZvLynJAEaRYB/PiLStvf122UdrWMegaw+v8Q1MQlio5NHqWKDNxdSp8u41nm08AlOYeOXMHUmpGUEqtBi5sXdE2le5ftClzMJuOlmulCXRvykGC8Xm8yzMjYoo7C0DSCoFyn1c=",
"resign_required": false,
"iteration_count": 2617,
"valid": true
},
"signed_string": "(request-target): post /wally-services/protocol/tests/signature\nhost: staging.authservices.satispay.com\ndate: Mon, 18 Mar 2019 15:10:24 +0000\ndigest: ZML76UQPYzw5yDTmhySnU1S8nmqGde/jhqOG5rpfVSI="
}
Una cosa strana che ho notato è che nella risposta rimuove dal digest (sulla proprietà signed_string) la parte "SHA-256="
Posted by Marco Tronti almost 3 years ago
Prestashop sarà ancora supportato?
Buongiorno, nei mesi scorsi ci siamo accorti che il modulo Prestashop di Satispay non processava correttamente gli ordini nell'ultima versione della piattaforma (il pagamento andava a buon fine, ma l'ordine non veniva registrato lato nostro backend, né confermato al cliente lato frontend) e quindi non abbiamo più potuto utilizzarlo. Abbiamo visto che, come già segnalato da altri, il modulo è stato proprio del tutto rimosso dal negozio di Prestashop. Volevamo quindi sapere se è intenzione di Satispay continuare a supportare la piattaforma in futuro o se è stato deciso di abbandonarla del tutto. Grazie mille
Posted by Yume over 2 years ago
Iban nell'app di staging
E' normale che l'app di staging mi chieda il codice iban? Essendo un'app di test immagino che non si debba collegare a nessun conto. Grazie
Posted by Matteo Sorrentino almost 2 years ago
Issue on sandbox Authentication - Digest doesn't match
I am trying to test the Authentication call after I have followed all the steps for creating all the needed headers. However I keep getting public role with "Digest doesn't match" error code.
I have checked but the digest and signatures match exactly with the online tools provided by you.
Can you tell me what's happening?
POST https://staging.authservices.satispay.com/wally-services/protocol/tests/signature HTTP/1.1
Accept: application/json
Content-Type: application/json;charset=UTF-8
Date: Wed, 17 Mar 2021 13:10:34 GMT
digest: SHA-256=1BOV4kDTkMDqa3G3sv9dDHh7PjEfeHPaa53eKwy1KXQ=
authorization: Signature keyId ="pvut2sv0v86l5v1ive7od7amirl3ue1bam606urkbf36p91v3i4elmv80povblra2u7237hg6jqkh4cvup361nd8llo5taa47pjf6bojs3qh59d00t9ethn4r27i31ce2vou316kjf63gdnjk2cg1r0rahap307qlpchorv5869upc665iphg6dv4tqfu3jdr4jpcn96", algorithm="rsa-sha256", headers="(request-target) host date digest", signature="YYOFcO5tnRnsywa0B0Q3Rpda6KESNspIYEgJycWVWQSB6Hc+nsUo9uSGkk2RqdahTSCRdIz+3hKdv212wn2oPnYNuDShY6VsTzQljf5cRhUcW2KmLUjC1g48R/aBg/GDVmvFoq0Pp0c/8WANAV/WArBKLDvMhT6rEb6iog8k8BTd/bVZbrtw8limWpwGmWPkdnmlmc+OLBVIEO5vuSPXYcpoOwxNhqnr//gkEuqEjfhQ9J3oI01e2BXrsZYFQhqYdBjdh+GsaQ4QhSR/7xNkWDM38H/6gYfKenCyAh06HHjiJqAXXDSND9N/eVsyeGCe5/n7RngWfIxjagh8w5wV9t7+h6d1ZatIK6RxqPvtK0M3iyAj/GCwSh4m0zbskgx4BWcPWG6aSIbrN5afud2uY/EECkFu6/Pm5/P20y/7JV7I07o7RH0RTlVFZAIearyha/dm53yMgb5QXaHYAxZvZ+D1MQfYCgSGXG2q6gGwjwc0eXWlK36yGpV+/UbJMl73++CTNVNMvk3pvGXGtZP2tB0zZKUm97h6UIbowTVLVP8xaRa0ZrnVgX/qxpORACi1rMrZCRohl6yUyIFjEG4jYUT/vRcKyxEEq+fg/7St24gX0ZyEiXkn0Q71iFqqxGxKzc10Uz8WlLGi5Vm8RqmzJPwRRcgePcZnLgE1/D/nCUI="
Host: staging.authservices.satispay.com
Content-Length: 56
Expect: 100-continue
Connection: Keep-Alive
{"flow":"MATCH_CODE","amount_unit":100,"currency":"EUR"}
------------------------------------------------------------------------------------------------------------
HTTP/1.1 403 Forbidden
Date: Wed, 17 Mar 2021 13:10:43 GMT
Server: Apache
Digest: SHA-256=/HB4eRYlWwLIwIAa0yS/zH9zQGDDBtU1aYhqandi4aA=
x-satispay-nch-xuEA: xPnpinOrLA
x-satispay-cid: tZEaSBkF
Content-Type: application/json
Content-Length: 61
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
{"code":52,"message":"Digest doesn't match","wlt":"tZEaSBkF"}
Posted by mauro ballerini about 3 years ago
Create Payment - Callback Url Issue
Buongiorno,
secondo la vostra documentazione, nel metodo "Create Payment" la callback_url viene richiamata dai vostri sistemi ogni qual volta il pagamento cambia stato.
callback_url
The url that will be called with an http GET request when the Payment changes state. When url is called a Get payment details can be called to know the new Payment status. Note that {uuid} will be replaced with the Payment ID
Mi date conferma che sia così?
Questo avviene anche nella versione Sandbox?
Ho tutti i pagamenti in sandbox che sono bloccati su PENDING, la chiamata in get funziona ma solo quando viene instanziato il pagamento, poi non riscontro nessuna chiamata per il passaggio ad ACCEPTED o CANCELED.
Grazie per il vostro riscontro.
Posted by GF almost 3 years ago
Errore API
Buongiorno sto testando l'API con i codi di attivazione,
ho seguito le istruzioni per attivare il token di sanbox tramite api
https://authservices.satispay.com/g_business/v1/authentication_keys
utilizzo node.js + express
il post mi restituisce un errore
code\":41,\"message\":\"Resource not found\",\"wlt\":\"WmeSFaT7\"}"
come posso risolvere ?
grazie
Flavio
Posted by flavio cerato almost 4 years ago
Java Examples
Ciao, gli esempi di implementazione java sono quelli che si trovano qui: https://github.com/satispay/in-store-api-java-sdk/tree/master/sample/
?
Esistono alti esempi, link, doc etc. su come implemetare il flusso di pagamento con satispay in un back end java?
grazie
Posted by Alessandro almost 3 years ago
Test Authentication - Resource not found
Hello, I've correctly generated the keyid but I'm not able to process any payment request. The auth test call ends with error 41 - Resource not found. WLT=JNtQPYun.
What I'm doing wrong? In thre staging envronment everything worked fine. Thanks.
Regards
Posted by Elia Porcaro over 3 years ago
Android SDK
Hi, I'm having difficulty integrating satispay into my Android app. I am using the SDK you provided. I can't understand what to replace "TEST_API" in this line:
Uri uriToCheck = SatispayIntent.uriForPayChargeId (SatispayIntent.SANDBOX_SCHEME, "generic", "TEST_API");
Also, I am using laravel for my backend, I installed your gbusiness-api-php-sdk SDK but at the time of authentication via these lines of code:
\ SatispayGBusiness \ Api :: setSandbox (true);
$ authentication = \ SatispayGBusiness \ Api :: authenticateWithToken ("RYTRR7");
$ publicKey = $ authentication-> publicKey;
$ privateKey = $ authentication-> privateKey;
$ keyId = $ authentication-> keyId;
dd ($ publicKey);
I'm getting the error: Forbidden, request id: 1DM2aAtC.
Is it possible to understand how to integrate your payment method? I would need to give users the possibility to pay for a shop through Satispay.
Posted by Davide Capriglione about 4 years ago
Test sandbox
Buongiorno a tutti,
ho iniziato da poco con la versione sandbox ma appena scansiono un QR mi dice "pagamenti non abilitati" perché giustamente penso dovrei inserire un budget ma ovviamente non avendo un conto valido collegato non funziona tutto il flusso.
C'è un'altra procedura da seguire?
Grazie
Posted by Edoardo over 1 year ago