OSMP(Qiwi) payment Integration for Django
Tested on Django 1.5
Usage:
- Install and add it to INSTALLED_APPS
- 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()