laravel-mtn-momo icon indicating copy to clipboard operation
laravel-mtn-momo copied to clipboard

call to a member function ispast() on string

Open edenahoussou opened this issue 1 year ago • 3 comments

Thank you for your work When verifying the transaction by passing it the id, this error occurs in the TokenUtilTrait at the level of the isExpired() function in the vendor. The expires_at field should have been of type dateTime but turns out to be a string.

To avoid the error I had to modify it to make sure it was in the right type before using isPast(), using Carbon.

Thanks again

edenahoussou avatar Nov 17 '23 11:11 edenahoussou