Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

fix go server bug #164

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions server/go/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down