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) {
|
||||
this.set("paymentError", paymentIntent.error);
|
||||
} else {
|
||||
this.paymentSuccessHandler();
|
||||
this.paymentSuccessHandler(paymentIntent.id);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -12,8 +12,8 @@ export default Ember.Controller.extend({
|
|||
});
|
||||
},
|
||||
|
||||
paymentSuccessHandler() {
|
||||
DiscourseURL.redirectTo("patrons/thanks");
|
||||
paymentSuccessHandler(paymentIntentId) {
|
||||
DiscourseURL.redirectTo(`patrons/${paymentIntentId}`);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue