pull recurely pub api key from settings file

This commit is contained in:
Henry Oswald 2014-12-23 12:08:01 +00:00
parent 12a28d91f2
commit ecb71d5bbf
2 changed files with 2 additions and 3 deletions

View file

@ -6,7 +6,7 @@ block scripts
script(type='text/javascript').
window.recomendedCurrency = '#{currency}'
window.plan_code = '#{plan_code}'
window.recurlyCreds = { apiKey : "sc-GVdZOe7akgWbZRIFPllOx9"}
window.recurlyApiKey = "!{settings.apis.recurly.publicKey}"
block content

View file

@ -11,7 +11,6 @@ define [
$scope.switchToStudent = ()->
window.location = "/user/subscription/new?planCode=student&currency=#{$scope.currencyCode}"
__api_key = recurlyCreds.apiKey
$scope.paymentMethod = "credit_card"
@ -33,7 +32,7 @@ define [
correctExpiry: true
correctCvv:true
recurly.configure __api_key
recurly.configure window.recurlyApiKey
pricing = recurly.Pricing()
window.pricing = pricing