forked from paypal/paypal-checkout-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
__sdk__.js
99 lines (94 loc) · 2 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
90
91
92
93
94
95
96
97
98
99
/* @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.WECHATPAY,
FUNDING.PAYU,
FUNDING.TRUSTLY,
FUNDING.OXXO,
FUNDING.BOLETO,
FUNDING.BOLETOBANCARIO,
FUNDING.MULTIBANCO,
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 = {
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,
},
// in process of being renamed to fastlane
connect: {
entry: "./src/connect/interface",
},
fastlane: {
entry: "./src/connect/interface",
},
// @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,
},
"hosted-buttons": {
entry: "./src/interface/hosted-buttons",
globals,
},
"shopper-insights": {
entry: "./src/shopper-insights/interface",
},
"three-domain-secure": {
entry: "./src/three-domain-secure/interface",
},
};