Sha256: 4f74e24cd4d4ad9082cd84b06a851045af22e3a45a79dd0cd78562080195b44b
Contents?: true
Size: 525 Bytes
Versions: 1
Compression:
Stored size: 525 Bytes
Contents
module Colt class Credential def self.check message = <<ERROR Stripe credentials is not set properly or it is incorrect. Define the following Stripe environment variables. export STRIPE_PUBLISHABLE_KEY='pk_test your publishable key' export STRIPE_SECRET_KEY='sk_test your secret key' and define: Stripe.api_key = 'sk_test your secret key' ERROR begin ::Stripe::Account.retrieve rescue ::Stripe::AuthenticationError => e raise e end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
colt-0.4.2 | lib/colt/credential.rb |