Evolution request #2 : Add a filter on the method
-
Hi,
Evolution request.
Is it possible to add a filter on the “get_product_price” method of the “\Stripe\PaymentHelpers” class?
$price_search_args = apply_filters('ppress_stripe_search_price_args', $price_search_args, $subscription, $plan);
<?php /** * @param SubscriptionEntity $subscription * * @return mixed * * @throws \Exception */ public static function get_product_price($subscription, $statement_descriptor) { ? ? ... ? ? $price_search_args = [ ? ? ? ? 'product' => $stripe_product_id, ? ? ? ? 'type' ? ?=> $is_recurring ? 'recurring' : 'one_time', ? ? ]; ? ? if ($is_recurring) { ? ? ? ? $price_search_args['recurring'] = array('interval' => $period); ? ? } ? ? $price_search_args = apply_filters('ppress_stripe_search_price_args', $price_search_args, $subscription, $plan); ? ? $stripe_prices = APIClass::stripeClient()->prices->all($price_search_args)->toArray(); ? ? ... }
THANKS.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Evolution request #2 : Add a filter on the method’ is closed to new replies.