more logs
This commit is contained in:
@@ -68,6 +68,7 @@ func (s *CheckoutPoolServer) AdyenSessionHandler(w http.ResponseWriter, r *http.
|
|||||||
func getCheckoutIdFromNotificationItem(item webhook.NotificationRequestItem) (uint64, error) {
|
func getCheckoutIdFromNotificationItem(item webhook.NotificationRequestItem) (uint64, error) {
|
||||||
cartId, ok := cart.ParseCartId(item.MerchantReference)
|
cartId, ok := cart.ParseCartId(item.MerchantReference)
|
||||||
if !ok {
|
if !ok {
|
||||||
|
log.Printf("The notification does not have a valid cartId: %s", item.MerchantReference)
|
||||||
return 0, errors.New("invalid cart id")
|
return 0, errors.New("invalid cart id")
|
||||||
}
|
}
|
||||||
return uint64(cartId), nil
|
return uint64(cartId), nil
|
||||||
|
|||||||
Reference in New Issue
Block a user