make it the same as mini-beieli-web

This commit is contained in:
Joerg Lehmann 2023-02-03 19:08:45 +01:00
parent 0931ecb0f4
commit 8838103f2d
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ func stripeWebhookHandler(w http.ResponseWriter, req *http.Request) {
return
}
fmt.Printf("PaymentIntent was successful (charge_data: %s, amount: %d)!\n", paymentIntent.Metadata["charge_data"], paymentIntent.Amount)
HandlePayment(paymentIntent.ReceiptEmail, paymentIntent.Metadata["charge_data"], paymentIntent.Amount)
HandlePayment(paymentIntent.Metadata["login_user"], paymentIntent.Metadata["charge_data"], paymentIntent.Amount)
// ... handle other event types
default:
fmt.Fprintf(os.Stderr, "Unexpected event type: %s\n", event.Type)