Skip to content

Commit

Permalink
Merge pull request #5505 from thomasbromehead/modify-spree-rb-tt-soli…
Browse files Browse the repository at this point in the history
…dus-stripe-instructions

Add caveat to spree.rb.tt stripe configuration instructions
  • Loading branch information
elia authored Dec 18, 2023
2 parents 3fe73ad + 00df613 commit 9b18f09
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@ Spree.config do |config|
# Custom logo for the admin
# config.admin_interface_logo = "logo/solidus.svg"

# Gateway credentials can be configured statically here and referenced from
# Payment gateway credentials can be configured statically here and referenced from
# the admin. They can also be fully configured from the admin.
#
# Please note that you need to use the solidus_stripe gem to have
# Stripe working: https://github.com/solidusio-contrib/solidus_stripe
# Please note that the example below requires the `solidus_stripe` ~> 5.0 gem
# in order to work properly (see https://github.com/solidusio-contrib/solidus_stripe).
#
# config.static_model_preferences.add(
# Spree::PaymentMethod::StripeCreditCard,
# 'stripe_env_credentials',
# secret_key: ENV['STRIPE_SECRET_KEY'],
# publishable_key: ENV['STRIPE_PUBLISHABLE_KEY'],
# server: Rails.env.production? ? 'production' : 'test',
# test_mode: !Rails.env.production?
# 'SolidusStripe::PaymentMethod',
# 'solidus_stripe_env_credentials',
# api_key: ENV.fetch('SOLIDUS_STRIPE_API_KEY'),
# publishable_key: ENV.fetch('SOLIDUS_STRIPE_PUBLISHABLE_KEY'),
# test_mode: ENV.fetch('SOLIDUS_STRIPE_API_KEY').start_with?('sk_test_'),
# webhook_endpoint_signing_secret: ENV.fetch('SOLIDUS_STRIPE_WEBHOOK_SIGNING_SECRET')
# )
end

Expand Down

0 comments on commit 9b18f09

Please sign in to comment.