Sha256: 848fdccebdca1a67f380d9bd83df1168152a7534b9c03ade4e9709082417612c

Contents?: true

Size: 637 Bytes

Versions: 1

Compression:

Stored size: 637 Bytes

Contents

!!!

%html
  %body
    %button#customButton submit

    %script{type: 'text/javascript', src: 'https://checkout.spike.cc/v1/checkout.js'}

    :javascript
      var handler = SpikeCheckout.configure({
        key: "#{@public_key}",
        token: function(token, args) {
          console.log(token.id);
        }
      });


      document.getElementById("customButton").addEventListener("click", function(e) {
        handler.open({
          name: "Sample app for get token",
          amount: 900,
          currency: "JPY",
          guest: true,
          email: "foo@example.com"
        });
        e.preventDefault();
      });

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spike-ruby-0.0.3 checkoutapp/index.haml