Remove Stripe v2

This commit is contained in:
Kimmo Puputti 2018-03-26 15:04:18 +03:00
parent 4a620ef2ff
commit 37b8e90090
2 changed files with 0 additions and 14 deletions

View file

@ -149,12 +149,7 @@
use the API:
https://stripe.com/docs/stripe.js#including-stripejs
We need both v2 and v3. v2 is used for creating the bank
account token for providers, and v3 is used for getting
the payment token using Stripe elements.
-->
<script src="https://js.stripe.com/v2/"></script>
<script src="https://js.stripe.com/v3/"></script>
<!--!preloadedStateScript-->
<!--!script-->

View file

@ -46,14 +46,6 @@ const render = store => {
});
};
const setupStripe = () => {
if (typeof window.Stripe === 'undefined') {
throw new Error('Stripe library not loaded');
}
// https://stripe.com/docs/stripe.js#setting-publishable-key
window.Stripe.setPublishableKey(config.stripe.publishableKey);
};
const setupAnalyticsHandlers = () => {
let handlers = [];
@ -94,7 +86,6 @@ if (typeof window !== 'undefined') {
const analyticsHandlers = setupAnalyticsHandlers();
const store = configureStore(initialState, sdk, analyticsHandlers);
setupStripe();
require('./util/polyfills');
render(store);