class-payment-method.php
983 Bytes
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
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* Class Payment_Method
*
* @package WooCommerce\Payments
*/
namespace WCPay\Constants;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
use MyCLabs\Enum\Enum;
/**
* Possible enum values for the type of the PaymentMethod.
* https://stripe.com/docs/api/payment_methods/object#payment_method_object-type
*
* @psalm-immutable
*/
class Payment_Method extends Enum {
const BANCONTACT = 'bancontact';
const BECS = 'au_becs_debit';
const CARD = 'card';
const CARD_PRESENT = 'card_present';
const EPS = 'eps';
const GIROPAY = 'giropay';
const IDEAL = 'ideal';
const INTERAC_PRESENT = 'interac_present';
const LINK = 'link';
const P24 = 'p24';
const SEPA = 'sepa_debit';
const SOFORT = 'sofort';
const US_BANK_ACCOUNT = 'us_bank_account';
const IPP_ALLOWED_PAYMENT_METHODS = [
self::CARD_PRESENT,
self::INTERAC_PRESENT,
];
}