tonder-web-sdk 1.7.0 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/index-dev.js CHANGED
@@ -90,10 +90,10 @@ const checkoutData = {
90
90
  },
91
91
  ]
92
92
  },
93
- card: { "skyflow_id": "53ca875c-16fd-4395-8ac9-c756613dbaf9" },
94
- metadata: {
95
- order_id: 123456
96
- }
93
+ // card: { "skyflow_id": "53ca875c-16fd-4395-8ac9-c756613dbaf9" },
94
+ // metadata: {
95
+ // order_id: 123456
96
+ // }
97
97
  };
98
98
 
99
99
  // localhost
@@ -110,7 +110,7 @@ const inlineCheckout = new InlineCheckout({
110
110
  successUrl,
111
111
  styles: customStyles
112
112
  });
113
-
113
+ inlineCheckout.setCustomerEmail(checkoutData.customer.email)
114
114
  inlineCheckout.injectCheckout();
115
115
 
116
116
  document.addEventListener('DOMContentLoaded', function() {