Metadata-Version: 2.1
Name: oney-payment
Version: 1.0.0
Summary: A common library for providing order details to Oney Payment Gateway.
Home-page: https://bitbucket.org/akinonteam/oney-payment
Author: Akinon
Author-email: dev@akinon.com
Description-Content-Type: text/markdown
Requires-Dist: Django <4.0,>=2.2.9
Requires-Dist: requests
Requires-Dist: djangorestframework <3.15,>=3.11.0
Requires-Dist: orjson ==3.7.2
Requires-Dist: requests-mock ==1.8.0
Requires-Dist: mock ==4.0.3

# Oney Redirect View

This app provides order related data to the Oney payment extension when plugged-in to project zero.

## Installation

Add the package repository to requirements.txt file and install it via pip:

    -e git+https://git@bitbucket.org/akinonteam/oney-payment.git@main#egg=oney-payment

## Adding App

Add the following lines in `omnife_base.settings`:

    INSTALLED_APPS.append('oney_payment')
    ONEY_EXTENSION_URL = 'https://extension-url.akinon.net/'
    PZ_SERVICE_CLASS = "omnife.core.service.Service"

Add url pattern to `omnife_base.urls` like below:

    urlpatterns = [
        ...
        path('payment-gateway/oney/', include('oney_payment.urls')),
    ]

## Running Tests

    python -m unittest discover

## Python Version Compatibility

This package is compatible with the following Python versions:
  - Python 3.6
  - Python 3.7
  - Python 3.8
  - Python 3.9
