diff --git a/CRM/Contribute/BAO/Contribution.php b/CRM/Contribute/BAO/Contribution.php index f2995582e1caafbe86388162ec77c1d6318d3d7d..ff98ab2e34ac06774aead35b74c2b4f3826ae1a8 100644 --- a/CRM/Contribute/BAO/Contribution.php +++ b/CRM/Contribute/BAO/Contribution.php @@ -2510,6 +2510,9 @@ LEFT JOIN civicrm_contribution contribution ON ( componentPayment.contribution_ if (isset($contribution->contribution_page_id) && is_numeric($contribution->contribution_page_id)) { $contributionParams['contribution_page_id'] = $contribution->contribution_page_id; } + if (!empty($contribution->tax_amount)) { + $contributionParams['tax_amount'] = $contribution->tax_amount; + } $createContribution = civicrm_api3('Contribution', 'create', $contributionParams); $contribution->id = $createContribution['id'];