diff --git a/main.go b/main.go index 5447be8..b6d07f6 100644 --- a/main.go +++ b/main.go @@ -89,6 +89,7 @@ func main() { http.HandleFunc("/lastmetrics", lastmetricsHandler) http.HandleFunc("/save_scale_settings", save_scale_settingsHandler) http.HandleFunc("/getstripesession", getstripesessionHandler) + http.HandleFunc("/getstripepaymentintent", getstripepaymentintentHandler) http.HandleFunc("/stripewebhook", stripeWebhookHandler) logit("Starting Web Application...") diff --git a/snippets/checkout.html b/snippets/checkout.html new file mode 100644 index 0000000..c71ab06 --- /dev/null +++ b/snippets/checkout.html @@ -0,0 +1,102 @@ +{{define "header_additions"}} + +{{end}} +{{define "body_content"}} +

Checkout

+ + + +
+ +
+ + + + + + + +{{end}} diff --git a/snippets/scales.html b/snippets/scales.html index d149bf0..ab0376e 100644 --- a/snippets/scales.html +++ b/snippets/scales.html @@ -1,3 +1,6 @@ +{{define "header_additions"}} + +{{end}} {{define "body_content"}} {{ if ne .UserName "" }} @@ -56,10 +59,21 @@ Device ID: -