redirect to show page with payment id
This commit is contained in:
parent
b77c211a71
commit
5d94ed8974
|
@ -42,7 +42,7 @@ export default Ember.Component.extend({
|
||||||
if (paymentIntent.error) {
|
if (paymentIntent.error) {
|
||||||
this.set("paymentError", paymentIntent.error);
|
this.set("paymentError", paymentIntent.error);
|
||||||
} else {
|
} else {
|
||||||
this.paymentSuccessHandler();
|
this.paymentSuccessHandler(paymentIntent.id);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,8 +12,8 @@ export default Ember.Controller.extend({
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
paymentSuccessHandler() {
|
paymentSuccessHandler(paymentIntentId) {
|
||||||
DiscourseURL.redirectTo("patrons/thanks");
|
DiscourseURL.redirectTo(`patrons/${paymentIntentId}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue