diff options
author | Sebastian <sebasjm@gmail.com> | 2021-09-20 00:17:45 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2021-09-20 00:17:45 -0300 |
commit | 62b64cb453f6a4fd62c64bdd8e3240d5d7f03ce4 (patch) | |
tree | 5ad8c042ee86144beeb399d82112f4cfbd067d9a /packages | |
parent | 315b167bee240e625beea731df6472a971b46cb2 (diff) |
make no sense to send the noncePriv if the proposal is already paid
Diffstat (limited to 'packages')
-rw-r--r-- | packages/taler-util/src/walletTypes.ts | 2 | ||||
-rw-r--r-- | packages/taler-wallet-core/src/operations/pay.ts | 3 |
2 files changed, 0 insertions, 5 deletions
diff --git a/packages/taler-util/src/walletTypes.ts b/packages/taler-util/src/walletTypes.ts index 2b35423bc..37abd8b53 100644 --- a/packages/taler-util/src/walletTypes.ts +++ b/packages/taler-util/src/walletTypes.ts @@ -356,7 +356,6 @@ export const codecForPreparePayResultAlreadyConfirmed = (): Codec<PreparePayResu .property("contractTerms", codecForAny()) .property("contractTermsHash", codecForString()) .property("proposalId", codecForString()) - .property("noncePriv", codecForString()) .build("PreparePayResultAlreadyConfirmed"); export const codecForPreparePayResult = (): Codec<PreparePayResult> => @@ -407,7 +406,6 @@ export interface PreparePayResultAlreadyConfirmed { amountEffective: string; contractTermsHash: string; proposalId: string; - noncePriv: string; } export interface BankWithdrawDetails { diff --git a/packages/taler-wallet-core/src/operations/pay.ts b/packages/taler-wallet-core/src/operations/pay.ts index 970aa46ff..c524f4c98 100644 --- a/packages/taler-wallet-core/src/operations/pay.ts +++ b/packages/taler-wallet-core/src/operations/pay.ts @@ -1465,7 +1465,6 @@ export async function checkPaymentByProposalId( amountRaw: Amounts.stringify(purchase.download.contractData.amount), amountEffective: Amounts.stringify(purchase.totalPayCost), proposalId, - noncePriv: proposal.noncePriv, }; } else if (!purchase.timestampFirstSuccessfulPay) { return { @@ -1476,7 +1475,6 @@ export async function checkPaymentByProposalId( amountRaw: Amounts.stringify(purchase.download.contractData.amount), amountEffective: Amounts.stringify(purchase.totalPayCost), proposalId, - noncePriv: proposal.noncePriv, }; } else { const paid = !purchase.paymentSubmitPending; @@ -1489,7 +1487,6 @@ export async function checkPaymentByProposalId( amountEffective: Amounts.stringify(purchase.totalPayCost), ...(paid ? { nextUrl: purchase.download.contractData.orderId } : {}), proposalId, - noncePriv: proposal.noncePriv, }; } } |