summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-01-30 03:54:10 +0100
committerFlorian Dold <florian.dold@gmail.com>2018-01-30 03:54:10 +0100
commit92d5b8a707f1071c67ad992eb3f82422a43bf9b9 (patch)
treeb9d2295f175363010026f03efee3c739c56fb66a
parenteaf875f3b72510aa3fe7904cc2ec59e236d79e33 (diff)
downloaddocs-92d5b8a707f1071c67ad992eb3f82422a43bf9b9.tar.gz
docs-92d5b8a707f1071c67ad992eb3f82422a43bf9b9.tar.bz2
docs-92d5b8a707f1071c67ad992eb3f82422a43bf9b9.zip
update to new API
-rw-r--r--api-merchant.rst18
1 files changed, 15 insertions, 3 deletions
diff --git a/api-merchant.rst b/api-merchant.rst
index e7bd03b..6da8a52 100644
--- a/api-merchant.rst
+++ b/api-merchant.rst
@@ -144,7 +144,8 @@ Giving refunds
.. http:post:: /refund
- Increase the refund amount associated with a given order.
+ Increase the refund amount associated with a given order. The user should be
+ redirected to the `refund_redirect_url` to trigger refund processing in the wallet.
**Request**
@@ -186,8 +187,12 @@ Giving refunds
// is being refunded.
h_contract_terms: string;
- //The signed refund permissions, to be sent to the exchange.
+ // The signed refund permissions, to be sent to the exchange.
refund_permissions: MerchantRefundPermission[];
+
+ // URL (handled by the backend) that will
+ // trigger refund processing in the browser/wallet
+ refund_redirect_url: string;
}
.. _MerchantRefundPermission:
@@ -218,7 +223,10 @@ Giving tips to customers
.. http:post:: /tip-authorize
- Authorize a tip that can be picked up by the customer's wallet by POSTing to `/tip-pickup`. Note that this is simply the authorization step the back office has to trigger first. The frontend must return the tip's identifier (and exchange URL) via a "402 Payment Required" response to the wallet.
+ Authorize a tip that can be picked up by the customer's wallet by POSTing to
+ `/tip-pickup`. Note that this is simply the authorization step the back
+ office has to trigger first. The user should be navigated to the `tip_redirect_url`
+ to trigger tip processing in the wallet.
**Request**
@@ -272,6 +280,10 @@ Giving tips to customers
// URL of the exchange from where the tip can be withdrawn
exchange_uri: String;
+
+ // URL that will directly trigger procesing
+ // the tip when the browser is redirected to it
+ tip_redirect_url: string;
}