forked from paypal/paypal-checkout-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
__sdk__.js
89 lines (84 loc) · 2.03 KB
/
__sdk__.js
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
81
82
83
84
85
86
87
88
89
/* @flow */
/* eslint unicorn/filename-case: 0, import/unambiguous: 0, import/no-commonjs: 0 */
const { FUNDING, CARD } = require('@paypal/sdk-constants');
const globals = require('./globals');
const SMART_FUNDING_SOURCES = [
FUNDING.PAYPAL,
FUNDING.VENMO,
FUNDING.ITAU,
FUNDING.CREDIT,
FUNDING.PAYLATER,
FUNDING.APPLEPAY,
FUNDING.IDEAL,
FUNDING.SEPA,
FUNDING.BANCONTACT,
FUNDING.GIROPAY,
FUNDING.EPS,
FUNDING.SOFORT,
FUNDING.MYBANK,
FUNDING.BLIK,
FUNDING.P24,
FUNDING.ZIMPLER,
FUNDING.WECHATPAY,
FUNDING.PAYU,
FUNDING.VERKKOPANKKI,
FUNDING.TRUSTLY,
FUNDING.OXXO,
FUNDING.BOLETO,
FUNDING.BOLETOBANCARIO,
FUNDING.MULTIBANCO,
FUNDING.MAXIMA,
FUNDING.MERCADOPAGO,
FUNDING.SATISPAY,
FUNDING.PAIDY,
FUNDING.CARD
];
const SMART_CARDS = [
CARD.VISA,
CARD.MASTERCARD,
CARD.AMEX,
CARD.DISCOVER,
CARD.HIPER,
CARD.ELO,
CARD.JCB
];
module.exports = {
'actions': {
automatic: true,
entry: './src/interface/actions',
},
'buttons': {
entry: './src/interface/button',
setupHandler: 'setupButtons',
globals,
fundingSources: SMART_FUNDING_SOURCES,
cards: SMART_CARDS
},
'marks': {
entry: './src/interface/marks',
globals,
fundingSources: SMART_FUNDING_SOURCES,
cards: SMART_CARDS
},
'wallet': {
entry: './src/interface/wallet',
globals
},
// @deprecated - renamed to payment-fields to be removed
'fields': {
entry: './src/interface/fields',
globals,
fundingSources: SMART_FUNDING_SOURCES,
cards: SMART_CARDS
},
'payment-fields': {
entry: './src/interface/payment-fields',
globals,
fundingSources: SMART_FUNDING_SOURCES,
cards: SMART_CARDS
},
'card-fields': {
entry: './src/interface/card-fields',
globals
}
};