Some details info
[ouya-store-api.git] / api / ott9.wpstn.com / live.rst
1 =====================================
2 ``POST https://ott9.wpstn.com/live/``
3 =====================================
4
5 Store credit card data.
6
7
8 Usage
9 =====
10 Called after fetching a one time token from
11 `POST https://devs.ouya.tv/api/v1/credit_card`_.
12
13
14 HTTP request
15 ============
16 Protocol
17   ``https``
18 Method
19   ``POST``
20 Host
21   ``ott9.wpstn.com``
22 Path
23   ``/live/``
24 Headers
25   ``Content-Type``
26     ``application/x-www-form-urlencoded``
27   ``User-Agent``
28     ``OUYA 0 1.00 1.2.1427_r1``
29 POST parameters
30   ``Action``:
31     ``Add``
32   ``OTT``:
33     Random one-time token from credit card POST request.
34   ``AcctName``:
35     Credit card account holder name
36   ``AcctNumber``:
37     ``4111111111111111``
38
39     Credit card number
40   ``ExpDate``:
41     ``012017``
42
43     Month & year
44   ``CVN``:
45     ``777``
46
47     Secret code
48   ``Email``:
49     E-mail address
50   ``ZipCode``:
51     Postal code
52
53
54 HTTP response
55 =============
56 Status code
57   ``303 See Other``
58
59 Redirects to ``wpsuccess`` URL on devs.ouya.tv with the ``OTT`` parameter::
60
61   https://devs.ouya.tv/wpsuccess?OTT=C187D8AE8970...
62
63 The redirect location header seems to be ignored; it does not get called.
64 Instead, `PUT https://devs.ouya.tv/api/v1/credit_card`_ is fetched.