From 62578b2b62357155a5500a86996d0e614a1bbb27 Mon Sep 17 00:00:00 2001 From: abner Date: Wed, 14 Apr 2021 15:48:06 +0800 Subject: [PATCH] fix go server bug --- server/go/app.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/server/go/app.go b/server/go/app.go index bfdb0213..7db3b210 100644 --- a/server/go/app.go +++ b/server/go/app.go @@ -163,15 +163,6 @@ func buildEcho(publicDirectory string) *echo.Echo { }) }) - type PaymentIntentsStatusData struct { - Status string `json:"status"` - LastPaymentError string `json:"last_payment_error,omitempty"` - } - - type PaymentIntentsStatus struct { - PaymentIntent PaymentIntentsStatusData `json:"paymentIntent"` - } - e.GET("/payment_intents/:id/status", func(c echo.Context) error { pi, err := payments.RetrieveIntent(c.Param("id")) if err != nil {