var stripe = Stripe("<%= j UserUpgrade.stripe_publishable_key %>"); stripe.redirectToCheckout({ sessionId: "<%= j @checkout.id %>" });