xcode75 / XManagerPlus

An Xray Manager
https://xcode75.github.io/XMPlusDocs/
267 stars 48 forks source link

[BUG] ZarinPal Gateway error after update to v20230625 #239

Closed banxter closed 1 year ago

banxter commented 1 year ago

OS: CentOS 9

PHP version: 7.4

Enabled Debug.

Bug Info

I fixed the database update issue and added missing Currency columns. But after update, panel can't redirect to zarinpal payment gateway, and it shows error after click on Pay button. The error is: Zarinpal: -9 - The input params invalid, validation error

photo_2023-06-26_11-44-37

I Enabled the debug in config.php, But there were no logs about this, in /www/wwwlogs/myDomain.log and /www/wwwlogs/myDomain.error.log Am i right about the log's path?

xcode75 commented 1 year ago

your Merchant ID maybe wrong

banxter commented 1 year ago

your Merchant ID maybe wrong

I downgraded to a version before and it worked again, it just happens with the latest version v20230625. and i checked merchant ID it was ok..

I also noticed that after update, in Admin Dashboard, sales and income numbers will be corrupted after update.

Screenshot 2023-06-26 215745

Do you or anybody know where the problem should be from or how to fix it?

banxter commented 1 year ago

I updated your DB update SQL code to this, and updated it manually. is it correct?

DB Changes

banxter commented 1 year ago

After installing the fix v20230627, Admin Dashboard total sales numbers fixed, But 3digit separation is gone:

Screenshot 2023-06-27 191604

But My main issue, the Zarrinpal Gateway error is still the same, My DB update code is correct? Where from it should be?

SudoMds commented 1 year ago

go to transactions>Currencies update rates all rates should be 0.00 and if you use iran rial > IRR value should be 1