diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-01-18 23:32:03 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-01-18 23:32:14 +0100 |
commit | af57a404d070500ce63ed9ed0dfce721e82e4801 (patch) | |
tree | 39e97aefffe61c568b64c1d71d66b48e26c905ce /src/operations | |
parent | fcb0565323d3134ec2dc376700ef85a2c7b7becd (diff) | |
download | wallet-core-af57a404d070500ce63ed9ed0dfce721e82e4801.tar.xz |
fix and test case for "insecure" taler://refund URIs
Diffstat (limited to 'src/operations')
-rw-r--r-- | src/operations/pay.ts | 1 | ||||
-rw-r--r-- | src/operations/refund.ts | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/operations/pay.ts b/src/operations/pay.ts index 098e6e18c..c5a344186 100644 --- a/src/operations/pay.ts +++ b/src/operations/pay.ts @@ -1093,6 +1093,7 @@ export async function confirmPay( ); logger.trace("confirmPay: submitting payment after creating purchase record"); + logger.trace("purchaseRecord:", purchase); return submitPay(ws, proposalId); } diff --git a/src/operations/refund.ts b/src/operations/refund.ts index 6a96868a3..27d83230a 100644 --- a/src/operations/refund.ts +++ b/src/operations/refund.ts @@ -271,7 +271,7 @@ export async function applyRefund( ): Promise<string> { const parseResult = parseRefundUri(talerRefundUri); - console.log("applying refund"); + console.log("applying refund", parseResult); if (!parseResult) { throw Error("invalid refund URI"); @@ -283,7 +283,7 @@ export async function applyRefund( ]); if (!purchase) { - throw Error("no purchase for the taler://refund/ URI was found"); + throw Error(`no purchase for the taler://refund/ URI (${talerRefundUri}) was found`); } console.log("processing purchase for refund"); |