You are here

public function AcceptJs::getCcaOrgUnitId in Commerce Authorize.Net 8

Get the CCA API Identifier.

Return value

string The CCA API Identifier.

File

src/Plugin/Commerce/PaymentGateway/AcceptJs.php, line 174

Class

AcceptJs
Provides the Accept.js payment gateway.

Namespace

Drupal\commerce_authnet\Plugin\Commerce\PaymentGateway

Code

public function getCcaOrgUnitId() {
  if ($this->configuration['cca_status']) {

    // Test Org Unit ID.
    // @see https://developer.cardinalcommerce.com/try-it-now.shtml
    if ($this->configuration['mode'] == 'test') {
      return '582be9deda52932a946c45c4';
    }
    else {
      return $this->configuration['cca_org_unit_id'];
    }
  }
}