RepeatTransaction API incorrectly calculates the total amount when recur payment has tax amount.
To replicate -
- Create an FT that includes a 10% GST on the main amount.
- Sign up an auto-renew Membership using this FT. So if membership amount is $10, the total amount paid by the user is $11.
- Now, when the next recur needs to be processed, if repeattransaction is called on this recur contribution, it recalculates the tax on the already taxed amount. So the second payment will be recorded with total amount = $12.1.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information