From c98abd8e94bde7384496ea5907bb0a5749d95856 Mon Sep 17 00:00:00 2001 From: Vishal Date: Thu, 12 May 2022 14:10:03 +0530 Subject: [PATCH 1/2] Added standard as default value in stripe connect account type --- .../spree/admin/vendors_controller_decorator.rb | 5 +++-- .../admin/shared/_stripe_onboarding.html.erb | 11 +++++++++-- .../admin/vendors/stripe_account_type.html.erb | 15 +++++++++++++++ bin/rails | 2 +- config/routes.rb | 1 + ...hange_default_value_for_stripe_account_type.rb | 5 +++++ 6 files changed, 34 insertions(+), 5 deletions(-) create mode 100644 app/views/spree/admin/vendors/stripe_account_type.html.erb create mode 100644 db/migrate/20220512055755_change_default_value_for_stripe_account_type.rb diff --git a/app/controllers/spree_stripe_connect_onboarding/spree/admin/vendors_controller_decorator.rb b/app/controllers/spree_stripe_connect_onboarding/spree/admin/vendors_controller_decorator.rb index a83f851..d5b6f4b 100644 --- a/app/controllers/spree_stripe_connect_onboarding/spree/admin/vendors_controller_decorator.rb +++ b/app/controllers/spree_stripe_connect_onboarding/spree/admin/vendors_controller_decorator.rb @@ -14,8 +14,9 @@ def stripe_connect_url redirect_to redirect_callback_uri end - def account_information - end + def stripe_account_type; end + + def account_information; end private diff --git a/app/views/spree/admin/shared/_stripe_onboarding.html.erb b/app/views/spree/admin/shared/_stripe_onboarding.html.erb index 6bccbd9..9a5e2c5 100644 --- a/app/views/spree/admin/shared/_stripe_onboarding.html.erb +++ b/app/views/spree/admin/shared/_stripe_onboarding.html.erb @@ -1,13 +1,20 @@ <% content_for :sidebar do %>