more changes
This commit is contained in:
@@ -15,6 +15,9 @@ func AddGiftcard(grain *CartGrain, req *messages.AddGiftcard) error {
|
||||
if req.Giftcard.Value <= 0 {
|
||||
return fmt.Errorf("giftcard value must be positive")
|
||||
}
|
||||
if grain.PaymentInProgress > 0 {
|
||||
return ErrPaymentInProgress
|
||||
}
|
||||
grain.lastGiftcardId++
|
||||
designConfig := json.RawMessage{}
|
||||
if req.Giftcard.DesignConfig != nil {
|
||||
|
||||
Reference in New Issue
Block a user