aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-03-30 16:12:28 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-03-30 16:12:28 +0530
commit3fa928b949aa2f915a592d50d714871773888717 (patch)
treef535318d07042bccfab66b0babaacc2bbc66cfa6 /src
parentaaf950e2ad5c07d4423f9822e3a0ae9f7b8d2bdf (diff)
allow refund via Android API
Diffstat (limited to 'src')
-rw-r--r--src/android/index.ts4
-rw-r--r--src/operations/refund.ts2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/android/index.ts b/src/android/index.ts
index 6e43fe317..a42b55a2c 100644
--- a/src/android/index.ts
+++ b/src/android/index.ts
@@ -218,6 +218,10 @@ class AndroidWalletMessageHandler {
args.selectedExchange,
);
}
+ case "applyRefund": {
+ const wallet = await this.wp.promise;
+ return await wallet.applyRefund(args.talerRefundUri);
+ }
case "acceptExchangeTermsOfService": {
const wallet = await this.wp.promise;
return await wallet.acceptExchangeTermsOfService(
diff --git a/src/operations/refund.ts b/src/operations/refund.ts
index 64ab1f1e9..7552fc11c 100644
--- a/src/operations/refund.ts
+++ b/src/operations/refund.ts
@@ -291,7 +291,7 @@ export async function applyRefund(
);
}
- console.log("processing purchase for refund");
+ logger.info("processing purchase for refund");
await startRefundQuery(ws, purchase.proposalId);
return { contractTermsHash: purchase.contractData.contractTermsHash };