Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange issue: Class 'unreal4u\TelegramAPI\Telegram\Types\SuccessFulPayment' not found #34

Closed
ircop opened this issue Jun 22, 2017 · 6 comments
Assignees

Comments

@ircop
Copy link

ircop commented Jun 22, 2017

Hello!

I have strange issue with payments API: after successfull payment, when Telegram sends to bot message of the type successful_payment , i have following error:

Unhandled error occured on face1!

Class 'unreal4u\TelegramAPI\Telegram\Types\SuccessFulPayment' not found
/var/www/tg-dev/vendor/unreal4u/telegram-api/src/Telegram/Types/Message.php:313

But i cannot fastly find any problems, all files, classes & namespaces seems to be ok...

@ircop
Copy link
Author

ircop commented Jun 22, 2017

Ah, i got it.

You have in Message.php:

return new SuccessFulPayment

but its Successful, not SuccessFull

@unreal4u
Copy link
Owner

oh that's a big typo lol ...

I'll fix it immediatly :) Thanks for reporting!

@unreal4u
Copy link
Owner

PS: Just noticed that the class (and file) have the correct name: https://github.com/unreal4u/telegram-api/blob/master/src/Telegram/Types/SuccessfulPayment.php so that's not the problem

Can you check whether the class is correctly found in vendor/composer/autoload_classmap.php? Also a git status output on vendor/unreal4u/telegram-api would be useful for me to check :)

@unreal4u
Copy link
Owner

oooh I see it, it's the F! Sorry, will fix it right away

@unreal4u
Copy link
Owner

There you go! Version https://github.com/unreal4u/telegram-api/releases/tag/v2.4.3 is ready and fixes this issue, thanks a lot for all the created issues so far!

@ircop
Copy link
Author

ircop commented Jun 22, 2017

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants