diff --git a/cmd/checkout/klarna-handlers.go b/cmd/checkout/klarna-handlers.go index 3e6aec8..4c0d5f0 100644 --- a/cmd/checkout/klarna-handlers.go +++ b/cmd/checkout/klarna-handlers.go @@ -193,6 +193,14 @@ func (s *CheckoutPoolServer) KlarnaPushHandler(w http.ResponseWriter, r *http.Re }) } + s.applyAnywhere(r.Context(), uint64(grain.Id), &messages.PaymentCompleted{ + PaymentId: orderId, + Status: "completed", + ProcessorReference: &order.ID, + Amount: int64(order.OrderAmount), + Currency: order.PurchaseCurrency, + }) + // err = confirmOrder(r.Context(), order, orderHandler) // if err != nil { // log.Printf("Error confirming order: %v\n", err)