I’m working on developing a Pix code, which is an instant payment system in Brazil. The payment approval part is functioning correctly in real-time, meaning that when a payment is approved, the PHP code receives this information accurately.
However, I’m encountering difficulties with the real-time update of the approval status on the user’s screen. After the PHP code receives the approval status, I’m using Ajax to send this information and update the user’s screen with the corresponding status.
The problem is that even though the status is correctly received by the PHP code, when it is sent to Ajax, it is displayed as “pending” on the user’s screen instead of “approved”. This is causing confusion and difficulties for users since the information is not being displayed correctly.
To help visualize and better understand the problem, I have recorded a video demonstrating the error. The video is available on Google Drive.
Help @Vitor-Hugo-LH spread the word by sharing this article on Twitter...Tweet This