public function Check::defaultConfiguration in Ubercart 8.4
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides PaymentMethodPluginBase::defaultConfiguration
File
- payment/
uc_payment_pack/ src/ Plugin/ Ubercart/ PaymentMethod/ Check.php, line 25
Class
- Check
- Defines the check payment method.
Namespace
Drupal\uc_payment_pack\Plugin\Ubercart\PaymentMethodCode
public function defaultConfiguration() {
$config = \Drupal::config('uc_store.settings');
return [
'policy' => $this
->t('Personal and business checks will be held for up to 10 business days to ensure payment clears before an order is shipped.'),
'name' => '',
'address' => $config
->get('address') + [
'company' => $config
->get('name'),
],
];
}