diff options
| author | Pete Woods <email@pete-woods.com> | 2016-10-03 16:54:58 +0100 |
|---|---|---|
| committer | Gustavo Niemeyer <gustavo@niemeyer.net> | 2016-10-03 12:54:58 -0300 |
| commit | 11ec7c20c9af6b9cf993d35ade1ce4d37090da66 (patch) | |
| tree | 1ef61ab1ef89e1a00eeb25c4332121bfe3e47494 /docs | |
| parent | cbd52a44d4af8eb74fb2893da1faaab34876690c (diff) | |
docs: remove references to removed buying features (#2057)
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/rest.md | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/docs/rest.md b/docs/rest.md index 1cfd2b38fa..a4251d544f 100644 --- a/docs/rest.md +++ b/docs/rest.md @@ -586,19 +586,6 @@ Generally the UUID of a background operation you are interested in. } ``` -#### Sample input specifying specific credit card: - -```javascript -{ - "snap-id": "2kkitQurgOkL3foImG4wDwn9CIANuHlt", - "snap-name": "moon-buggy", - "price": 2.99, - "currency": "USD", - "backend-id": "credit_card", - "method-id": 1 -} -``` - #### Sample result: ```javascript @@ -616,67 +603,6 @@ Generally the UUID of a background operation you are interested in. * Operation: sync * Return: true, or error. -## /v2/buy/methods - -### GET - -* Description: Get a list of the available payment methods -* Access: authenticated -* Operation: sync -* Return: Dict with payment methods. - -#### Sample result with one method that allows automatic payment: - -```javascript -{ - "allows-automatic-payment": true, - "methods": [ - { - "backend-id": "credit_card", - "currencies": ["USD", "GBP"], - "description": "**** **** **** 1111 (exp 23/2020)", - "id": 123, - "preferred": true, - "requires-interaction": false - } - ] - } -``` - -#### Sample with 3 methods and no automatic payments: - -```javascript -{ - "allows-automatic-payment": false, - "methods": [ - { - "backend-id": "credit_card", - "currencies": ["USD", "GBP"], - "description": "**** **** **** 1111 (exp 23/2020)", - "id": 123, - "preferred": false, - "requires-interaction": false - }, - { - "backend-id": "credit_card", - "currencies": ["USD", "GBP"], - "description": "**** **** **** 2222 (exp 23/2025)", - "id": 234, - "preferred": false, - "requires-interaction": false - }, - { - "backend-id": "rest_paypal", - "currencies": ["USD", "GBP", "EUR"], - "description": "PayPal", - "id": 345, - "preferred": false, - "requires-interaction": true - } - ] - } -``` - ## /v2/create-user ### POST |
