trying fix
This commit is contained in:
parent
84ef9d188b
commit
cdd9b9df4f
|
|
@ -512,7 +512,9 @@ profileUtils = context.JK.ProfileUtils
|
|||
|
||||
onStartPaypal: (e) ->
|
||||
e.preventDefault()
|
||||
@paypal = window.recurly.PayPal({ display: { displayName: 'JamKazam Subscriptions' }})
|
||||
|
||||
@paypal = window.recurly.PayPal({ display: braintree: { clientAuthorization: gon.global.braintree_token} })
|
||||
#@paypal = window.recurly.PayPal({ display: { displayName: 'JamKazam Subscriptions' }})
|
||||
@paypal.on('error', this.onPayPalError)
|
||||
@paypal.on('token', this.onPayPalToken)
|
||||
@paypal.start();
|
||||
|
|
@ -623,7 +625,7 @@ profileUtils = context.JK.ProfileUtils
|
|||
<div className={classNames(leftColumnClasses)}>
|
||||
{uncollectableMessage}
|
||||
<div className="paymethod-header">{header}</div>
|
||||
<a href='#' style={{display:'none'}}onClick={this.onStartPaypal}>Pay with Paypal</a>
|
||||
<a href='#' style={{display:'none'}} onClick={this.onStartPaypal}>Pay with Paypal</a>
|
||||
<form autoComplete="on" onSubmit={this.onSubmit} className={classNames(formClasses)} id="user-payment-submit">
|
||||
{firstNameField}
|
||||
{lastNameField}
|
||||
|
|
|
|||
|
|
@ -375,15 +375,17 @@ ChannelGroupIds = context.JK.ChannelGroupIds
|
|||
logger.debug("opening media control window")
|
||||
@childWindow = window.open("/popups/media-controls", 'Media Controls', 'scrollbars=yes,toolbar=no,status=no,height=155,width=350')
|
||||
@childWindow.PopupProps = {media: @state, jamTrackState: context.JamTrackStore.getState(), downloadingJamTrack: context.SessionStore.downloadingJamTrack, windowUnloaded: @windowUnloaded }
|
||||
setTimeout(() =>
|
||||
@setState({popupOpen: true})
|
||||
, 1)
|
||||
if !@state.popupOpen
|
||||
setTimeout(() =>
|
||||
@setState({popupOpen: true})
|
||||
, 1)
|
||||
else
|
||||
if @childWindow?
|
||||
@childWindow.DontAutoCloseMedia = true
|
||||
@childWindow.close()
|
||||
@childWindow = null
|
||||
setTimeout(() =>
|
||||
@setState({popupOpen: false})
|
||||
, 1)
|
||||
if @state.popupOpen
|
||||
setTimeout(() =>
|
||||
@setState({popupOpen: false})
|
||||
, 1)
|
||||
})
|
||||
|
|
|
|||
|
|
@ -495,5 +495,7 @@ if defined?(Bundler)
|
|||
# braintree: merchant id: 5v5rwm94m2vrfbms
|
||||
# braintree: public key: 367d6dtdswvdr87s
|
||||
# braintree: private key: 8309b8f9c669cfa940f617eb9cac56ea
|
||||
config.braintree_token = 'sandbox_pgjp8dvs_5v5rwm94m2vrfbms'
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -27,4 +27,5 @@ Gon.global.chat_opened_by_default = Rails.application.config.chat_opened_by_defa
|
|||
Gon.global.network_test_required = Rails.application.config.network_test_required
|
||||
Gon.global.musician_count = Rails.application.config.musician_count
|
||||
Gon.global.subscription_codes = Rails.application.config.subscription_codes
|
||||
#Gon.global.braintree_token = Rails.application.config.braintree_token
|
||||
Gon.global.env = Rails.env
|
||||
|
|
|
|||
Loading…
Reference in New Issue