forked from paypal/paypal-checkout-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
__sdk__.js
70 lines (65 loc) · 1.49 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
/* @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.MAXIMA,
FUNDING.MERCADOPAGO,
FUNDING.CARD
];
const SMART_CARDS = [
CARD.VISA,
CARD.MASTERCARD,
CARD.AMEX,
CARD.DISCOVER,
CARD.HIPER,
CARD.ELO,
CARD.JCB
];
module.exports = {
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
},
fields: {
entry: './src/interface/fields',
globals,
fundingSources: SMART_FUNDING_SOURCES,
cards: SMART_CARDS
}
};