1
0
mirror of synced 2026-08-04 06:06:55 +00:00

Enable checkout route

This commit is contained in:
Chris Beach
2017-10-17 12:42:10 +01:00
parent 05a2629f8c
commit 20a38095dd
2 changed files with 2 additions and 2 deletions
@@ -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
View File
@@ -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