Skip to content
This repository was archived by the owner on Jun 26, 2025. It is now read-only.
This repository was archived by the owner on Jun 26, 2025. It is now read-only.

Right way for setting payment api key #8

Description

@ikheifets

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>')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions