do not send stripe receipt
This commit is contained in:
parent
33a8d57057
commit
79404a50da
|
|
@ -53,8 +53,7 @@ func getstripepaymentintentHandler(response http.ResponseWriter, request *http.R
|
|||
|
||||
params := &stripe.PaymentIntentParams{
|
||||
Amount: stripe.Int64(abo_amount),
|
||||
Currency: stripe.String(string(stripe.CurrencyCHF)),
|
||||
ReceiptEmail: stripe.String(name),
|
||||
Currency: stripe.String(string(stripe.CurrencyCHF))
|
||||
}
|
||||
params.AddMetadata("charge_data", charge_data[0])
|
||||
params.AddMetadata("login_user", name)
|
||||
|
|
@ -121,7 +120,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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue