mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
pull recurely pub api key from settings file
This commit is contained in:
parent
12a28d91f2
commit
ecb71d5bbf
2 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -11,7 +11,6 @@ define [
|
|||
$scope.switchToStudent = ()->
|
||||
window.location = "/user/subscription/new?planCode=student¤cy=#{$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
|
||||
|
|
Loading…
Reference in a new issue