Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…hips-pro into dev
  • Loading branch information
ideadude committed Mar 1, 2022
2 parents 93e3db5 + 89de0b3 commit 766fb22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classes/gateways/class.pmprogateway_stripe.php
Original file line number Diff line number Diff line change
Expand Up @@ -2309,6 +2309,7 @@ private function get_price_for_product( $product_id, $amount, $cycle_period = nu
'product' => $product_id,
'type' => $is_recurring ? 'recurring' : 'one_time',
'currency' => strtolower( $pmpro_currency ),
'limit' => 100,
);
if ( $is_recurring ) {
$price_search_args['recurring'] = array( 'interval' => $cycle_period );
Expand Down Expand Up @@ -3510,7 +3511,7 @@ public function clean_up( &$order ) {
*/
public static function get_application_fee_percentage() {
pmpro_method_should_be_private( '2.7.0' );
$application_fee_percentage = pmpro_license_isValid( null, 'plus' ) ? 0 : 1;
$application_fee_percentage = pmpro_license_isValid( null, pmpro_license_get_premium_types() ) ? 0 : 1;
$application_fee_percentage = apply_filters( 'pmpro_set_application_fee_percentage', $application_fee_percentage );
return round( floatval( $application_fee_percentage ), 2 );
}
Expand Down

0 comments on commit 766fb22

Please sign in to comment.