added receipt printing functionality to the Dojo and Paybridge payment flow

This commit is contained in:
2026-07-17 15:02:11 +01:00
parent 8ecdfd8cf7
commit fa2c92c8ab
7 changed files with 86 additions and 8 deletions
+3 -3
View File
@@ -34,7 +34,7 @@ import (
)
const (
buildVersion = "1.3.0"
buildVersion = "1.3.1"
serviceName = "hardlink"
pollingFrequency = 8 * time.Second
)
@@ -206,8 +206,8 @@ func main() {
// Only PayBridge and Dojo use POST /api/payment/sale.
if provider != nil {
app.SetPaymentService(paymentsvc.NewService(provider))
log.Infof("Payment provider enabled for POST /api/payment/sale: %s", cfg.PaymentProvider)
fmt.Printf("Payment provider enabled for POST /api/payment/sale: %s\n", cfg.PaymentProvider)
log.Infof("Payment provider enabled for POST /api/payment/sale: %s", cmstypes.PaySystemNames[paymentProvider])
fmt.Printf("Payment provider enabled for POST /api/payment/sale: %s\n", cmstypes.PaySystemNames[paymentProvider])
}
} else {
fmt.Println("Payment processing is disabled")