Discussions
Generare QR code
Buongiorno, sto integrando Satispay sul sito web personale.
In particolare mediante flusso ONE-OFF WEB BUTTON.
Lato backend ho ottenuto il payment_id e inviato al frontend, una volta ottenuto ho costruito dinamicamente lo script indicato:
<script
src="https://staging.online.satispay.com/web-button.js"
data-payment-id="{{payment_id}}"
></script>
Di fatto, nonostante noto la presenza dello script all'interno del DOM. Come posso visualizzare il codice QR? Non è sufficiente lanciare lo script indicato in documentazione?
Grazie
Posted by Luca Molinari 7 days ago
Su One-off Web-button custom UX, ogni tanto, sembra che "completed" non venga eseguita
Buongiorno,
Ho implementato su un sito la modalità One-off Web-button con una UX custom, quindi con "var satispay = SatispayWebButton.configure({...})"
Il flusso è abbastanza semplice: al momento del pagamento, salvo l'ordine sul database con stato "non pagato", quindi procedo:
1. alla creazione del paymentId
2. all'apertura della popup di Satispay
3. se l'ordine va a buon fine, al cambio di status dell'ordine sul db da "non pagato" a "pagato"
Il merchant lamenta che, ogni tanto, alcuni ordini, pur pagati, non passano allo status "pagato" e quindi deve controllarli e cambiare manualmente lo status. Ribadisco che il problema si verifica sporadicamente: la maggior parte degli ordini viene correttamente segnato come "pagato", quindi lo script funziona.
Ho messo dei log sia nella fase di creazione del paymentId (che va sempre a buon fine, ottengo sempre una risposta valida) che nella callback "completed": in effetti, nei casi segnalati dal cliente, i log qui non si creano proprio, come se "completed" non venisse eseguita. Eppure, come detto, il pagamento avviene.
Cosa può essere successo in questi casi? C'è qualcosa che mi sfugge ma non riesco a capire cosa
Grazie in anticipo per le risposte
Posted by Ivan 15 days ago
Cannot find shop payment list also with web site
Dear everyone,
I have one problem , because yesterday i tried to pay 1 euro to my shop satispay account, and in my phone i can find the record of payment, but in the web site there's nothing. Same thing with the api i use, i finally can get response :{"has_more":false,"data":[]}. it is like web site , there's no list of payment.
Thanks in advance and best regards
Posted by SUN AZZURRA 16 days ago
StatusCode: 403, ReasonPhrase: 'Forbidden' for my request "https://authservices.satispay.com/g_business/v1/payments?status=ACCEPTED&limit=20"
Dear everyone,
im new in satispay, so i don't know if i have lost some step
(request-target): get https://authservices.satispay.com/g_business/v1/payments?status=ACCEPTED&limit=20
host: authservices.satispay.com
date: Tue, 14 Mar 2023 09:35:34 GMT
digest: SHA-256=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
my sign: UmjE0wIjuCBrQExCtWnAd5Q+a3/ouo6UpvlAPlRvvxvBin+yLCinY//8AdOwMmo/FO5P3Oeutj3WhVd+Y5aSjuGfd+iTnOy4UJGfKCWz6MpJ7OECHafL5JvGja0T71fnvNrPbcEVnxnIsJL8RlunfXW8kB1b9QgqJjcKThqRGYN0KbYUcJtmS0MsADkLLNDj87qdIYuTrOuDwfWHPvCMCcSsF20a2bZCPqFJ9/z2BfLrCMeF8l6IXD4uCiWCfWSKZIfsYYAMNOhwiPGSRwiMWxW/UFmbFFOT8omTIcmTGRJBE6rMy3f1+EDtIXkoG4tjqVWbQk8H33/7nfOfvqalyzgjK2SHsN19olIZI3CNFbLWVyIGyfaLPlFsnEgVZqzmTtnB5TcmhcGxtYt4tC+WFFv0NzeGwZzB1dY6Kf7/55fTFtWKvY8/8AixDW2MhoUMNNEb2Tp3OU3TPfPV/Hw4f527koM0PztOx4XC3DGItX+jWJGp4aYF/Zfe4OGsLnfkM41ahgX+sp9xkDC+Amczyon+s1Y28SBsD0UE8PcINk9pto3gWhSQnflKjlbvKUdXykmU+FKVQTHT2hb8g7H4QVOD0Ft1WlGUcZBVleCTy5ejnmL1V1l8zEd9KruyPZsHKH2bVYDqcEVm0zBq0VbjsaOT7GRF/k26N6pGZNmPUEI=
my authorization:
Authorization:Signature keyId ="k04rghfef4avi2hshl08h0sgfjhmmcqh28p4o1m9k920rpjg85kt00sil6fdfgqjsjdk62a0m5m6fliqtqn9e1n31ag0s6cs6u4n5poqeu9do556c086qlbimc9eqavtk5srghsbejj4423j72noanfnceplvjeacat1nk0heutekogahgrsk2ivl5hog5ffq2peqim4", algorithm="rsa-sha256", headers="(request-target) host date digest", signature="UmjE0wIjuCBrQExCtWnAd5Q+a3/ouo6UpvlAPlRvvxvBin+yLCinY//8AdOwMmo/FO5P3Oeutj3WhVd+Y5aSjuGfd+iTnOy4UJGfKCWz6MpJ7OECHafL5JvGja0T71fnvNrPbcEVnxnIsJL8RlunfXW8kB1b9QgqJjcKThqRGYN0KbYUcJtmS0MsADkLLNDj87qdIYuTrOuDwfWHPvCMCcSsF20a2bZCPqFJ9/z2BfLrCMeF8l6IXD4uCiWCfWSKZIfsYYAMNOhwiPGSRwiMWxW/UFmbFFOT8omTIcmTGRJBE6rMy3f1+EDtIXkoG4tjqVWbQk8H33/7nfOfvqalyzgjK2SHsN19olIZI3CNFbLWVyIGyfaLPlFsnEgVZqzmTtnB5TcmhcGxtYt4tC+WFFv0NzeGwZzB1dY6Kf7/55fTFtWKvY8/8AixDW2MhoUMNNEb2Tp3OU3TPfPV/Hw4f527koM0PztOx4XC3DGItX+jWJGp4aYF/Zfe4OGsLnfkM41ahgX+sp9xkDC+Amczyon+s1Y28SBsD0UE8PcINk9pto3gWhSQnflKjlbvKUdXykmU+FKVQTHT2hb8g7H4QVOD0Ft1WlGUcZBVleCTy5ejnmL1V1l8zEd9KruyPZsHKH2bVYDqcEVm0zBq0VbjsaOT7GRF/k26N6pGZNmPUEI="
and here the response:
StatusCode: 403, ReasonPhrase: 'Forbidden', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
x-satispay-cid: UxwuDPJ2
Digest: SHA-256=TC4Z8LCF1P4OIEFa7pdWnuGpqyDHwGGSH0Y2/+yZpI0=
Date: Tue, 14 Mar 2023 09:35:31 GMT
Server: Apache
Content-Length: 50
Content-Type: application/json
}
Thanks in advance
Posted by SUN AZZURRA 17 days ago
Obtain the KeyId
Hi, in "Obtain the KeyId", i read:
"token string required -> Activation code that can be generated from the Satispay Dashboard (or provided manually for Sandbox account)".
In Sandbox account where can i find the Activation code ? Or how can i obtain it?
Posted by Giuseppe Peschiera 24 days ago
Woocommerce: dopo l’avvenuto pagamento lo stato dell’ordine rimane “in attesa di pagamento”
Buongiorno,
avrei bisogno di un aiuto per un problema con i pagamenti satispay su woocommerce.
Dopo l’avvenuto pagamento da parte del cliente lo stato dell’ordine su woocommerce rimane “in attesa di pagamento” e quindi non ricevo avviso dell'ordine ricevuto.
Questo non avviene con altri tipi di pagamento ma solo con i pagamenti satispay.
Avreste qualche suggerimento su come poter risolvere il problema?
Grazie
Manuela
Posted by Manuela Remondino about 1 month ago
KeyID smarrito
Buongiorno abbiamo richiesto un KeyId attraverso le API all'indirizzo https://staging.authservices.satispay.com/g_business/v1/authentication_keys ma non lo abbiamo salvato, ora se proviamo a rigenerarlo riceviamo l'errore:
{
"code": 45,
"message": "Forbidden",
"wlt": "YQ0ofmbR"
}
Posted by Luca Calzi about 2 months ago
Inconsistent urlencoding of the redirect_url in the create_payment API
Hi,
I've successfully integrated Satispay as a custom payment gateway in Snipcart, however I'm facing a minor glitch due to a small difference in how urlencoding and decoding are performed by the regular web payment "modal" and the mobile app.
Our redirect_url contains a query parameter (redir) that points to another url with some hash parameters (let's say, https://foo.bar/pippo#/checkout).
When I try and cancel the payment from a regular web browser, I'm redirected to url "A":
A) /payments/satispay/result?external_code=63e4d8454fc6a60293532f41&lang=it&redir=https%3A%2F%2Ffoo.bar%2Fpippo%23%2Fcheckout
The hash parameter is correctly encoded and can be used as part of the "redir" url.
However, if I do the same from a web browser, the Satispay application kicks in and when I cancel the payment I'm being sent to "B":
B) /payments/satispay/result?external_code=63e4414f4fc6a60293532f40&lang=it&redir=https://foo.bar/pippo#/checkout
The hash portion of the url doesn't belong to the redir parameter anymore and this is causing us minor issues.
Can this thing be addressed in future releases of the app?
Thank you
Posted by Andrea Zicchetti about 2 months ago
API Get payment details
Hi.
I try call API Get payment details but I have this error :
{"code":41,"message":"Resource not found","wlt":"DLdPUYQT"}
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://authservices.satispay.com/g_business/v1/payments/" + "118482-259559-63E3BB43-26C5")
.get()
.addHeader("accept", "application/json")
.addHeader("x-satispay-response-wait-time", "0")
.build();
Response response = client.newCall(request).execute();
Why?
Is needed authentication ?
Thanks, Giuseppe.
Posted by Andreis giuseppe about 2 months ago
Android SDK: redirect non più funzionante
Buongiorno,
sto integrando Satispay in un app Android utilizzando l'SDK ufficiale.
Fino alla versione dell'app Satispay Android precedente al 15 dicembre 2022, il passaggio dalla mia app a quella Satispay e redirect alla mia app avveniva in automatico utilizzando lo startActivityForResult e il metodo onActivityResult per recuperare la risposta (come documentato nell'SDK).
Con il rilascio della versione Satispay Android del 15 dicembre, dopo il pagamento non viene più effettuato il redirect automatico alla mia app e sono costretto a riaprirla per intercettare l'evento onActivityResult (che risulta funzionante e con la risposta corretta).
Non trovo però aggiornamenti all'sdk e non capisco cosa modificare per rendere nuovamente funzionante la riapertura della mia app dopo il pagamento.
Spero che qualcuno possa aiutarmi.
Posted by Antonio Mazzeo about 2 months ago