wp-pay-gateways /
adyen
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Integration |
||
| 4 | * |
||
| 5 | * @author Pronamic <[email protected]> |
||
| 6 | * @copyright 2005-2019 Pronamic |
||
| 7 | * @license GPL-3.0-or-later |
||
| 8 | * @package Pronamic\WordPress\Pay\Gateways\Adyen |
||
| 9 | */ |
||
| 10 | |||
| 11 | namespace Pronamic\WordPress\Pay\Gateways\Adyen; |
||
| 12 | |||
| 13 | use Pronamic\WordPress\Pay\Gateways\Common\AbstractIntegration; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Integration |
||
| 17 | * |
||
| 18 | * @author Remco Tolsma |
||
| 19 | * @version 2.0.0 |
||
| 20 | * @since 1.0.0 |
||
| 21 | */ |
||
| 22 | class Integration extends AbstractIntegration { |
||
| 23 | 1 | public function __construct() { |
|
| 24 | 1 | $this->id = 'adyen'; |
|
| 25 | 1 | $this->name = 'Adyen'; |
|
| 26 | 1 | $this->url = 'https://www.adyen.com/'; |
|
| 27 | 1 | $this->dashboard_url = array( |
|
|
0 ignored issues
–
show
|
|||
| 28 | 1 | __( 'test', 'pronamic_ideal' ) => 'https://ca-test.adyen.com/ca/ca/login.shtml', |
|
| 29 | 1 | __( 'live', 'pronamic_ideal' ) => 'https://ca-live.adyen.com/ca/ca/login.shtml', |
|
| 30 | ); |
||
| 31 | 1 | $this->provider = 'adyen'; |
|
| 32 | 1 | } |
|
| 33 | |||
| 34 | /** |
||
| 35 | * Get config factory class. |
||
| 36 | * |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | 1 | public function get_config_factory_class() { |
|
| 40 | 1 | return __NAMESPACE__ . '\ConfigFactory'; |
|
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Get settings class. |
||
| 45 | * |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | public function get_settings_class() { |
||
| 49 | return __NAMESPACE__ . '\Settings'; |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Get required settings for this integration. |
||
| 54 | * |
||
| 55 | * @link https://github.com/wp-premium/gravityforms/blob/1.9.16/includes/fields/class-gf-field-multiselect.php#L21-L42 |
||
| 56 | * @since 1.1.6 |
||
| 57 | * @return array |
||
| 58 | */ |
||
| 59 | public function get_settings() { |
||
| 60 | $settings = parent::get_settings(); |
||
| 61 | |||
| 62 | $settings[] = 'adyen'; |
||
| 63 | |||
| 64 | return $settings; |
||
| 65 | } |
||
| 66 | } |
||
| 67 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..