mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-26 01:33:22 +00:00
Add some logic to check for a connected Stripe Account in form
This commit is contained in:
committed by
Rob Harrington
parent
8bdf57d0d9
commit
b6292e2723
@@ -1,6 +1,7 @@
|
||||
-# if @enterprise.has_stripe_connection?
|
||||
-# Display Stripe account details
|
||||
-# else
|
||||
|
||||
%a.stripe-connect{href: 'stripe_connect'}
|
||||
- if stripe_account = @enterprise.stripe_account
|
||||
= t :stripe_account_connected
|
||||
= stripe_account.inspect
|
||||
.span (Link to disconnect Stripe Acct)
|
||||
- else
|
||||
%a.stripe-connect{href: 'stripe_connect'}
|
||||
.span= t :connect_with_stripe
|
||||
|
||||
@@ -72,6 +72,7 @@ Openfoodnetwork::Application.routes.draw do
|
||||
post :search
|
||||
get :check_permalink
|
||||
end
|
||||
|
||||
|
||||
member do
|
||||
get :shop
|
||||
@@ -102,6 +103,7 @@ Openfoodnetwork::Application.routes.draw do
|
||||
|
||||
get "/stripe_connect", to: "enterprises#stripe_connect"
|
||||
|
||||
|
||||
member do
|
||||
get :welcome
|
||||
put :register
|
||||
|
||||
Reference in New Issue
Block a user