add more payment related shit
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user