You are here

protected function Payflow::getApiUrl in Commerce PayPal 8

Returns the Api URL.

1 call to Payflow::getApiUrl()
Payflow::executeTransaction in src/Plugin/Commerce/PaymentGateway/Payflow.php
Post a transaction to the Payflow server and return the response.

File

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

Class

Payflow
Provides the PayPal Payflow payment gateway.

Namespace

Drupal\commerce_paypal\Plugin\Commerce\PaymentGateway

Code

protected function getApiUrl() {
  return $this
    ->getMode() == 'test' ? self::PAYPAL_API_TEST_URL : self::PAYPAL_API_URL;
}