You are here

public function MolliePayment::getMollieClient in Mollie Payment 8.2

Get the Mollie API Client to use.

2 calls to MolliePayment::getMollieClient()
MolliePayment::doExecutePayment in src/Plugin/Payment/Method/MolliePayment.php
Performs the actual payment execution.
MolliePayment::getPaymentExecutionResult in src/Plugin/Payment/Method/MolliePayment.php
Gets the payment execution status.

File

src/Plugin/Payment/Method/MolliePayment.php, line 155

Class

MolliePayment
A payment method using Mollie.

Namespace

Drupal\mollie_payment\Plugin\Payment\Method

Code

public function getMollieClient() {
  $profile_id = $this->pluginDefinition['profile'];
  $profile = MollieProfile::load($profile_id);
  return $profile
    ->getMollieClient();
}