fix snake case

This commit is contained in:
Rimian Perkins
2019-09-13 13:46:32 +10:00
parent 68b4d07a94
commit 404bede398
8 changed files with 32 additions and 14 deletions
@@ -26,13 +26,19 @@ export default Ember.Component.extend({
this.set("confirmation", false);
},
handleConfirmStripeCard(paymentMethod) {
handleConfirmStripeCard(paymentMethod, receiptEmail) {
this.set("receiptEmail", receiptEmail);
this.set("confirmation", paymentMethod);
},
confirmStripeCard() {
const paymentMethodId = this.confirmation.id;
this.stripePaymentHandler(paymentMethodId, this.amount).then(
const data = {
paymentMethodId: this.confirmation.id,
amount: this.amount,
receiptEmail: this.receiptEmail
};
this.stripePaymentHandler(data).then(
paymentIntent => {
if (paymentIntent.error) {
this.set("paymentError", paymentIntent.error);
@@ -62,7 +62,10 @@ export default Ember.Component.extend({
if (result.error) {
this.set("cardError", result.error.message);
} else {
this.handleConfirmStripeCard(result.paymentMethod);
this.handleConfirmStripeCard(
result.paymentMethod,
this.get("billing.email")
);
}
},
() => {