From 4c064240d1f572d8278a20d6704a9175eff29e96 Mon Sep 17 00:00:00 2001 From: Joerg Lehmann Date: Fri, 3 Jan 2020 19:33:39 +0100 Subject: [PATCH] refactor payment process - second step --- main.go | 2 - snippets/scales.html | 91 +++++++++++++++++++++------------- stripe.go | 115 ------------------------------------------- 3 files changed, 56 insertions(+), 152 deletions(-) diff --git a/main.go b/main.go index b6d07f6..cd762e7 100644 --- a/main.go +++ b/main.go @@ -88,9 +88,7 @@ func main() { http.HandleFunc("/metrics", metricsHandler) 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...") http.ListenAndServe("127.0.0.1:4000", nil) diff --git a/snippets/scales.html b/snippets/scales.html index ab0376e..899eff5 100644 --- a/snippets/scales.html +++ b/snippets/scales.html @@ -69,7 +69,10 @@ Device ID: - +