#stilo01
1 messages · Page 1 of 1 (latest)
I'm not a go pro (pawn intended), but I think there's an issue with the way the CheckoutSessionParams are imported
yes this is exactly the issue
you shouldn't have 2 imports
one is taking from the master version and the other from v72
what do I have to import?
one or the other
but not both
so they're the same thing?
so basically github.com/stripe/stripe-go/v72/checkout/session if you're using the v72 specifically
instead of the generic github.com/stripe/stripe-go/checkout/session which I think means the latest version
sure
ok, how does javascript turn a button in this?
I mean it doesn't
I still see the button
I imported this (<script src="https://js.stripe.com/v3/"></script>) in the html file
hi @paper pulsar
but I still see only the button
What's the question?
.
What does that mean exactly? You'll need to provide some more context.
Also, you're referencing Checkout yet showing a screenshot of the Payment Element – they're 2 different integrations
Your server-side code that creates the Checkout Session should redirect users there. You don't put it in your HTML page – it's a hosted payment page.
sorry for ignorance, this is the first time I use stripe
Ok, seems like you've downloaded the Go quickstart?
Ok, and is that code working?
What happens if you click the button?
it opens the payment in stripe.com
And what exactly are you expecting?
This?
the checkout on my page
yep
As I said, that's not support with Checkout. The screenshot you shared is the Payment Element. Check out the code here: https://stripe.com/docs/payments/quickstart?lang=go