You are here

public function Checkout::defaultConfiguration in Commerce PayPal 8

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides PaymentGatewayBase::defaultConfiguration

File

src/Plugin/Commerce/PaymentGateway/Checkout.php, line 94

Class

Checkout
Provides the PayPal Checkout payment gateway.

Namespace

Drupal\commerce_paypal\Plugin\Commerce\PaymentGateway

Code

public function defaultConfiguration() {
  return [
    'payment_solution' => 'smart_payment_buttons',
    'client_id' => '',
    'secret' => '',
    'intent' => 'capture',
    'disable_funding' => [],
    'disable_card' => [],
    'shipping_preference' => 'get_from_file',
    'update_billing_profile' => TRUE,
    'update_shipping_profile' => TRUE,
    'style' => [],
    'enable_on_cart' => TRUE,
    'collect_billing_information' => FALSE,
  ] + parent::defaultConfiguration();
}