Skip to main content

A common library for providing order details to Oney Payment Gateway.

Project description

Oney Redirect View

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

Installation

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

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"
HASH_SECRET_KEY = "your-hash-secret-key"

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oney-payment-1.0.3.tar.gz (5.8 kB view hashes)

Uploaded Source

Built Distribution

oney_payment-1.0.3-py3-none-any.whl (8.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page