mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #452 from sharelatex/ho-payment-page-vals
json stringify and trim recommended currency
This commit is contained in:
commit
351f9c8252
1 changed files with 2 additions and 2 deletions
|
@ -4,11 +4,11 @@ block scripts
|
||||||
script(src="https://js.recurly.com/v3/recurly.js")
|
script(src="https://js.recurly.com/v3/recurly.js")
|
||||||
|
|
||||||
script(type='text/javascript').
|
script(type='text/javascript').
|
||||||
window.recomendedCurrency = '#{currency}'
|
|
||||||
window.countryCode = '#{countryCode}'
|
window.countryCode = '#{countryCode}'
|
||||||
window.plan_code = '#{plan_code}'
|
window.plan_code = '#{plan_code}'
|
||||||
window.recurlyApiKey = "!{settings.apis.recurly.publicKey}"
|
window.recurlyApiKey = "!{settings.apis.recurly.publicKey}"
|
||||||
window.couponCode = "#{couponCode}"
|
window.couponCode = !{JSON.stringify(couponCode)}
|
||||||
|
window.recomendedCurrency = !{JSON.stringify(currency.slice(0,3))}
|
||||||
|
|
||||||
block content
|
block content
|
||||||
.content.content-alt
|
.content.content-alt
|
||||||
|
|
Loading…
Reference in a new issue