niranjan94 / payumoney-php

Simple library for accepting payments via PayUMoney.
https://niranjan94.github.io/payumoney-php
MIT License
0 stars 4 forks source link

almost there? #3

Closed designosis closed 7 years ago

designosis commented 7 years ago

This looks really great! But I can't get it to work. I have a half-dozen other composer requires (phpmailer, browscap, instamojo, etc.), and all install and work fine. I think there's something wrong with the namespaces, but I can't figure out what. I get constant Fatal error: Uncaught Error: Class 'PayUMoney' not found errors. I've tried varying the namespace, changing from psr4 to psr0, repeaded dump-autoloads, etc. ... no luck.

I'd love to use your code! Any suggestions on getting this to work?

On a related note ... your usage doc is incorrect. It says $client->initializePurchase($params)->send(); where (I think) it should say $payumoney->initializePurchase($params)->send();.

designosis commented 7 years ago

This really does look like the cleanest / simplest implementation for payumoney. If you have any advice, I'd love to hear it.

niranjan94 commented 7 years ago

@neokio Good to know that you like it :) ... I have fixed the typo in the doc. Thanks ! :smile:

Have pushed a new version. Could you update now and give it a try ?

designosis commented 7 years ago

Of course. If you're telling me that you've recently tested your code on a clean install using the most recent version of composer, and everything works as-is, it's possible there's some bizarre incompatibility in my setup. But given how fresh the code is, I'd suggest there may be a problem in the codebase. Just can't really tell where :)

designosis commented 7 years ago

Yep v1.1 fixed it :) Thank you!

niranjan94 commented 7 years ago

@neokio you're welcome :)