1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
<?php
defined( 'ABSPATH' ) || exit();
if ( ! class_exists( 'WC_Braintree_Local_Payment_Gateway' ) ) {
return;
}
class WC_Braintree_Sofort_Payment_Gateway extends WC_Braintree_Local_Payment_Gateway {
public function __construct() {
$this->countries = array( 'AT', 'BE', 'DE', 'ES', 'IT', 'NL' );
$this->currencies = array( 'EUR' );
$this->id = 'braintree_sofort';
$this->default_title = $this->order_button_text = __( 'SOFORT', 'woo-payment-gateway' );
$this->method_title = __( 'Braintree SOFORT Gateway', 'woo-payment-gateway' );
$this->tab_title = __( 'SOFORT', 'woo-payment-gateway' );
$this->method_description = __( 'SOFORT gateway that integrates with your Braintree account', 'woo-payment-gateway' );
$this->icon = braintree()->assets_path() . 'img/payment-methods/sofort.svg';
parent::__construct();
}
}