diff options
Diffstat (limited to 'packages/taler-wallet-core/src/pay-merchant.ts')
-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, }); |