fix:支付

This commit is contained in:
momo
2023-09-25 16:00:50 +08:00
parent 287ee4db37
commit 6005f20c5e
5 changed files with 52 additions and 41 deletions

View File

@@ -233,6 +233,7 @@ func (l *StripeWebhookLogic) handlePaymentSessionCompleted(sessionId string, tra
// 付款成功
func (l *StripeWebhookLogic) HandlePaymentIntentSucceeded(paymentIntent *stripe.PaymentIntent, eventId string) error {
fmt.Println(paymentIntent)
// 支付成功
if paymentIntent.Status == "succeeded" {
model, ok := paymentIntent.Metadata["model"]