#tomek-checkout-basics

1 messages · Page 1 of 1 (latest)

tender forumBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

uncut ferry
#

Backing up - are you using CHeckout with Subscriptions, or for one-time payments?

mental sapphire
#

so I was thinking about Subscriptions, but if it turns out the fees from Stripe + payment methods providers are to big I might think of 1 time payments

#

can I customise Subscriptions to be every 3months for example?

uncut ferry
#

You can still do that for Subscriptions as well

mental sapphire
#

I'm not sure we understand each other...

#

so what you are saying is that the very endpoint /create-checkout-session, will configure the subscription parameters?

uncut ferry
#

No, I'm saying that the guide you were following creates in-line prices, which is why you didn't see it make any mention of managing prices. If you want to create a new price everytime that's what you would use, but if you want to create Prices ahead of time and use the same ones over and over again you'd create the Price separately and then pass that in

mental sapphire
#

will check this, please don't close this thread yet, thanks

#

thanks for the link

#

will I be able to set a subscription to occur every 3 months, rather then every month?

tender forumBOT
uncut ferry
#

Yes, you should be able to do configure that when you create the Price

tender forumBOT
#

tomek-checkout-basics

mental sapphire
#

is there a way to show the money that I would actually get after the Stripe + payment providers + tax fees?

languid copper
mental sapphire
#

so this NET would cover all the factors I mentioned - Stripe + payment method providers + tax fees?

this would be only possible to view after somebody actually made a payment or can I see this yet before payment somehow - just after setting up a Product and Price in dashboard?

languid copper
#

Only after payment

#

Yes it's how much you will actually receive in your account balance

mental sapphire
#

hmmm...

languid copper
#

Whichever one you want to charge the user

#

If you have 2 price id's just pick the one you want to charge them

#

Paste that there

mental sapphire
#

I don't get this

#

sorry

#

isn't the user the one who should pick up which one they want to be charged?

#

I mean I thought this is the whole point of creating different prices for a Product, so that the user can select a plan which is suitable for them

languid copper
#

Yeah

#

It's your code though right

#

You present the user with choices

#

They select one of the prices

#

You then pass that corresponding price id to the session creation request

mental sapphire
#

so wait

#

so let me get this clear - for example if I want to provide users with 2 choices, for a Product which has 2 subscriptions prices let's say:

id_price_1_asdfxfda43498y987324958
id_price_2_ertyerf340098269726387492

then I a request would look like this?

const session = await stripe.checkout.sessions.create({
mode: 'subscription',
line_items: [
{
price: "id_price_1_asdfxfda43498y987324958",
// For metered billing, do not pass quantity
quantity: 1,
},
{
price: "id_price_2_ertyerf340098269726387492",
// For metered billing, do not pass quantity
quantity: 1,
},
],
// {CHECKOUT_SESSION_ID} is a string literal; do not change it!
// the actual Session ID is returned in the query parameter when your customer
// is redirected to the success page.
success_url: 'https://example.com/success.html?session_id={CHECKOUT_SESSION_ID}',
cancel_url: 'https://example.com/canceled.html',
});
??

languid copper
#

No that would charge the customer for both prices

#

Checkout doesn't have a ui for choosingn prices

#

You need to have the customer choose a price ahead of time on your site

#

And redirect them to checkout with the price they selected

mental sapphire
#

ohhh

I thought the whole point of checkout is that Stripe handles the UI for selecting products... ok I guess that makes sens,

the Stripe page as I understand is just for fullfiliing the payment details ...

languid copper
#

yes

#

if you don't want to build that out yourself you can use the above pricing table

mental sapphire
#

is this table free?

languid copper
#

No idea

#

We don't know anything about pricing in here

#

Recommend you ask support

#