1
0
mirror of synced 2026-08-05 22:56:55 +00:00

Working checkout_controller.rb that charges Stripe

* Add billing address setting
This commit is contained in:
Chris Beach
2017-10-19 23:50:21 +01:00
parent 20a38095dd
commit d563cd1ddd
7 changed files with 117 additions and 36 deletions
+1
View File
@@ -7,6 +7,7 @@ en:
discourse_donations_shop_name: "Stripe Shop Name"
discourse_donations_currency: "Currency Code"
discourse_donations_hide_zip_code: "Hide Zip Code"
discourse_donations_billing_address: "Collect billing address"
discourse_donations_reward_badge_name: "Grant this badge to user when a payment is successful"
discourse_donations_reward_group_name: "Add the user to this group when a payment is successful"
en:
+2 -1
View File
@@ -1,5 +1,6 @@
DiscourseDonations::Engine.routes.draw do
resources :charges, only: [:create, :checkout]
resources :charges, only: [:create]
resources :checkout, only: [:create]
get 'users/:username/payments' => 'payments#show'
get 'donate' => 'payments#show'
end
+3
View File
@@ -23,6 +23,9 @@ plugins:
discourse_donations_hide_zip_code:
default: true
client: true
discourse_donations_billing_address:
default: true
client: true
discourse_donations_reward_badge_name:
client: false
default: 'Donation'