add settings
This commit is contained in:
parent
df1d5a3181
commit
381315f9f3
|
@ -3,7 +3,7 @@ import { ajax } from "discourse/lib/ajax";
|
||||||
export default Ember.Controller.extend({
|
export default Ember.Controller.extend({
|
||||||
actions: {
|
actions: {
|
||||||
stripePaymentHandler(paymentMethodId, amount) {
|
stripePaymentHandler(paymentMethodId, amount) {
|
||||||
return ajax("/patrons", {
|
return ajax("/patrons/patrons", {
|
||||||
data: { paymentMethodId, amount },
|
data: { paymentMethodId, amount },
|
||||||
method: "post"
|
method: "post"
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
|
|
@ -1,3 +1,23 @@
|
||||||
plugins:
|
plugins:
|
||||||
discourse_patrons_enabled:
|
discourse_patrons_enabled:
|
||||||
default: false
|
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
|
||||||
|
|
Loading…
Reference in New Issue