VivaPayments / API

Index of Viva Wallet open source projects on GitHub.
139 stars 162 forks source link

Webhook notifications not received from demo #2552

Open inovas97 opened 1 month ago

inovas97 commented 1 month ago

Hello, I do not have received any post request on my webhook from demo.viva environment. I have done the following:

  1. created a demo account
  2. config my website (public) and received the source code
  3. created and verified a webhook for event type order update (I have tried and other event types)
  4. make post request to my webhook URL via Postman/SoapUI with success.
  5. check logs and I didn't find any request to my operation

Could you please verify that the post requests are created and sent properly? My Merchant ID is 'e0c55872-4e17-4d62-a5b9-d29e3b7aaef1' and my hook URL is this : https://us-central1-truffle-hellas.cloudfunctions.net/api/viva-hook

pnaa commented 1 month ago

@inovas97 we are having the same issue, we had the webhook for the "Transaction Payment Created" event configured for a long time, and the last time we've noticed that it worked was last Friday (20/09/2024). Is there any update on this?

myke11j commented 1 month ago

I'm using it recently and it works perfectly with Transaction Payment Created, i.e, I receive webhook every time a transaction is created. Did you try with "Transaction Payment Created" option and also is there any security group/load balance between your application and Viva which might be blocking request from Viva?

inovas97 commented 1 month ago

Hello @pnaa and @myke11j , I have configured the same webhook and I received some requests yesterday. Today I made some payments but no request has been received yet. Also, I have configured the "Transaction Failed" webhook under the same endpoint but I have never received any notification related to a failed transaction.

pnaa commented 1 month ago

We have started to receive notifications again without any reconfiguration, it seams it was a temporary platform issue.

inovas97 commented 1 month ago

@pnaa Thank you for your fast response. Do you notice system downtimes often? I am asking because I am during an implementation using the demo environment and I have noticed that more time is downtime than functional

pnaa commented 1 month ago

Not too often, but more times than expected for a banking service. Unfortunately, support takes too long to give feedback. As you can see, this thread was opened a couple of days ago, and no one has replied yet....

myke11j commented 1 month ago

@pnaa can confirm, the webhook is very inconsistent. A lot of times it doesn't send any message after successful transaction, especially if there hasn’t been any activity for a while. Sometimes, it even redirects to my success page long before the webhook message arrives. So I had to implement my post-payment business logic for both the webhook and the success redirect, just in case the webhook message isn’t received

pnaa commented 1 month ago

I also had to do that.... but the problem is that if we target a recurring payment, it's only possible to get the initial_payment payload with the transaction ID on the webhook, because there is no other way to get it. So, in our case, if the webhook isn't triggered, we get the order status and assume a one-time payment....

inovas97 commented 1 month ago

Do you know if the production webhooks work properly?

VivaWalletCustomerSupport commented 1 month ago

Hello,

Thank you for your messages and apologies for the late response. Please make sure your webhooks are public and the following IP addresses are whitelisted on your server. Rest assured production webhooks are operational.

Kind regards, Viva E-commerce Support Team

inovas97 commented 1 month ago

Thanks for your response,

I am sure that the proposed configurations have been applied correctly. I have already received some requests on my hooks but it happened only for one day, after that without changing anything it stopped. After configuring the webhook, any change in my application, non-related to the service that handles the hook, could affect the hook? Maybe a restart of my server could make any? Have I to re-confirm my hooks after any server action? Best Regards