1
0
mirror of synced 2026-08-04 14:16:55 +00:00

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
@@ -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}`);
}
}
});