public function WorldpayRedirect::defaultConfiguration in Commerce Worldpay 8.2
Same name and namespace in other branches
- 8 src/Plugin/Commerce/PaymentGateway/WorldpayRedirect.php \Drupal\commerce_worldpay\Plugin\Commerce\PaymentGateway\WorldpayRedirect::defaultConfiguration()
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides PaymentGatewayBase::defaultConfiguration
File
- src/
Plugin/ Commerce/ PaymentGateway/ WorldpayRedirect.php, line 129
Class
- WorldpayRedirect
- Provides the Worldpay Redirect payment gateway.
Namespace
Drupal\commerce_worldpay\Plugin\Commerce\PaymentGatewayCode
public function defaultConfiguration() {
return [
'installation_id' => '',
'txn_mode' => C_WORLDPAY_BG_DEF_SERVER_TEST,
'txn_type' => '',
'debug' => 'log',
'confirmed_setup' => FALSE,
'site_id' => '',
'payment_parameters' => [
'test_mode' => '',
'test_result' => 'AUTHORISED',
],
'payment_security' => [
'use_password' => FALSE,
'password' => '',
'md5_salt' => '',
],
'payment_urls' => [
'live' => C_WORLDPAY_BG_DEF_SERVER_LIVE,
'test' => C_WORLDPAY_BG_DEF_SERVER_TEST,
'use_ssl' => FALSE,
'force_non_ssl_links' => FALSE,
],
] + parent::defaultConfiguration();
}