summaryrefslogtreecommitdiffstats
path: root/dom/payments/test/DefaultData.js
blob: 13723b5799ac511359725a8db419342376a31db3 (plain)
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
// testing data declation
const defaultMethods = [
  {
    supportedMethods: "basic-card",
    data: {
      supportedNetworks: [
        "unionpay",
        "visa",
        "mastercard",
        "amex",
        "discover",
        "diners",
        "jcb",
        "mir",
      ],
    },
  },
  {
    supportedMethods: "testing-payment-method",
  },
];

const defaultDetails = {
  total: {
    label: "Total",
    amount: {
      currency: "USD",
      value: "1.00",
    },
  },
  shippingOptions: [
    {
      id: "NormalShipping",
      label: "NormalShipping",
      amount: {
        currency: "USD",
        value: "10.00",
      },
      selected: false,
    },
    {
      id: "FastShipping",
      label: "FastShipping",
      amount: {
        currency: "USD",
        value: "5.00",
      },
      selected: false,
    },
  ],
};

const defaultOptions = {
  requestPayerName: true,
  requestPayerEmail: false,
  requestPayerPhone: false,
  requestShipping: true,
  shippingType: "shipping",
};