Foris-master / orange-money-sdk

orange-money-sdk
MIT License
13 stars 17 forks source link

Is this still up to date? #2

Closed stevenfokoua closed 5 years ago

stevenfokoua commented 5 years ago

Hi, good job here. I'm in Cameroon and willing to integrate this code into my project. Wanted to know if it is up to date with the current orange API (i think it's still after going through the code and the API documentation).

And it seems kind of complex and requires many dependencies. I'm not much of a coder maybe that's why i'm having issues. Hopefully you could help, thanks

Foris-master commented 5 years ago

Hi @Killa8 , yes the project is up to date. The SDK is simple in that it exposes a single class. But you should contact the orange team to get a merchant key and an auth header.

stevenfokoua commented 5 years ago

Hi @Killa8 , yes the project is up to date. The SDK is simple in that it exposes a single class. But you should contact the orange team to get a merchant key and an auth header.

Thaks for the fast reply. I do posses the Header and key, all the credentials. My problem is there is actually no .env file after i had cloned the repo (which turns out to be a Docker extension?) so i don't know how to process from there, especially since i don't want to start modifying the code and set all to static variables (bad coding habits haha). YOur help will be greatly appreciated

Foris-master commented 5 years ago

are you using a php framework (like laravel ou symphony) ?

stevenfokoua commented 5 years ago

Thanks again for the help. I do have composer (I don’t use latavel or other MVCs since I don’t do PHP), that’s why I am a bit of confused. I will give it a shot ASAP. Thanks

saintcreators commented 5 years ago

Hi, the package is installed via composer with dotenv package too. But when i try to intialise a class, it is recognised by Vs Code's Intelliphense as an existing class, but when ran i a browser via lamp throws an error. I'm working on Ubuntu 19 LTs with VS Code and Xampp

Fatal error: Uncaught Error: Call to a member function getBody() on string in /home/blckpatcher/Documents/Projet Felix/website/Wandastickers/vendor/foris-master/orange-money-sdk/src/OmSdk.php:30 Stack trace: #0 /home/blckpatcher/Documents/Projet Felix/website/Wandastickers/vendor/foris-master/orange-money-sdk/src/OmSdk.php(40): Foris\OmSdk\OmSdk->getAccesToken() #1 /home/blckpatcher/Documents/Projet Felix/website/Wandastickers/index.php(11): Foris\OmSdk\OmSdk->webPayment(Array) #2 {main} thrown in /home/blckpatcher/Documents/Projet Felix/website/Wandastickers/vendor/foris-master/orange-money-sdk/src/OmSdk.php on line 30

Foris-master commented 5 years ago

@saintcreators please reference a new issue for this with your working enviroment details.

stevenfokoua commented 5 years ago

Hi, it works perfectly and great ! Thanks a lot for the great work, once i figured out how to get it running all was smooth. All is handled automatically and it's saving me a great load of time. I just need to attach it to the front end via AJAX and link to a database, since it seems to me the Orange doesn't register the payments made. Thanks again !

Foris-master commented 5 years ago

@Killa8 thanks , i will close the issue now !