fune/dom/payments/test/DefaultData.js
Victor Porof 0a8ff0ad85 Bug 1561435 - Format dom/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35951

--HG--
extra : source : 62f3501af4bc1c0bd1ee1977a28aee04706a6663
2019-07-05 10:44:55 +02:00

59 lines
1,006 B
JavaScript

// 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",
};