mpesa-php-sdk icon indicating copy to clipboard operation
mpesa-php-sdk copied to clipboard

StkPushQuerry- Bad Request - Invalid Timestamp

Open bettkipronoh opened this issue 4 years ago • 3 comments

When checking the status of a Lipa Na M-Pesa Online Payment, I get Bad Request - Invalid timestap.

bettkipronoh avatar Apr 08 '20 22:04 bettkipronoh

I have the same issue with STK Push.

ghost avatar Dec 02 '21 06:12 ghost

Any luck with this? @JuniaKE @bettkipronoh

Kalela avatar Jul 05 '23 07:07 Kalela

Found the issue. Leaving this for the Future Daraja crossers. The Daraja API uses its own format for the timestamp. It is more like a concatenation of the date and time. Say 20230411000 being 2023 April first at 10am. A sample timestamp is 20230718171607 . Best option is to copy it from the API simulator for testing. See image Screenshot 2023-07-18 at 17 16 48

Kalela avatar Jul 18 '23 14:07 Kalela