You are here

private function PayPalBasic::setPaymentId in PayPal for Payment 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Payment/Method/PayPalBasic.php \Drupal\paypal_payment\Plugin\Payment\Method\PayPalBasic::setPaymentId()

Parameters

$paymentId:

Throws

\Drupal\Core\Entity\EntityStorageException

1 call to PayPalBasic::setPaymentId()
PayPalBasic::doExecutePayment in src/Plugin/Payment/Method/PayPalBasic.php
Performs the actual payment execution.

File

src/Plugin/Payment/Method/PayPalBasic.php, line 57

Class

PayPalBasic
Abstract class for PayPal payment methods.

Namespace

Drupal\paypal_payment\Plugin\Payment\Method

Code

private function setPaymentId($paymentId) {
  $this->configuration['paymentID'] = $paymentId;
  $this
    ->getPayment()
    ->save();
}