Metadata-Version: 2.1
Name: garantipay-payment
Version: 1.1.0
Summary: A library to provide payment gateway for GarantiPay 2.0
Home-page: https://bitbucket.org/akinonteam/garantipay-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.10.3
Requires-Dist: mock ==4.0.3

# Garantipay 2.0 Redirect View

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

## Installation

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

    garantipay-payment

## Adding App

Add the following lines in `omnife_base.settings`:

    INSTALLED_APPS.append('garantipay_payment')
    PZ_SERVICE_CLASS = "omnife.core.service.Service"
    HASH_SECRET_KEY = "your-hash-secret-key"
    PRODUCT_KIND_ATTRIBUTE_NAME = "product_kind"

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

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

## Running Tests

    python -m unittest discover

## Python Version Compatibility

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