Sha256: d50493d83cfaa392ceee55999b52306cd2fa7d132535caa1dc1dd80600b0c4a5

Contents?: true

Size: 435 Bytes

Versions: 6

Compression:

Stored size: 435 Bytes

Contents

// TODO: Please update the stripe publishable key here.
var stripe = Stripe(ENV["STRIPE_PUBLISHABLE_KEY"]);

stripe.redirectToCheckout({
  sessionId: "<%= @stripe_session.id %>"
}).then(function(result) {
  // If `redirectToCheckout` fails due to a browser or network
  // error, you should display the localized error message to your
  // customer using `error.message`.
  if (result.error) {
    alert(result.error.message);
  }
});

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
boring_generators-0.15.0 lib/generators/boring/payments/stripe/install/templates/views/stripe/checkouts/create.js.erb
boring_generators-0.14.0 lib/generators/boring/payments/stripe/install/templates/views/stripe/checkouts/create.js.erb
boring_generators-0.13.0 lib/generators/boring/payments/stripe/install/templates/views/stripe/checkouts/create.js.erb
boring_generators-0.12.0 lib/generators/boring/payments/stripe/install/templates/views/stripe/checkouts/create.js.erb
boring_generators-0.11.0 lib/generators/boring/payments/stripe/install/templates/views/stripe/checkouts/create.js.erb
boring_generators-0.10.0 lib/generators/boring/payments/stripe/install/templates/views/stripe/checkouts/create.js.erb