public function SubscriptionTypeInterface::collectTrialCharges in Commerce Recurring Framework 8
Collects charges for a subscription's trial period.
Parameters
\Drupal\commerce_recurring\Entity\SubscriptionInterface $subscription: The subscription.
\Drupal\commerce_recurring\BillingPeriod $trial_period: The trial period.
Return value
\Drupal\commerce_recurring\Charge[] The charges.
1 method overrides SubscriptionTypeInterface::collectTrialCharges()
- SubscriptionTypeBase::collectTrialCharges in src/
Plugin/ Commerce/ SubscriptionType/ SubscriptionTypeBase.php - Collects charges for a subscription's trial period.
File
- src/
Plugin/ Commerce/ SubscriptionType/ SubscriptionTypeInterface.php, line 51
Class
- SubscriptionTypeInterface
- Defines the interface for subscription types.
Namespace
Drupal\commerce_recurring\Plugin\Commerce\SubscriptionTypeCode
public function collectTrialCharges(SubscriptionInterface $subscription, BillingPeriod $trial_period);