diff options
author | Sebastian <sebasjm@gmail.com> | 2024-03-22 09:16:23 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-03-22 09:16:23 -0300 |
commit | a9540de313506200105f8c75ac219ffeb7622d78 (patch) | |
tree | 94f98b62b7dc2e56a2980927c2a8054e9b0014b8 /packages/taler-wallet-core/src | |
parent | 4cc76389a826a5a0c1f07a6cfd7602d12fc6acc5 (diff) | |
download | wallet-core-a9540de313506200105f8c75ac219ffeb7622d78.tar.xz |
revert c09caa5fd which removed minimum_age from contract terms
Diffstat (limited to 'packages/taler-wallet-core/src')
-rw-r--r-- | packages/taler-wallet-core/src/pay-merchant.ts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/packages/taler-wallet-core/src/pay-merchant.ts b/packages/taler-wallet-core/src/pay-merchant.ts index e473566b0..562cee4a6 100644 --- a/packages/taler-wallet-core/src/pay-merchant.ts +++ b/packages/taler-wallet-core/src/pay-merchant.ts @@ -590,6 +590,7 @@ export function extractContractData( maxDepositFee: Amounts.stringify(parsedContractTerms.max_fee), merchant: parsedContractTerms.merchant, summaryI18n: parsedContractTerms.summary_i18n, + minimumAge: parsedContractTerms.minimum_age, }; } @@ -1147,7 +1148,7 @@ async function handleInsufficientFunds( depositFeeLimit: Amounts.parseOrThrow(contractData.maxDepositFee), wireFeeAmortization: 1, // FIXME #8653 prevPayCoins, - requiredMinimumAge: undefined, // FIXME #8653 + requiredMinimumAge: contractData.minimumAge, }); if (res.type !== "success") { @@ -1276,7 +1277,7 @@ async function checkPaymentByProposalId( depositFeeLimit: Amounts.parseOrThrow(contractData.maxDepositFee), wireFeeAmortization: 1, // FIXME #8653 prevPayCoins: [], - requiredMinimumAge: undefined, // FIXME #8653 + requiredMinimumAge: contractData.minimumAge, restrictWireMethod: contractData.wireMethod, }); @@ -1630,7 +1631,7 @@ export async function generateDepositPermissions( timestamp: contractData.timestamp, wireInfoHash, ageCommitmentProof: coin.ageCommitmentProof, - requiredMinimumAge: undefined,// FIXME #8653 + requiredMinimumAge: contractData.minimumAge, }); depositPermissions.push(dp); } @@ -1815,7 +1816,7 @@ export async function confirmPay( depositFeeLimit: Amounts.parseOrThrow(contractData.maxDepositFee), wireFeeAmortization: 1, // FIXME #8653 prevPayCoins: [], - requiredMinimumAge: undefined, // FIXME #8653 + requiredMinimumAge: contractData.minimumAge, forcedSelection: forcedCoinSel, }); |