remove subscribe index

This commit is contained in:
Rimian Perkins
2019-12-13 11:54:32 +11:00
parent 57fb508514
commit 4b334a69b5
24 changed files with 43 additions and 80 deletions
@@ -1,24 +1 @@
import { ajax } from "discourse/lib/ajax";
export default Ember.Controller.extend({
actions: {
stripePaymentHandler(data) {
return ajax("/s/patrons", {
data,
method: "post"
}).catch(() => {
return { error: "An error occured while submitting the form." };
});
},
paymentSuccessHandler(/* paymentIntentId */) {
bootbox.alert(
I18n.t("discourse_subscriptions.transactions.payment.success")
);
this.transitionToRoute(
"user.billing",
Discourse.User.current().username.toLowerCase()
);
}
}
});
export default Ember.Controller.extend({});