add settings

This commit is contained in:
Rimian Perkins 2019-09-11 22:06:01 +10:00
parent df1d5a3181
commit 381315f9f3
2 changed files with 21 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import { ajax } from "discourse/lib/ajax";
export default Ember.Controller.extend({
actions: {
stripePaymentHandler(paymentMethodId, amount) {
return ajax("/patrons", {
return ajax("/patrons/patrons", {
data: { paymentMethodId, amount },
method: "post"
}).catch(() => {

View File

@ -1,3 +1,23 @@
plugins:
discourse_patrons_enabled:
default: false
discourse_patrons_secret_key:
default: ''
client: false
discourse_patrons_public_key:
default: ''
client: true
discourse_patrons_description:
client: true
default: ''
discourse_patrons_currency:
client: true
default: "USD"
type: enum
choices:
- AUD
- CAD
- EUR
- JPY
- GBP
- USD