You are here

protected function Payflow::getParameters in Commerce PayPal 8

Merge default Payflow parameters in with the provided ones.

Parameters

array $parameters: The parameters for the transaction.

Return value

array The new parameters.

1 call to Payflow::getParameters()
Payflow::prepareBody in src/Plugin/Commerce/PaymentGateway/Payflow.php
Prepares the request body to name/value pairs.

File

src/Plugin/Commerce/PaymentGateway/Payflow.php, line 195

Class

Payflow
Provides the PayPal Payflow payment gateway.

Namespace

Drupal\commerce_paypal\Plugin\Commerce\PaymentGateway

Code

protected function getParameters(array $parameters = []) {
  $defaultParameters = [
    'tender' => 'C',
    'partner' => $this
      ->getPartner(),
    'vendor' => $this
      ->getVendor(),
    'user' => $this
      ->getUser(),
    'pwd' => $this
      ->getPassword(),
  ];
  return $parameters + $defaultParameters;
}