django-payments-mollie


Namedjango-payments-mollie JSON
Version 0.0.1 PyPI version JSON
download
home_pageNone
SummaryMollie integration for django-payments
upload_time2023-08-14 08:23:20
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # django-payments-mollie

[![PyPI - Version](https://img.shields.io/pypi/v/django-payments-mollie.svg)](https://pypi.org/project/django-payments-mollie)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/django-payments-mollie.svg)](https://pypi.org/project/django-payments-mollie)

-----

Django Payments Mollie is a Django app that adds support for the [Mollie payment provider](https://www.mollie.com) to [Django Payments](https://django-payments.readthedocs.io/).

**Table of Contents**

- [Installation](#installation)
- [Configuration](#configuration)
- [Sandbox](#sandbox)
- [License](#license)

## Installation

```console
pip install django-payments-mollie
```

## Configuration

You should follow the configration guide in the Django Payments documentation. To setup this package as a payment variant, use the following `PAYMENT_VARIANTS` in the Django settings file:

```python
PAYMENT_VARIANTS = {
    "mollie": (
        "django_payments_mollie.provider.MollieProvider",
        {
            # For api key authentication
            "api_key": "test_example-api-key",

            # For access token authentication
            "access_token": "access_example-token",
            "testmode": True,

            # For OAuth2 authentication
            "client_id": "example-client-id",
            "client_secret": "example-client-secret",
            "testmode": True,
        }
    )
}
```

### Available configuration options

- `api_key`: A [Mollie API key](https://docs.mollie.com/overview/authentication#creating-api-keys), this is the simplest way to configure access to the Mollie API. Use the test key for development or testing. This also allows you to use payment methods that aren't enabled for live payments yet.

### Configuration helpers

#### Payment model

Django Payments docs will instruct you to create a Payment model that subclasses `BasePayment`. This package also provides a base model that you can use (optionally). The abstract model class `BaseMolliePayment` is a subclass of `BasePayment`, and it configures some of the fields as `required=True`, since Mollie requires them to be filled. Use it just like you would use Django payments' `BasePayment`:

```python
from django_mollie_payments.models import BaseMolliePayment

class Payment(BaseMolliePayment):
    ...
    # Add custom fields and methods
```

## Sandbox

The project contains a sandbox that shows a very simple implementation of Django Payments with the Mollie payment variant. You can use it to see how implementation could be done, or to actually run an application against your own Mollie account. See the [Sandbox README](sandbox/README.md) for details.

## License

`django-payments-mollie` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "django-payments-mollie",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "Four Digits <info@fourdigits.nl>",
    "download_url": "https://files.pythonhosted.org/packages/6a/a0/bb3bf8bd7569e40ef6b1cf1949b97995c52639fd45867bb6a173ee949eb4/django_payments_mollie-0.0.1.tar.gz",
    "platform": null,
    "description": "# django-payments-mollie\n\n[![PyPI - Version](https://img.shields.io/pypi/v/django-payments-mollie.svg)](https://pypi.org/project/django-payments-mollie)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/django-payments-mollie.svg)](https://pypi.org/project/django-payments-mollie)\n\n-----\n\nDjango Payments Mollie is a Django app that adds support for the [Mollie payment provider](https://www.mollie.com) to [Django Payments](https://django-payments.readthedocs.io/).\n\n**Table of Contents**\n\n- [Installation](#installation)\n- [Configuration](#configuration)\n- [Sandbox](#sandbox)\n- [License](#license)\n\n## Installation\n\n```console\npip install django-payments-mollie\n```\n\n## Configuration\n\nYou should follow the configration guide in the Django Payments documentation. To setup this package as a payment variant, use the following `PAYMENT_VARIANTS` in the Django settings file:\n\n```python\nPAYMENT_VARIANTS = {\n    \"mollie\": (\n        \"django_payments_mollie.provider.MollieProvider\",\n        {\n            # For api key authentication\n            \"api_key\": \"test_example-api-key\",\n\n            # For access token authentication\n            \"access_token\": \"access_example-token\",\n            \"testmode\": True,\n\n            # For OAuth2 authentication\n            \"client_id\": \"example-client-id\",\n            \"client_secret\": \"example-client-secret\",\n            \"testmode\": True,\n        }\n    )\n}\n```\n\n### Available configuration options\n\n- `api_key`: A [Mollie API key](https://docs.mollie.com/overview/authentication#creating-api-keys), this is the simplest way to configure access to the Mollie API. Use the test key for development or testing. This also allows you to use payment methods that aren't enabled for live payments yet.\n\n### Configuration helpers\n\n#### Payment model\n\nDjango Payments docs will instruct you to create a Payment model that subclasses `BasePayment`. This package also provides a base model that you can use (optionally). The abstract model class `BaseMolliePayment` is a subclass of `BasePayment`, and it configures some of the fields as `required=True`, since Mollie requires them to be filled. Use it just like you would use Django payments' `BasePayment`:\n\n```python\nfrom django_mollie_payments.models import BaseMolliePayment\n\nclass Payment(BaseMolliePayment):\n    ...\n    # Add custom fields and methods\n```\n\n## Sandbox\n\nThe project contains a sandbox that shows a very simple implementation of Django Payments with the Mollie payment variant. You can use it to see how implementation could be done, or to actually run an application against your own Mollie account. See the [Sandbox README](sandbox/README.md) for details.\n\n## License\n\n`django-payments-mollie` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Mollie integration for django-payments",
    "version": "0.0.1",
    "project_urls": {
        "Documentation": "https://github.com/fourdigits/django-payments-mollie#readme",
        "Issues": "https://github.com/fourdigits/django-payments-mollie/issues",
        "Source": "https://github.com/fourdigits/django-payments-mollie"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "d8dcca5772108e8ee2f6e1d24cd60a91b0d13ad87760c665dea58ec95606a5e5",
                "md5": "2c07f74c1b1b4ae935e6a92212a4e0a2",
                "sha256": "59b074bdd2b1245e6abbefe1ee37f0f8a4f594e7ff2c192a25e441eb6a03679a"
            },
            "downloads": -1,
            "filename": "django_payments_mollie-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2c07f74c1b1b4ae935e6a92212a4e0a2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 8425,
            "upload_time": "2023-08-14T08:23:17",
            "upload_time_iso_8601": "2023-08-14T08:23:17.919181Z",
            "url": "https://files.pythonhosted.org/packages/d8/dc/ca5772108e8ee2f6e1d24cd60a91b0d13ad87760c665dea58ec95606a5e5/django_payments_mollie-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "6aa0bb3bf8bd7569e40ef6b1cf1949b97995c52639fd45867bb6a173ee949eb4",
                "md5": "eec0baaa0c66797ea88dff479389bdb4",
                "sha256": "53cb5fd67029f3a570a8ef34a220419d8ca2313db5008b34ab23035287c7d371"
            },
            "downloads": -1,
            "filename": "django_payments_mollie-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "eec0baaa0c66797ea88dff479389bdb4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 17360,
            "upload_time": "2023-08-14T08:23:20",
            "upload_time_iso_8601": "2023-08-14T08:23:20.669293Z",
            "url": "https://files.pythonhosted.org/packages/6a/a0/bb3bf8bd7569e40ef6b1cf1949b97995c52639fd45867bb6a173ee949eb4/django_payments_mollie-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-14 08:23:20",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "fourdigits",
    "github_project": "django-payments-mollie#readme",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "django-payments-mollie"
}
        
Elapsed time: 0.27417s