You are here

public function Subscription::setPaymentMethodId in Commerce Recurring Framework 8

Sets the payment method ID.

Parameters

int $payment_method_id: The payment method ID.

Return value

$this

Overrides SubscriptionInterface::setPaymentMethodId

File

src/Entity/Subscription.php, line 192

Class

Subscription
Defines the subscription entity.

Namespace

Drupal\commerce_recurring\Entity

Code

public function setPaymentMethodId($payment_method_id) {
  $this
    ->set('payment_method', $payment_method_id);
  return $this;
}