summaryrefslogtreecommitdiff
path: root/src/webex/wxApi.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-01-22 01:12:08 +0100
committerFlorian Dold <florian.dold@gmail.com>2018-01-22 01:12:08 +0100
commitae177549a5818e2698253ef17a11b1effbd66fdb (patch)
tree7ac7765d2af595b1d22367740d88a397b6b9868a /src/webex/wxApi.ts
parent1671d9a508b803af31762bcd9508e70eb40e7b48 (diff)
downloadwallet-core-ae177549a5818e2698253ef17a11b1effbd66fdb.tar.gz
wallet-core-ae177549a5818e2698253ef17a11b1effbd66fdb.tar.bz2
wallet-core-ae177549a5818e2698253ef17a11b1effbd66fdb.zip
implement flicker-free refunds
Diffstat (limited to 'src/webex/wxApi.ts')
-rw-r--r--src/webex/wxApi.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/webex/wxApi.ts b/src/webex/wxApi.ts
index 566f45265..8a7bf8250 100644
--- a/src/webex/wxApi.ts
+++ b/src/webex/wxApi.ts
@@ -363,3 +363,10 @@ export function talerPay(msg: any): Promise<void> {
export function downloadProposal(url: string): Promise<number> {
return callBackend("download-proposal", { url });
}
+
+/**
+ * Download a refund and accept it.
+ */
+export function acceptRefund(refundUrl: string): Promise<string> {
+ return callBackend("accept-refund", { refundUrl });
+}