29 lines
651 B
Go
29 lines
651 B
Go
|
|
package handlers
|
||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/gin-gonic/gin"
|
||
|
|
)
|
||
|
|
|
||
|
|
type PaymentHandler struct {
|
||
|
|
// Will be implemented in later tasks
|
||
|
|
}
|
||
|
|
|
||
|
|
func NewPaymentHandler() *PaymentHandler {
|
||
|
|
return &PaymentHandler{}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (h *PaymentHandler) CreatePaymentIntent(c *gin.Context) {
|
||
|
|
// Will be implemented in task 7
|
||
|
|
c.JSON(501, gin.H{"message": "Not implemented yet"})
|
||
|
|
}
|
||
|
|
|
||
|
|
func (h *PaymentHandler) ConfirmPayment(c *gin.Context) {
|
||
|
|
// Will be implemented in task 7
|
||
|
|
c.JSON(501, gin.H{"message": "Not implemented yet"})
|
||
|
|
}
|
||
|
|
|
||
|
|
func (h *PaymentHandler) HandleWebhook(c *gin.Context) {
|
||
|
|
// Will be implemented in task 7
|
||
|
|
c.JSON(501, gin.H{"message": "Not implemented yet"})
|
||
|
|
}
|