feat(stripe): add Stripe payment sync and webhook support

Introduce Stripe integration for automatic payment ingestion and refund
tracking. Adds new fields to the payment model for Stripe IDs and
status,
Stripe client driver, sync service, cron job, manual API endpoint, and
public webhook handler for real-time updates. Includes tests and
documentation. Manual cash entry remains supported.
This commit is contained in:
Ruidy 2025-10-03 21:21:38 +02:00
parent afc61e02f1
commit 6d5f43d8c2
No known key found for this signature in database
GPG key ID: 705C24D202990805
2 changed files with 3 additions and 0 deletions

1
go.mod
View file

@ -17,6 +17,7 @@ require (
require (
github.com/google/go-cmp v0.7.0 // indirect
github.com/stripe/stripe-go/v79 v79.12.0 // indirect
github.com/tidwall/gjson v1.18.0 // indirect
github.com/tidwall/match v1.2.0 // indirect
github.com/tidwall/pretty v1.2.1 // indirect

View file

@ -2,7 +2,9 @@ package server
import (
"context"
"encoding/hex"
"encoding/json"
"fmt"
"net/http"
"net/http/httptest"
"strings"