#stilo01

1 messages · Page 1 of 1 (latest)

red mortarBOT
proud wigeon
#

hello

rocky iris
#

I'm not a go pro (pawn intended), but I think there's an issue with the way the CheckoutSessionParams are imported

rocky iris
#

you shouldn't have 2 imports

#

one is taking from the master version and the other from v72

proud wigeon
proud wigeon
rocky iris
#

one or the other

rocky iris
proud wigeon
#

so they're the same thing?

rocky iris
#

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

proud wigeon
#

wow

#

it works

#

another question

rocky iris
#

sure

proud wigeon
#

ok, how does javascript turn a button in this?

#

I mean it doesn't

#

I still see the button

red mortarBOT
proud wigeon
#

hi @paper pulsar

#

but I still see only the button

paper pulsar
#

What's the question?

paper pulsar
#

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

proud wigeon
#

how do you put the checkout in the html page

#

?

paper pulsar
#

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.

proud wigeon
#

sorry for ignorance, this is the first time I use stripe

paper pulsar
#

Ok, seems like you've downloaded the Go quickstart?

proud wigeon
#

yes

#

actually no,

#

I took the code in the Go quickstart and I put it into my page

paper pulsar
#

Ok, and is that code working?

proud wigeon
#

no

#

in the front-end page I don't see the checkout

paper pulsar
#

What happens if you click the button?

proud wigeon
paper pulsar
#

And what exactly are you expecting?

paper pulsar
proud wigeon
proud wigeon
paper pulsar
#

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

Learn how to embed a custom Stripe payment form in your website or application. Build a checkout form with Elements to complete a payment using various payment methods.

proud wigeon
#

oh

#

right

#

I understand

#

I confused the page

#

thanks