from django.conf.urls import url
from lionclaw.checkout import api, views
from lionclaw.settings import API_URL_PREFIX

urlpatterns = [
    url(API_URL_PREFIX + r'checkout/$',
        api.capture_payment,
        name='longclaw_checkout'),
    url(API_URL_PREFIX + r'checkout/prepaid/$',
        api.create_order_with_token,
        name='longclaw_checkout_prepaid'),
    url(API_URL_PREFIX + r'checkout/token/$',
        api.create_token,
        name='longclaw_checkout_token'),
    url(r'checkout/$',
        views.CheckoutView.as_view(),
        name='longclaw_checkout_view'),
    url(r'checkout/success/(?P<pk>[0-9]+)/$',
        views.checkout_success,
        name='longclaw_checkout_success')
]
