16 lines
314 B
Plaintext
16 lines
314 B
Plaintext
|
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;
|