~evanj/cms

ref: 4e6befbb576c2e14bcbb5b05e127ae40c9c6073e cms/internal/v/html/stripe.html -rw-r--r-- 897 bytes
4e6befbbEvan J Fix(hook service): Hook service was broke for list of hooks. Encapsulate 1 year, 23 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>
<html lang=en>
<head>
  {{ template "html/_head.html" }}
  <title>Skipper CMS | Docs</title>
</head>
<body class='page bg-light'>
  <style>{{ template "css/main.css" }}</style>
  <main>
    {{ template "html/_header.html" $ }}
    <div class="pricing-header px-3 py-3 pt-md-5 pb-md-4 mx-auto text-center">
      <h1 class="display-4">Processing...</h1>
    </div>
    {{ template "html/_footer.html" $ }}
  </main>
  {{ template "html/_scripts.html" }}
  <script src="https://js.stripe.com/v3/"></script>
  <script>
    (function() { 
      var stripe = Stripe('{{.StripePK}}');
      var checkoutButton = document.getElementById('checkout-button');
      stripe.redirectToCheckout({
        sessionId: '{{.StripeCheckoutSessionID}}'
      }).then(function (result) {
        console.log(result)
        alert(result.error.message);
      });
    })();
  </script>
</body>
</html>