add more payment related shit
All checks were successful
Build and Publish / BuildAndDeployAmd64 (push) Successful in 37s
Build and Publish / BuildAndDeployArm64 (push) Successful in 4m10s

This commit is contained in:
matst80
2025-12-01 18:35:32 +01:00
parent d23bfe62a1
commit c227870f13
15 changed files with 821 additions and 173 deletions

View File

@@ -4,7 +4,6 @@ import (
"errors"
messages "git.k6n.net/go-cart-actor/pkg/messages"
"github.com/google/uuid"
)
func CreateCheckoutOrder(grain *CartGrain, req *messages.CreateCheckoutOrder) error {
@@ -15,8 +14,8 @@ func CreateCheckoutOrder(grain *CartGrain, req *messages.CreateCheckoutOrder) er
return errors.New("terms must be accepted")
}
// Validate other fields as needed
grain.CheckoutOrderId = uuid.New().String()
//grain.CheckoutOrderId = uuid.New().String()
grain.CheckoutStatus = "pending"
grain.CheckoutCountry = req.Country
//grain.CheckoutCountry = req.Country
return nil
}