{"action":"created","issue":{"url":"https://api.github.com/repos/django-oscar/django-oscar-api/issues/17","labels_url":"https://api.github.com/repos/django-oscar/django-oscar-api/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/django-oscar/django-oscar-api/issues/17/comments","events_url":"https://api.github.com/repos/django-oscar/django-oscar-api/issues/17/events","html_url":"https://github.com/django-oscar/django-oscar-api/pull/17","id":71520719,"number":17,"title":"Added Checkout","user":{"login":"specialunderwear","id":52858,"avatar_url":"https://avatars.githubusercontent.com/u/52858?v=3","gravatar_id":"","url":"https://api.github.com/users/specialunderwear","html_url":"https://github.com/specialunderwear","followers_url":"https://api.github.com/users/specialunderwear/followers","following_url":"https://api.github.com/users/specialunderwear/following{/other_user}","gists_url":"https://api.github.com/users/specialunderwear/gists{/gist_id}","starred_url":"https://api.github.com/users/specialunderwear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/specialunderwear/subscriptions","organizations_url":"https://api.github.com/users/specialunderwear/orgs","repos_url":"https://api.github.com/users/specialunderwear/repos","events_url":"https://api.github.com/users/specialunderwear/events{/privacy}","received_events_url":"https://api.github.com/users/specialunderwear/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"maerteijn","id":121401,"avatar_url":"https://avatars.githubusercontent.com/u/121401?v=3","gravatar_id":"","url":"https://api.github.com/users/maerteijn","html_url":"https://github.com/maerteijn","followers_url":"https://api.github.com/users/maerteijn/followers","following_url":"https://api.github.com/users/maerteijn/following{/other_user}","gists_url":"https://api.github.com/users/maerteijn/gists{/gist_id}","starred_url":"https://api.github.com/users/maerteijn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maerteijn/subscriptions","organizations_url":"https://api.github.com/users/maerteijn/orgs","repos_url":"https://api.github.com/users/maerteijn/repos","events_url":"https://api.github.com/users/maerteijn/events{/privacy}","received_events_url":"https://api.github.com/users/maerteijn/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-04-28T08:24:52Z","updated_at":"2015-04-28T14:29:05Z","closed_at":"2015-04-28T12:05:26Z","pull_request":{"url":"https://api.github.com/repos/django-oscar/django-oscar-api/pulls/17","html_url":"https://github.com/django-oscar/django-oscar-api/pull/17","diff_url":"https://github.com/django-oscar/django-oscar-api/pull/17.diff","patch_url":"https://github.com/django-oscar/django-oscar-api/pull/17.patch"},"body":"Added checkout api.\r\n\r\nChecking out a basket is like standing in front of a cashiere and she scans your items. After that, you need to pay. Payment is not in scope, but a mechanism to integrate any payment provider you want has been implemented.\r\n\r\nThe mechanism works as follows: Checkout creates an order model instance. This instance has a property 'payment_url' the value of this property is set by https://github.com/django-oscar/django-oscar-api/blob/checkout/oscarapi/serializers/checkout.py#L173 which requires you to:\r\n\r\nYou need to implement a view named 'api-payment' which redirects to the payment provider and sets up the callbacks.\r\n\r\nThis view can be another api, or it can be just a view that redirects to a payment provider.\r\n\r\nThe details are for you to implement. But the order is created and whatever your payment process does, it should updated the status of the order."},"comment":{"url":"https://api.github.com/repos/django-oscar/django-oscar-api/issues/comments/97084439","html_url":"https://github.com/django-oscar/django-oscar-api/pull/17#issuecomment-97084439","issue_url":"https://api.github.com/repos/django-oscar/django-oscar-api/issues/17","id":97084439,"user":{"login":"jmound","id":961795,"avatar_url":"https://avatars.githubusercontent.com/u/961795?v=3","gravatar_id":"","url":"https://api.github.com/users/jmound","html_url":"https://github.com/jmound","followers_url":"https://api.github.com/users/jmound/followers","following_url":"https://api.github.com/users/jmound/following{/other_user}","gists_url":"https://api.github.com/users/jmound/gists{/gist_id}","starred_url":"https://api.github.com/users/jmound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmound/subscriptions","organizations_url":"https://api.github.com/users/jmound/orgs","repos_url":"https://api.github.com/users/jmound/repos","events_url":"https://api.github.com/users/jmound/events{/privacy}","received_events_url":"https://api.github.com/users/jmound/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T14:29:05Z","updated_at":"2015-04-28T14:29:05Z","body":"Excellent! Thanks a ton. I've been working with the checkout branch for a bit in a development environment, glad to see it's made it in to master."}}