Skip to main content
=====
Dajngo pay2pay
=====

Приложения для приема платежей через систему http://pay2pay.com

=====
Quick start
=====

0. Устанавливаем приложение::

pip install django-pay2pay

1. Добавляем 'pay2pay' INSTALLED_APPS::

INSTALLED_APPS = (
...
'pay2pay',
)

2. Добавить ``url(r'^pay2pay/', include('pay2pay.urls')),`` в urls.py

3. Обязательные параметры settings.py (находятся в https://cp.pay2pay.com/ ) ::

PAY2PAY_MERCHANT_ID = 1111
PAY2PAY_HIDE_KEY = 'qCmm7SNTSdasfsqCmm7SNTSd'
PAY2PAY_SECRET_KEY = 'qCmm7dsaSdasfsqCmgdjfgkdfghdfsad'
PAY2PAY_FAIL_URL = 'http://example.com/pay2pay/fail/'
PAY2PAY_SUCCESS_URL = 'http://example.com/pay2pay/success/'
PAY2PAY_RESULT_URL = 'http://example.com/pay2pay/confirm/'

4. Добавить логер с именем ``pay2pay``::

LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'standart': {
'format': '(%(asctime)s) %(levelname)s [%(filename)s -> %(funcName)s -> %(lineno)d]: "%(message)s"',
}
},
'handlers': {
'pay2pay': {
'level': 'DEBUG',
'class': 'logging.handlers.WatchedFileHandler',
'filename': os.path.join(ROOT, 'pay2pay.log'),
'formatter': 'standart'
}
},
'loggers': {
'pay2pay': {
'handlers': ['pay2pay'],
'level': 'DEBUG',
'propagate': True
}
}
}

4. Выполните ``python manage.py syncdb`` для создание таблицы с заказазами или выполните мограцию, если вы используете south: ``python manage.py migrate pay2pay2``


5. Определите два шаблона::

pay2pay/payment_fail.html # Для отменных платежей
pay2pay/payment_success.html # Для успешных платежей

Metadata

Release files for django-pay2pay 0.9.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-pay2pay 0.9.6
File Size Uploaded Provenance Actions
django-pay2pay-0.9.6.tar.gz 18.3 kB Without provenance Details for django-pay2pay-0.9.6.tar.gz

Release files / django-pay2pay-0.9.6.tar.gz

Download URL django-pay2pay-0.9.6.tar.gz
Size 18.3 kB
Tags Source
SHA-256 checksum
How to use checksums
dfb40949064b4b62519fc02d13144eaf1a3fcb5a66eebe5bc0428aef27c23241
BLAKE2b-256 checksum
How to use checksums
922f76112163dcb0975864fe4c1be2d03b93ff601199dffdb2876fb110ab6d2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-pay2pay 0.9.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page