github internxt/drive-web v1.0.448

latest releases: v1.0.526, v1.0.525, v1.0.524...
3 months ago

Description

This PR fixes the incorrect calculation of the amount sent to Impact Radius. Previously, the discount was applied twice — once in the priceWithTax, which already includes the discount, and again when we manually applied the coupon logic.

To resolve this, we now use the gross price (excluding tax and discounts) and apply the coupon code ourselves, ensuring the discount is applied only once. This results in accurate tracking data being sent to Impact Radius.

Related Issues

Related Pull Requests

Checklist

  • Changes have been tested locally.
  • Unit tests have been written or updated as necessary.
  • The code adheres to the repository's coding standards.
  • Relevant documentation has been added or updated.
  • No new warnings or errors have been introduced.
  • SonarCloud issues have been reviewed and addressed.
  • QA Passed

Testing Process

To test this, some payments have been made using an affiliate test link to see that the conversion reaches Impact correctly.

Additional Notes

Don't miss a new drive-web release

NewReleases is sending notifications on new releases.