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

Stripe minimum charge amounts applied #4

Open
remcotolsma opened this issue Oct 18, 2023 · 0 comments
Open

Stripe minimum charge amounts applied #4

remcotolsma opened this issue Oct 18, 2023 · 0 comments

Comments

@remcotolsma
Copy link
Member

In MemberPress version 1.11.7 minimum charge amounts have been introduced:

1.11.7 – 2023-07-10

Fixed

  • Round up to Stripe's minimum charge for each currency if checkout amount is less than minimum allowed by Stripe

Unfortunately, as MemberPress applies these minimum amounts per currency, this change also applies to third-party gateways. This results in for example a payment of € 0,50 for a membership with a trial amount of only € 0,02.

memberpress-trial-amount

There is a filter mepr_minimum_charge_amounts in https://github.com/pronamic/memberpress/blob/v1.11.7/app/data/minimum_charge_amounts.php, but as far as I can see it is not possible or would be difficult to change the minimum charge based on the selected gateway — the product title in the screenshot for example is not updated when selecting a different payment method.

The easiest way to complete opt-out of the Stripe minimum charge amounts is by adding this filter:

\add_filter( 'mepr_minimum_charge_amounts', '__return_empty_array' );

Internal Help Scout ticket: https://secure.helpscout.net/conversation/2392565894/26308

Originally posted by @rvdsteege in pronamic/wp-pronamic-pay-memberpress#16

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

No branches or pull requests

1 participant