Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contribution (Stripe payment) fails when percentage field is enabled #55

Open
MtnPavlas opened this issue Jan 24, 2024 · 2 comments
Open

Comments

@MtnPavlas
Copy link

Cross-posting here as I'm not sure if it's % field or Stripe Pmt extension or CiviCRM core issue : (

https://lab.civicrm.org/extensions/stripe/-/issues/465

Thank you so much for any pointers.

@kcristiano
Copy link

@konadave
Copy link

CRM.percentagepricesetfield..calculateTotalFee doesn't take into account the hidden $1 price attached to the checkbox for the % fee. For example, a $100 donation + 3.5% fee is being calculated as $101 + 3.5% = $104.54.

Should the price option on the checkbox have an amount of $1.00 ? Setting it to $0.00 causes the UI to calculate the fee properly but I don't know what other side effects there are.

I have a code fix that subs out the extra $1 from baseTotal that seems to fix the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants