#gaskraank-checkout

1 messages · Page 1 of 1 (latest)

upper venture
#

I am a bit confused by your ask and what it means. What does using Price and Product have to do with Secret key?
You can do all of that in code

hidden cargo
#

From my understanding Checkout ONLYallows you to have prices or products configured. If you want to do that or just a payment without prices or products, that is all through PaymentIntent

#

Which requires code

tight turtle
#

Thanks for the fast answers, what I want to achieve is, creating a variable price in my shopping cart in the Frontend and then do the Payment without providing the Secret Key. So it possible to do it only with the Publishable Key ?

upper venture
#

@tight turtle not possible, otherwise anyone can change the price all the time and unless you build a donation platform it doesn't really work well

tight turtle
#

@upper venture thank you so much for the fast answer, would I always do this through a Backend Microservice? I am calling the API in the checkout shopping cart after successfully finsihing an order and when the customer hits the "pay 34xx$" button the price will be generated via API call. Is there any issue with doing without a backend server model?

upper venture
#

no that seems totally fine. You submit your "form", server-side you create the Session with the right price and then you redirect to Checkout directly from the server (it's a full page redirect)