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({
|
||||
actions: {
|
||||
stripePaymentHandler(paymentMethodId, amount) {
|
||||
return ajax("/patrons", {
|
||||
return ajax("/patrons/patrons", {
|
||||
data: { paymentMethodId, amount },
|
||||
method: "post"
|
||||
}).catch(() => {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue