load model

This commit is contained in:
Rimian Perkins
2019-09-13 13:52:41 +10:00
parent 404bede398
commit 4287e8aa5d
2 changed files with 14 additions and 12 deletions
@@ -38,15 +38,13 @@ export default Ember.Component.extend({
receiptEmail: this.receiptEmail
};
this.stripePaymentHandler(data).then(
paymentIntent => {
if (paymentIntent.error) {
this.set("paymentError", paymentIntent.error);
} else {
this.paymentSuccessHandler();
}
this.stripePaymentHandler(data).then(paymentIntent => {
if (paymentIntent.error) {
this.set("paymentError", paymentIntent.error);
} else {
this.paymentSuccessHandler();
}
);
});
}
}
});