2017-02-03 10:04:57 +00:00
|
|
|
from django.conf.urls import url
|
2017-05-24 10:12:36 +00:00
|
|
|
from longclaw.longclawcheckout import api, views
|
2017-03-09 08:33:44 +00:00
|
|
|
from longclaw.settings import API_URL_PREFIX
|
2017-02-03 10:04:57 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
2017-03-14 08:58:01 +00:00
|
|
|
url(API_URL_PREFIX + r'checkout/$',
|
2017-02-03 10:04:57 +00:00
|
|
|
api.capture_payment,
|
2017-04-06 21:49:58 +00:00
|
|
|
name='longclaw_checkout'),
|
2017-03-14 08:58:01 +00:00
|
|
|
url(API_URL_PREFIX + r'checkout/prepaid/$',
|
2017-03-13 08:10:17 +00:00
|
|
|
api.create_order_with_token,
|
2017-04-06 21:49:58 +00:00
|
|
|
name='longclaw_checkout_prepaid'),
|
2017-03-14 08:58:01 +00:00
|
|
|
url(API_URL_PREFIX + r'checkout/token/$',
|
2017-02-03 10:04:57 +00:00
|
|
|
api.create_token,
|
2017-05-24 10:12:36 +00:00
|
|
|
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')
|
|
|
|
]
|