0

I am new to AngularJs. I have payment section in my PHP project where payment response from the API is displayed in the frond-end using AngularJs.

The issue is, when the API response exceeds more that 30 seconds suddenly the default error message triggers. But in backed, the payments are doing fine and database is updating perfectly with a success message.

Can anyone help me on this ?

Thanks in advance

Dharman
  • 30,962
  • 25
  • 85
  • 135
Arun Augustine
  • 1,690
  • 1
  • 13
  • 20

1 Answers1

0

It might be because of the maximum execution time limit is set to 30 seconds. Increase the maximum execution time by using the below steps

  1. Open the path/to/php/php.ini file in editor, if you are using xampp then the path will be xampp/php/php.ini
  2. Find this in the php.ini file max_execution_time=30
  3. Replace it with max_execution_time=180 or any time limit you want