WC_QuickPay_Sofort

The WooCommerce QuickPay WC QuickPay Sofort class.

Defined (1)

The class is defined in the following location(s).

/classes/instances/sofort.php  
  1. class WC_QuickPay_Sofort extends WC_QuickPay_Instance { 
  2.  
  3. public $main_settings = NULL; 
  4.  
  5. public function __construct() { 
  6. parent::__construct(); 
  7.  
  8. // Get gateway variables 
  9. $this->id = 'sofort'; 
  10.  
  11. $this->method_title = 'QuickPay - Sofort'; 
  12.  
  13. $this->setup(); 
  14.  
  15. $this->title = $this->s('title'); 
  16. $this->description = $this->s('description'); 
  17.  
  18. add_filter( 'woocommerce_quickpay_cardtypelock_sofort', array( $this, 'filter_cardtypelock' ) ); 
  19.  
  20.  
  21. /** 
  22. * init_form_fields function. 
  23. * Initiates the plugin settings form fields 
  24. * @access public 
  25. * @return array 
  26. */ 
  27. public function init_form_fields() 
  28. $this->form_fields = array( 
  29. 'enabled' => array( 
  30. 'title' => __( 'Enable', 'woo-quickpay' ),  
  31. 'type' => 'checkbox',  
  32. 'label' => __( 'Enable Sofort payment', 'woo-quickpay' ),  
  33. 'default' => 'no' 
  34. ),  
  35. '_Shop_setup' => array( 
  36. 'type' => 'title',  
  37. 'title' => __( 'Shop setup', 'woo-quickpay' ),  
  38. ),  
  39. 'title' => array( 
  40. 'title' => __( 'Title', 'woo-quickpay' ),  
  41. 'type' => 'text',  
  42. 'description' => __( 'This controls the title which the user sees during checkout.', 'woo-quickpay' ),  
  43. 'default' => __('Sofort', 'woo-quickpay') 
  44. ),  
  45. 'description' => array( 
  46. 'title' => __( 'Customer Message', 'woo-quickpay' ),  
  47. 'type' => 'textarea',  
  48. 'description' => __( 'This controls the description which the user sees during checkout.', 'woo-quickpay' ),  
  49. 'default' => __('Pay with your mobile phone', 'woo-quickpay') 
  50. ),  
  51. ); 
  52.  
  53.  
  54. /** 
  55. * filter_cardtypelock function. 
  56. * Sets the cardtypelock 
  57. * @access public 
  58. * @return string 
  59. */ 
  60. public function filter_cardtypelock( ) 
  61. return 'sofort';