public function SubscriptionInterface::setPaymentMethod in Commerce Recurring Framework 8
Sets the payment method.
Parameters
\Drupal\commerce_payment\Entity\PaymentMethodInterface $payment_method: The payment method.
Return value
$this
1 method overrides SubscriptionInterface::setPaymentMethod()
- Subscription::setPaymentMethod in src/
Entity/ Subscription.php - Sets the payment method.
File
- src/
Entity/ SubscriptionInterface.php, line 112
Class
- SubscriptionInterface
- Defines the interface for subscriptions.
Namespace
Drupal\commerce_recurring\EntityCode
public function setPaymentMethod(PaymentMethodInterface $payment_method);