Skip to main content

It's application for pay-system Paymecash.py

Project description

=====
Dajngo paymecash
=====

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


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

1. Добавить 'paymecash' INSTALLED_APPS::

INSTALLED_APPS = (
# ...
'paymecash',
)


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

3. Обязательные параметры settings.py::

# Номер кошелька и ключь, полученые после регистрации
PAYMECASH_WALLET_ID = '000000001111'
PAYMECASH_SECRET_KEY = 'qCck7SpoSdrtfsqCmm7SNTSe'

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

LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'verbose': {
'format': '%(levelname)s %(asctime)s %(module)s %(funcName)s %(message)s'
}
},
'handlers': {
'paymecash': {
'level': 'DEBUG',
'class': 'logging.handlers.WatchedFileHandler',
'filename': os.path.join(ROOT, 'paymecash.log'),
'formatter': 'verbose'
}
},
'loggers': {
'paymecash': {
'handlers': ['paymecash'],
'level': 'ERROR',
'propagate': True
}
}
}

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

6. Задайте в личном кабинете ( https://tf.org/app/#/integration ) callback URL http://example.com/paymecash/confirm/

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

django-paymecash-0.0.4.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

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

django-paymecash-0.0.4.macosx-10.8-intel.exe (81.5 kB view details)

Uploaded Source

File details

Details for the file django-paymecash-0.0.4.tar.gz.

File metadata

File hashes

Hashes for django-paymecash-0.0.4.tar.gz
Algorithm Hash digest
SHA256 c1fcfcdc730fd0c646d3ddb41b55968d115290eaef77699d1c6c55f576bf8a3a
MD5 b59264f3e62ac0415cf6b348f01ee879
BLAKE2b-256 8353c25edae742cda3bb586d08620bc07eb35fbc131ae6f5bcffe8275fe84818

See more details on using hashes here.

File details

Details for the file django-paymecash-0.0.4.macosx-10.8-intel.exe.

File metadata

File hashes

Hashes for django-paymecash-0.0.4.macosx-10.8-intel.exe
Algorithm Hash digest
SHA256 be4986ddd61b40939cd2a2036d493da8303bbdf3ef6c2c3f87bab58e2753a588
MD5 61e6336c7af799dcf622388c0c99e1f3
BLAKE2b-256 c22256c1369ed5394f4bd4e946a16976f968ac27c442e12da5fa857ce5006a75

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