зеркало из https://github.com/mozilla/gecko-dev.git
60 строки
1006 B
JavaScript
60 строки
1006 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",
|
|
};
|