mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-15 02:53:23 +00:00
(update TicketCheckout component)
This commit is contained in:
@@ -88,23 +88,17 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
purchaseTickets(token) {
|
purchaseTickets(token) {
|
||||||
console.log({
|
this.processing = true
|
||||||
|
|
||||||
|
axios.post(`/concerts/${this.concertId}/orders`, {
|
||||||
email: token.email,
|
email: token.email,
|
||||||
quantity: this.quantity,
|
ticket_quantity: this.quantity,
|
||||||
payment_token: token.id,
|
payment_token: token.id,
|
||||||
|
}).then(response => {
|
||||||
|
console.log("Charge succeeded")
|
||||||
|
}).catch(response => {
|
||||||
|
this.processing = false
|
||||||
})
|
})
|
||||||
|
|
||||||
// this.processing = true
|
|
||||||
|
|
||||||
// axios.post(`/concerts/${this.concertId}/orders`, {
|
|
||||||
// email: token.email,
|
|
||||||
// quantity: this.quantity,
|
|
||||||
// payment_token: token.id,
|
|
||||||
// }).then(response => {
|
|
||||||
// window.location.href = response.body.url
|
|
||||||
// }).catch(response => {
|
|
||||||
// this.processing = false
|
|
||||||
// })
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|||||||
Reference in New Issue
Block a user