12-05-2023, 04:02 AM
Hello,
I neet to use IntraWeb Web Application to support customer payments through the website. By use the Payment Gateway service by connecting via API(JSON) which has a sequence diagram as shown in the picture.
![[Image: sequence-diagram-of-payment.jpg]](https://i.ibb.co/dK8jS0s/sequence-diagram-of-payment.jpg)
There will be 2 steps where the Payment Gateway will respond to create payment (charge.create) and finalize payment (charge.complete) with a Webhook (with POST requests) to the Server (from the picture that has been highlighted in yellow color).
1. I would like to know how to make this WebApp Server developed with IntraWeb able to accept this Webhook. The Webhook must be set up on the Payment Gateway side, such as url path of my site https://mydomain.com/handlerwebhook.
2. And if we assume that the payment has arrived chage.complete This will be a success or a failure. Now in the Client Browser, the customer may or may not close the Browser tab. which if it is not closed yet. How can I send the payment status to that client?(Server send communicate to specific client) For example, it may show a message box that the payment has been completed or the payment failed due to...
Thank you
I neet to use IntraWeb Web Application to support customer payments through the website. By use the Payment Gateway service by connecting via API(JSON) which has a sequence diagram as shown in the picture.
![[Image: sequence-diagram-of-payment.jpg]](https://i.ibb.co/dK8jS0s/sequence-diagram-of-payment.jpg)
There will be 2 steps where the Payment Gateway will respond to create payment (charge.create) and finalize payment (charge.complete) with a Webhook (with POST requests) to the Server (from the picture that has been highlighted in yellow color).
1. I would like to know how to make this WebApp Server developed with IntraWeb able to accept this Webhook. The Webhook must be set up on the Payment Gateway side, such as url path of my site https://mydomain.com/handlerwebhook.
2. And if we assume that the payment has arrived chage.complete This will be a success or a failure. Now in the Client Browser, the customer may or may not close the Browser tab. which if it is not closed yet. How can I send the payment status to that client?(Server send communicate to specific client) For example, it may show a message box that the payment has been completed or the payment failed due to...
Thank you