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