Enable checkout route
This commit is contained in:
@@ -31,7 +31,7 @@ function displayErrors(state, errors) {
|
||||
|
||||
function insertCheckout(state, tagInfo, content, siteSettings) {
|
||||
let token = state.push('stripe-checkout-form-open', 'form', 1);
|
||||
token.attrs = [['method', 'POST'], ['action', '/charges']];
|
||||
token.attrs = [['method', 'POST'], ['action', '/checkout']];
|
||||
|
||||
token = state.push('stripe-checkout-form-amount', 'input', 0);
|
||||
token.attrs = [['type', 'hidden'], ['name', 'amount'], ['value', tagInfo.attrs['amount']]];
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
DiscourseDonations::Engine.routes.draw do
|
||||
resources :charges, only: [:create]
|
||||
resources :charges, only: [:create, :checkout]
|
||||
get 'users/:username/payments' => 'payments#show'
|
||||
get 'donate' => 'payments#show'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user