-
Notifications
You must be signed in to change notification settings - Fork 210
/
Copy pathclass-wc-stripe-payment-methods.php
80 lines (73 loc) · 2.06 KB
/
class-wc-stripe-payment-methods.php
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
/**
* Class WC_Stripe_Payment_Methods
*/
class WC_Stripe_Payment_Methods {
const ACH = 'us_bank_account';
const ACSS_DEBIT = 'acss_debit';
const AFFIRM = 'affirm';
const AFTERPAY_CLEARPAY = 'afterpay_clearpay';
const ALIPAY = 'alipay';
const AMAZON_PAY = 'amazon_pay';
const BACS_DEBIT = 'bacs_debit';
const BANCONTACT = 'bancontact';
const BOLETO = 'boleto';
const CARD = 'card';
const CARD_PRESENT = 'card_present';
const CASHAPP_PAY = 'cashapp';
const EPS = 'eps';
const GIROPAY = 'giropay';
const IDEAL = 'ideal';
const KLARNA = 'klarna';
const LINK = 'link';
const MULTIBANCO = 'multibanco';
const OXXO = 'oxxo';
const P24 = 'p24';
const SEPA = 'sepa';
const SEPA_DEBIT = 'sepa_debit';
const SOFORT = 'sofort';
const WECHAT_PAY = 'wechat_pay';
// Payment method labels
const BACS_DEBIT_LABEL = 'Bacs Direct Debit';
const GOOGLE_PAY_LABEL = 'Google Pay';
const APPLE_PAY_LABEL = 'Apple Pay';
const LINK_LABEL = 'Link';
const PAYMENT_REQUEST_LABEL = 'Payment Request';
/**
* Payment methods that are considered as voucher payment methods.
*
* @var array
*/
const VOUCHER_PAYMENT_METHODS = [
self::BOLETO,
self::MULTIBANCO,
self::OXXO,
];
/**
* Payment methods that are considered as BNPL (Buy Now, Pay Later) payment methods.
*
* @var array
*/
const BNPL_PAYMENT_METHODS = [
self::AFFIRM,
self::AFTERPAY_CLEARPAY,
self::KLARNA,
];
/**
* Payment methods that are considered as wallet payment methods.
*
* @var array
*/
const WALLET_PAYMENT_METHODS = [
self::CASHAPP_PAY,
self::WECHAT_PAY,
];
/**
* List of express payment methods labels. Amazon Pay and Link are not included,
* as they have their own payment method classes.
*/
const EXPRESS_METHODS_LABELS = [
'google_pay' => self::GOOGLE_PAY_LABEL,
'apple_pay' => self::APPLE_PAY_LABEL,
];
}