update payment on completed
All checks were successful
Build and Publish / BuildAndDeployAmd64 (push) Successful in 43s
Build and Publish / BuildAndDeployArm64 (push) Successful in 4m26s

This commit is contained in:
2025-12-03 22:38:14 +01:00
parent 3af837d824
commit c61fe1bb7b

View File

@@ -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) // err = confirmOrder(r.Context(), order, orderHandler)
// if err != nil { // if err != nil {
// log.Printf("Error confirming order: %v\n", err) // log.Printf("Error confirming order: %v\n", err)