Files
shuffle_and_skirmish_website/wp-content/plugins/woocommerce-payments/includes/payment-methods/class-ideal-payment-method.php
2025-11-24 21:33:55 +00:00

60 lines
1.5 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Class Ideal_Payment_Method
*
* @package WCPay\Payment_Methods
*/
namespace WCPay\Payment_Methods;
use WC_Payments_Token_Service;
use WCPay\Constants\Country_Code;
use WCPay\Constants\Currency_Code;
/**
* IDEAL Payment Method class extending UPE base class
*/
class Ideal_Payment_Method extends UPE_Payment_Method {
const PAYMENT_METHOD_STRIPE_ID = 'ideal';
/**
* Constructor for iDEAL payment method
*
* @param WC_Payments_Token_Service $token_service Token class instance.
*/
public function __construct( $token_service ) {
parent::__construct( $token_service );
$this->stripe_id = self::PAYMENT_METHOD_STRIPE_ID;
$this->title = 'iDEAL';
$this->is_reusable = false;
$this->currencies = [ Currency_Code::EURO ];
$this->icon_url = plugins_url( 'assets/images/payment-methods/ideal.svg', WCPAY_PLUGIN_FILE );
$this->countries = [ Country_Code::NETHERLANDS ];
}
/**
* Returns testing credentials to be printed at checkout in test mode.
*
* @param string $account_country The country of the account.
* @return string
*/
public function get_testing_instructions( string $account_country ) {
return '';
}
/**
* Returns payment method description for the settings page.
*
* @param string|null $account_country Country of merchants account.
*
* @return string
*/
public function get_description( ?string $account_country = null ) {
return __(
'Expand your business with iDEAL — Netherlandss most popular payment method.',
'woocommerce-payments'
);
}
}