refactored checkout workflow with stripe

This commit is contained in:
2021-01-11 21:16:42 +01:00
parent 2df6e53aa0
commit 02c983e7e0
48 changed files with 1154 additions and 177 deletions

View File

@@ -31,7 +31,7 @@
:styles="{width:'500px', height:'300px'}"
>
<section id="pricing-modal-login-register">
<h2>{{ $t("materio.Please login or create a new account before ordering") }}</h2>
<h2>{{ $t("materio.Please login or create a new account to order your access") }}</h2>
<LoginRegister
:callbackargs="showLoginModal"
@onLogedIn="onLogedIn"
@@ -150,7 +150,7 @@ export default {
// redirect to /cart
// window.location.href = "/cart"
// TODO: redirect to checkout instead of cart
window.location.href = `/checkout/${data[0].order_id.target_id}/order_information`
window.location.href = `/checkout/${data[0].order_id}/order_information`
})
.catch(( error ) => {
console.warn('Issue with product add to cart', error)