gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: allow refund via Android API


From: gnunet
Subject: [taler-wallet-core] branch master updated: allow refund via Android API
Date: Mon, 30 Mar 2020 12:42:33 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new 3fa928b9 allow refund via Android API
3fa928b9 is described below

commit 3fa928b949aa2f915a592d50d714871773888717
Author: Florian Dold <address@hidden>
AuthorDate: Mon Mar 30 16:12:28 2020 +0530

    allow refund via Android API
---
 src/android/index.ts     | 4 ++++
 src/operations/refund.ts | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/android/index.ts b/src/android/index.ts
index 6e43fe31..a42b55a2 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 64ab1f1e..7552fc11 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 };

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]