* code review time\!
This commit is contained in:
parent
b8a190c889
commit
0aecf7345f
|
|
@ -231,7 +231,7 @@ module JamRuby
|
|||
|
||||
sale = nil
|
||||
Sale.transaction do
|
||||
sale = create_jam_track_sale(current_user)
|
||||
sale = create_jam_track_sale(current_user, 'recurly')
|
||||
|
||||
if sale.valid?
|
||||
if is_only_freebie(shopping_carts)
|
||||
|
|
|
|||
|
|
@ -418,5 +418,6 @@ if defined?(Bundler)
|
|||
config.ban_jamtrack_downloaders = true
|
||||
config.chat_opened_by_default = true
|
||||
config.chat_blast = true
|
||||
config.use_ios_sandbox = true
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ require 'httparty'
|
|||
|
||||
class IosReceiptValidator
|
||||
include HTTParty
|
||||
base_uri 'production' != Rails.env ? "https://sandbox.itunes.apple.com" : "https://buy.itunes.apple.com"
|
||||
base_uri Rails.application.config.use_ios_sandbox ? "https://buy.itunes.apple.com" : "https://sandbox.itunes.apple.com"
|
||||
default_params :output => 'json'
|
||||
format :json
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue