refactor payment#purchase method, improve environment variable names
This commit is contained in:
parent
c4d934d711
commit
f00e051eff
8 changed files with 64 additions and 39 deletions
|
|
@ -98,7 +98,7 @@ Osem::Application.configure do
|
|||
|
||||
#Initialize Payment Gateway with valid credentials
|
||||
ActiveMerchant::Billing::Base.mode = :test
|
||||
::GATEWAY = ActiveMerchant::Billing::StripeGateway.new(:login => ENV['SECRET_KEY'])
|
||||
::GATEWAY = ActiveMerchant::Billing::StripeGateway.new(:login => ENV['OSEM_GATEWAY_TEST_SECRET_KEY'])
|
||||
end
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -86,5 +86,5 @@ Osem::Application.configure do
|
|||
|
||||
# Initialize Payment Gateway with valid credentials
|
||||
ActiveMerchant::Billing::Base.mode = :test
|
||||
::GATEWAY = ActiveMerchant::Billing::StripeGateway.new(:login => ENV['SECRET_KEY'])
|
||||
::GATEWAY = ActiveMerchant::Billing::StripeGateway.new(:login => ENV['OSEM_GATEWAY_LIVE_SECRET_KEY'])
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue