Skip to main content

A library to provide payment gateway for Haso Payment

Project description

Haso Payment Extension: Data Aggregation Redirect Flow

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

Installation

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

pip install haso-payment

Configuration

1. Adding App

Include the following lines in your omnife_base.settings file:

INSTALLED_APPS.append('haso_payment')

PZ_SERVICE_CLASS = "omnife.core.service.Service"

HASO_EXTENSION_CONF = {
    "default": { # Payment Option Slug / Use default for one payment option
        "extension_url": "https://your-haso-pe-extension.url",
        "hash_key": "your-haso-pe-extension-hash-key"
    }
}

Explanation of Settings

Setting Name Description
HASO_EXTENSION_CONF[payment_option_slug][extension_url] The URL where the Payment extension is hosted.
HASO_EXTENSION_CONF[payment_option_slug][hash_key] A secret key used for security.

2. Add URL Pattern

Add url pattern to omnife_base.urls like below:

urlpatterns = [
    # ...
    path('payment-gateway/haso/', include('haso_payment.urls')),
]

Running Tests

python -m unittest discover

Python Version Compatibility

This package is compatible with the following Python versions:

  • Python 3.9
  • Python 3.13

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

haso_payment-0.1.0.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

haso_payment-0.1.0-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file haso_payment-0.1.0.tar.gz.

File metadata

  • Download URL: haso_payment-0.1.0.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for haso_payment-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c0735ea25780edaa66330041804bbf886513ba6c16a684865bba0415bda654ea
MD5 2ea3b115116c91eba92545906baba097
BLAKE2b-256 f7dc1f668d1acdf042bd15ac085e4174b3aa318f6ce72a09fc23e021aafc362c

See more details on using hashes here.

File details

Details for the file haso_payment-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: haso_payment-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for haso_payment-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ffea2c7dc651ca24b8f53bb09e73bff4afa0118f79847e1c594d9717326c7d2
MD5 275c7fd38d9b4c5d37b7e811a555cad4
BLAKE2b-256 01813440f1e2ea74d8a5642fd6b9031ebbb9ecd0c849f9e6894e73bbba0d5bed

See more details on using hashes here.

Supported by

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