wp-pay-gateways /
ems-e-commerce
| 1 | <?php |
||||||
| 2 | |||||||
| 3 | namespace Pronamic\WordPress\Pay\Gateways\EMS\ECommerce; |
||||||
| 4 | |||||||
| 5 | use Pronamic\WordPress\Pay\Gateways\Common\AbstractIntegration; |
||||||
| 6 | |||||||
| 7 | /** |
||||||
| 8 | * Title: EMS e-Commerce integration |
||||||
| 9 | * Description: |
||||||
| 10 | * Copyright: 2005-2019 Pronamic |
||||||
| 11 | * Company: Pronamic |
||||||
| 12 | * |
||||||
| 13 | * @author Reüel van der Steege |
||||||
| 14 | * @version 2.0.0 |
||||||
| 15 | * @since 1.0.0 |
||||||
| 16 | */ |
||||||
| 17 | class Integration extends AbstractIntegration { |
||||||
| 18 | public function __construct() { |
||||||
| 19 | $this->id = 'ems-ecommerce'; |
||||||
| 20 | $this->name = 'EMS e-Commerce'; |
||||||
| 21 | $this->product_url = ''; |
||||||
| 22 | $this->dashboard_url = array( |
||||||
| 23 | __( 'test', 'pronamic_ideal' ) => 'https://test.ipg-online.com/vt/login', |
||||||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||||||
| 24 | __( 'live', 'pronamic_ideal' ) => 'https://www.ipg-online.com/vt/login', |
||||||
| 25 | ); |
||||||
| 26 | $this->provider = 'ems'; |
||||||
| 27 | |||||||
| 28 | // Actions |
||||||
| 29 | $function = array( __NAMESPACE__ . '\Listener', 'listen' ); |
||||||
| 30 | |||||||
| 31 | if ( ! has_action( 'wp_loaded', $function ) ) { |
||||||
|
0 ignored issues
–
show
The function
has_action was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||
| 32 | add_action( 'wp_loaded', $function ); |
||||||
|
0 ignored issues
–
show
The function
add_action was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||
| 33 | } |
||||||
| 34 | } |
||||||
| 35 | |||||||
| 36 | public function get_config_factory_class() { |
||||||
| 37 | return __NAMESPACE__ . '\ConfigFactory'; |
||||||
| 38 | } |
||||||
| 39 | |||||||
| 40 | public function get_settings_class() { |
||||||
| 41 | return __NAMESPACE__ . '\Settings'; |
||||||
| 42 | } |
||||||
| 43 | |||||||
| 44 | /** |
||||||
| 45 | * Get required settings for this integration. |
||||||
| 46 | * |
||||||
| 47 | * @link https://github.com/wp-premium/gravityforms/blob/1.9.16/includes/fields/class-gf-field-multiselect.php#L21-L42 |
||||||
| 48 | * @since 1.0.0 |
||||||
| 49 | * @return array |
||||||
| 50 | */ |
||||||
| 51 | public function get_settings() { |
||||||
| 52 | $settings = parent::get_settings(); |
||||||
| 53 | |||||||
| 54 | $settings[] = 'ems_ecommerce'; |
||||||
| 55 | |||||||
| 56 | return $settings; |
||||||
| 57 | } |
||||||
| 58 | } |
||||||
| 59 |