swissChili | f0cbdc3 | 2023-01-05 17:21:38 -0500 | [diff] [blame^] | 1 | <?php |
| 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | exit; |
| 4 | } |
| 5 | |
| 6 | /** |
| 7 | * The iDEAL Payment Method class extending UPE base class |
| 8 | */ |
| 9 | class WC_Stripe_UPE_Payment_Method_Ideal extends WC_Stripe_UPE_Payment_Method { |
| 10 | |
| 11 | const STRIPE_ID = 'ideal'; |
| 12 | |
| 13 | const LPM_GATEWAY_CLASS = WC_Gateway_Stripe_Ideal::class; |
| 14 | |
| 15 | /** |
| 16 | * Constructor for iDEAL payment method |
| 17 | */ |
| 18 | public function __construct() { |
| 19 | parent::__construct(); |
| 20 | $this->stripe_id = self::STRIPE_ID; |
| 21 | $this->title = __( 'Pay with iDEAL', 'woocommerce-gateway-stripe' ); |
| 22 | $this->is_reusable = true; |
| 23 | $this->supported_currencies = [ 'EUR' ]; |
| 24 | $this->label = __( 'iDEAL', 'woocommerce-gateway-stripe' ); |
| 25 | $this->description = __( |
| 26 | 'iDEAL is a Netherlands-based payment method that allows customers to complete transactions online using their bank credentials.', |
| 27 | 'woocommerce-gateway-stripe' |
| 28 | ); |
| 29 | } |
| 30 | } |