redirect to show page with payment id

This commit is contained in:
Rimian Perkins 2019-09-14 18:31:11 +10:00
parent b77c211a71
commit 5d94ed8974
2 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ export default Ember.Component.extend({
if (paymentIntent.error) {
this.set("paymentError", paymentIntent.error);
} else {
this.paymentSuccessHandler();
this.paymentSuccessHandler(paymentIntent.id);
}
});
}

View File

@ -12,8 +12,8 @@ export default Ember.Controller.extend({
});
},
paymentSuccessHandler() {
DiscourseURL.redirectTo("patrons/thanks");
paymentSuccessHandler(paymentIntentId) {
DiscourseURL.redirectTo(`patrons/${paymentIntentId}`);
}
}
});