diff --git a/pkg/service/bundle/pay.go b/pkg/service/bundle/pay.go index afaf414..e798920 100644 --- a/pkg/service/bundle/pay.go +++ b/pkg/service/bundle/pay.go @@ -59,7 +59,7 @@ func CreateStripeCheckoutSession(c *gin.Context) { if stripeInfosRes != nil && len(stripeInfosRes.StripeInfos) > 0 { for _, stripeInfo := range stripeInfosRes.StripeInfos { - if stripeInfo.OutTradeNo == detail.OrderRecord.OrderNo { + if stripeInfo.OutTradeNo == detail.OrderRecord.OrderNo && stripeInfo.PaymentIntentStatus == "paid" { _, updateOrderRecordErr := service.BundleProvider.UpdateOrderRecord(context.Background(), &bundle.OrderRecord{ Uuid: detail.OrderRecord.Uuid, Status: bundleModel.OrderPaid,