allow refund via Android API

This commit is contained in:
Florian Dold 2020-03-30 16:12:28 +05:30
parent aaf950e2ad
commit 3fa928b949
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
2 changed files with 5 additions and 1 deletions

View File

@ -218,6 +218,10 @@ class AndroidWalletMessageHandler {
args.selectedExchange, args.selectedExchange,
); );
} }
case "applyRefund": {
const wallet = await this.wp.promise;
return await wallet.applyRefund(args.talerRefundUri);
}
case "acceptExchangeTermsOfService": { case "acceptExchangeTermsOfService": {
const wallet = await this.wp.promise; const wallet = await this.wp.promise;
return await wallet.acceptExchangeTermsOfService( return await wallet.acceptExchangeTermsOfService(

View File

@ -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); await startRefundQuery(ws, purchase.proposalId);
return { contractTermsHash: purchase.contractData.contractTermsHash }; return { contractTermsHash: purchase.contractData.contractTermsHash };