shetabit / payment

simple laravel payment package , supports multiple drivers
MIT License
840 stars 140 forks source link

Unknown Error Occurring on Zibal Driver #319

Open naeimsafaee opened 1 month ago

naeimsafaee commented 1 month ago

Hi everyone,

I hope you're all doing well. Since yesterday, I've been encountering an error with the Zibal driver. The error message I receive is: خطای ناشناخته ای رخ داده است. This error occurs during the execution of the verify() function in the following code: $receipt = $payment->amount((float) $transaction->amount) ->transactionId($transaction_id) ->verify();

It seems that the $status is returning as null, which leads the translateStatus() function to return the above error. From what I can tell, this issue might not be on the Zibal side. it's because Zibal driver is not working with RestApi as it's using Request input for status and flag.

If anyone has any insights or solutions, I'd greatly appreciate the help!

Thanks in advance.

khanzadimahdi commented 1 month ago

Even if the package doesn't use Zibal API, this error is a result of a kind of change that happened in Zibal. As far as I understood, it suddenly stopped working and you didn't touch anything.

Could you please check the callback request query and payload ? this status might have been removed from the callback request from Zibal's behalf.