refactored checkout workflow with stripe
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user