From 1c0c21d7fd2cf0d4324a382a7044ac582727c1f4 Mon Sep 17 00:00:00 2001 From: jhc Date: Sun, 23 Feb 2025 09:46:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/service/bundle/pay.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,