mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 11:14:06 +00:00
(update TicketCheckout component)
This commit is contained in:
@@ -88,23 +88,17 @@
|
||||
})
|
||||
},
|
||||
purchaseTickets(token) {
|
||||
console.log({
|
||||
this.processing = true
|
||||
|
||||
axios.post(`/concerts/${this.concertId}/orders`, {
|
||||
email: token.email,
|
||||
quantity: this.quantity,
|
||||
ticket_quantity: this.quantity,
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user