Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How Intraweb server handler webhook from payment gateway
#4
For 

Quote: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...


I found the guidelines that I expected to adapt here from the example.
- IWMonitor_SendMessage
IWMonitor-SessionNotification

But from what Alexandre explained in this forum thread : thread-1890-post-6574

So I thought that, I just might have to adjust for sending to boardcase sessions, but send a specified session instead.

Code:
      gSessions.Execute( 'IWAppID',
        procedure(aSession: TObject)
        var
          lSession: TIWApplication absolute aSession;
        begin
          lSession.Status.Value := 100;

          TIWUserSession(lSession.Data).yourvaronusersession := 'test value';
        end
      );

by 
'IWAppID' is AppID of session which to notify
- variable 'yourvaronusersession' is declare in UsersessionUnit

If I don't understand correctly or have a better way, please help advise me.

Thanks
Reply


Messages In This Thread
RE: How Intraweb server handler webhook from payment gateway - by baxing - 12-08-2023, 12:43 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)