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

Right way for setting payment api key #8

Open
ikheifets opened this issue Jun 19, 2019 · 0 comments
Open

Right way for setting payment api key #8

ikheifets opened this issue Jun 19, 2019 · 0 comments

Comments

@ikheifets
Copy link

ikheifets commented Jun 19, 2019

Library has only one way for setting api key and it's a "monkey patching"(look at readme). I think it's a really big problem for payment gateway client, because client could operate with many accounts and it could be an reason of many problems.

I suggest to implement something like this:

moyasar_client = moyasar.Client('<api key>')
moyasar_client.Payment.fetch('<payment id>')
moyasar_client.Invoice.fetch('<invoice id>')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant