# Path: mkt/prices/views.py
# class PricesViewSet(MarketplaceView, CORSMixin, ListModelMixin,
#                     RetrieveModelMixin, GenericViewSet):
#     queryset = Price.objects.filter(active=True).order_by('price')
#     serializer_class = PriceSerializer
#     cors_allowed_methods = ['get']
#     authentication_classes = [RestAnonymousAuthentication]
#     permission_classes = [AllowAny]
#     filter_class = PriceFilter


from django.conf.urls import include, patterns, url
from rest_framework import routers
from mkt.prices.views import PricesViewSet
from mkt.webpay.views import (FailureNotificationView,
                              PreparePayWebAppView, PreparePayInAppView,
                              ProductIconViewSet, sig_check, StatusPayView)




api = routers.SimpleRouter()
api.register(r'prices', PricesViewSet)
api.register(r'product/icon', ProductIconViewSet)

urlpatterns = patterns(
    '',
    url(r'^', include(api.urls)),
    url(r'^webpay/', include(api.urls)),
    url(r'^webpay/status/(?P<uuid>[^/]+)/', StatusPayView.as_view(),
        name='webpay-status'),
    url(r'^webpay/prepare/', PreparePayWebAppView.as_view(),
        name='webpay-prepare'),
    url(r'^webpay/inapp/prepare/', PreparePayInAppView.as_view(),
        name='webpay-prepare-inapp'),

# Path: mkt/prices/views.py
# class PricesViewSet(MarketplaceView, CORSMixin, ListModelMixin,
#                     RetrieveModelMixin, GenericViewSet):
#     queryset = Price.objects.filter(active=True).order_by('price')
#     serializer_class = PriceSerializer
#     cors_allowed_methods = ['get']
#     authentication_classes = [RestAnonymousAuthentication]
#     permission_classes = [AllowAny]
#     filter_class = PriceFilter


# Path: mkt/webpay/urls.py
from django.conf.urls import include, patterns, url
from rest_framework import routers
from mkt.prices.views import PricesViewSet
from mkt.webpay.views import (FailureNotificationView,
                              PreparePayWebAppView, PreparePayInAppView,
                              ProductIconViewSet, sig_check, StatusPayView)





api = routers.SimpleRouter()
api.register(r'prices', PricesViewSet)
api.register(r'product/icon', ProductIconViewSet)

urlpatterns = patterns(
    '',
    url(r'^', include(api.urls)),
    url(r'^webpay/', include(api.urls)),
    url(r'^webpay/status/(?P<uuid>[^/]+)/', StatusPayView.as_view(),
        name='webpay-status'),
    url(r'^webpay/prepare/', PreparePayWebAppView.as_view(),
        name='webpay-prepare'),
    url(r'^webpay/inapp/prepare/', PreparePayInAppView.as_view(),
        name='webpay-prepare-inapp'),

    url(r'^webpay/failure/(?P<pk>[^/]+)/',