summaryrefslogtreecommitdiffstats
path: root/dom/payments/test/DefaultData.js
diff options
context:
space:
mode:
Diffstat (limited to 'dom/payments/test/DefaultData.js')
-rw-r--r--dom/payments/test/DefaultData.js59
1 files changed, 59 insertions, 0 deletions
diff --git a/dom/payments/test/DefaultData.js b/dom/payments/test/DefaultData.js
new file mode 100644
index 0000000000..13723b5799
--- /dev/null
+++ b/dom/payments/test/DefaultData.js
@@ -0,0 +1,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",
+};