mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 06:47:17 +10:00
Remove Stripe v2
This commit is contained in:
parent
4a620ef2ff
commit
37b8e90090
2 changed files with 0 additions and 14 deletions
|
|
@ -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-->
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue