Django battery for integration with Qiwi payment system
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
osmp
.gitignore
README.md
setup.py

README.md

OSMP(Qiwi) payment Integration for Django

Tested on Django 1.5

Usage:

  1. Install and add it to INSTALLED_APPS
  2. Create your models and custom view as CBV Model
from osmp.models import OSMP 
class SomePaymentModel(OSMP):
  pass

and view

from osmp.models import PaymentMixin
from django.views.generic import View

class SomePayment(view, PaymentMixin):
  def get(self, request, *args, **kwargs):
    if self.is_valid():
      ....
      ....
      ....
    return self.Unknown()