Skip to content

Commit

Permalink
Reduce secrets deprecation warning by filling out env values
Browse files Browse the repository at this point in the history
  • Loading branch information
excid3 committed Jul 18, 2023
1 parent 87bdac4 commit cdb18bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@

# Configure all the payment providers for testing
ENV["STRIPE_PRIVATE_KEY"] ||= "sk_test_fake"
ENV["STRIPE_SIGNING_SECRET"] ||= "whsec_x"

# Paddle configuration
paddle_public_key = OpenSSL::PKey::RSA.new(File.read("test/support/fixtures/paddle/verification/paddle_public_key.pem"))
ENV["PADDLE_PUBLIC_KEY_BASE64"] = Base64.encode64(paddle_public_key.to_der)
ENV["PADDLE_ENVIRONMENT"] = "sandbox"
ENV["PADDLE_VENDOR_ID"] = "1"
ENV["PADDLE_VENDOR_AUTH_CODE"] = "x"

require "braintree"
require "stripe"
Expand Down

0 comments on commit cdb18bb

Please sign in to comment.