discourse-subscriptions/assets/javascripts/discourse/models/payment.js.es6

16 lines
314 B
Plaintext
Raw Normal View History

import { ajax } from "discourse/lib/ajax";
const Payment = Discourse.Model.extend({
save() {
const data = {
payment_method: this.payment_method,
amount: this.amount,
currency: this.currency
};
return ajax("/s/payments", { method: "post", data });
}
});
export default Payment;