blob: a8dd752f91a6d3b460f891107483b1fc0ff4bd70 [file] [log] [blame]
swissChilif0cbdc32023-01-05 17:21:38 -05001<?php
2if ( ! defined( 'ABSPATH' ) ) {
3 exit;
4}
5
6/**
7 * SEPA Payment Method class extending UPE base class
8 */
9class WC_Stripe_UPE_Payment_Method_Sepa extends WC_Stripe_UPE_Payment_Method {
10
11 const STRIPE_ID = 'sepa_debit';
12
13 const LPM_GATEWAY_CLASS = WC_Gateway_Stripe_Sepa::class;
14
15 /**
16 * Constructor for SEPA payment method
17 *
18 * @param WC_Payments_Token_Service $token_service Token class instance.
19 */
20 public function __construct() {
21 parent::__construct();
22 $this->stripe_id = self::STRIPE_ID;
23 $this->title = __( 'Pay with SEPA Direct Debit', 'woocommerce-gateway-stripe' );
24 $this->is_reusable = true;
25 $this->supported_currencies = [ 'EUR' ];
26 $this->label = __( 'SEPA Direct Debit', 'woocommerce-gateway-stripe' );
27 $this->description = __(
28 'Reach 500 million customers and over 20 million businesses across the European Union.',
29 'woocommerce-gateway-stripe'
30 );
31 }
32
33 /**
34 * Returns string representing payment method type
35 * to query to retrieve saved payment methods from Stripe.
36 */
37 public function get_retrievable_type() {
38 return $this->get_id();
39 }
40}