~evanj/cms

a1db405a36ebf4c89a8f98602af20c37bc6ff381 — Evan J 2 months ago 26d435c
Fix(s/stripe): Resolved stripe transaction error: misconfiguration in
environment variable (did not include session_id query parameter in
callback URL).
1 files changed, 0 insertions(+), 3 deletions(-)

M internal/s/stripe/stripe.go
M internal/s/stripe/stripe.go => internal/s/stripe/stripe.go +0 -3
@@ 2,7 2,6 @@ package stripe

import (
	"context"
	"fmt"
	"log"

	"git.sr.ht/~evanj/cms/internal/m/org"


@@ 79,8 78,6 @@ func (s Stripe) StartCheckout(ctx context.Context, user user.User, t tier.Tier) 
}

func (s Stripe) CompleteCheckout(ctx context.Context, sessionID string) error {
	fmt.Println("Session ID?", sessionID)

	sess, err := session.Get(sessionID, &lib.CheckoutSessionParams{
		PaymentIntentData: &lib.CheckoutSessionPaymentIntentDataParams{},
	})