Pre-populate email in Stripe checkout
This commit is contained in:
1
main.go
1
main.go
@@ -260,6 +260,7 @@ func handleDonate(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
baseURL := os.Getenv("BASE_URL")
|
baseURL := os.Getenv("BASE_URL")
|
||||||
params := &stripe.CheckoutSessionParams{
|
params := &stripe.CheckoutSessionParams{
|
||||||
|
CustomerEmail: stripe.String(email),
|
||||||
Mode: stripe.String(string(stripe.CheckoutSessionModePayment)),
|
Mode: stripe.String(string(stripe.CheckoutSessionModePayment)),
|
||||||
LineItems: []*stripe.CheckoutSessionLineItemParams{
|
LineItems: []*stripe.CheckoutSessionLineItemParams{
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user