#tomek-checkout-basics
1 messages · Page 1 of 1 (latest)
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.
- tomek-checkout-intro, 3 minutes ago, 16 messages
- tomek-netlify, 3 hours ago, 22 messages
- tomek8755, 4 hours ago, 9 messages
- tomek8755, 2 days ago, 6 messages
Backing up - are you using CHeckout with Subscriptions, or for one-time payments?
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?
Gotcha, so the docs I sent you initially are more focused on understanding Checkout w/ one-time payments and if you look at the Checkout Session creation request example at https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=checkout#redirect-customers you can see theyr'e setting line_items[].price_data to create an in-line price so that it doesn't have to be created ahead of time
You can still do that for Subscriptions as well
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?
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
You can see in the Subs + CHeckout guide we mention setting up a pricing model (https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=stripe-hosted#create-pricing-model)
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?
tomek-checkout-basics
is there a way to show the money that I would actually get after the Stripe + payment providers + tax fees?
Hi there. You can check the charge object on the payment intent: https://stripe.com/docs/api/payment_intents/object#payment_intent_object-latest_charge. From there you can check the balance transaction: https://stripe.com/docs/api/charges/object#charge_object-balance_transaction. On the balance transaction, you can see how this charge impacted your account balance (ie. how much you net minus fees, etc)
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?
Only after payment
Yes it's how much you will actually receive in your account balance
hmmm...
ok I have 1 more question for now:
- in the link provided https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=stripe-hosted#create-session
I see lines:
// The price ID passed from the client
// const {priceId} = req.body;
const priceId = '{{PRICE_ID}}';
and I don't understand this. Should I replace this {{PRICE_ID}} string with something? I have created a product with 2 subscription options (2 prices). What should I include there?
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
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
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
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',
});
??
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
Alternatively use the pricing table: https://stripe.com/docs/payments/checkout/pricing-table
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 ...
yes
if you don't want to build that out yourself you can use the above pricing table
is this table free?
No idea
We don't know anything about pricing in here
Recommend you ask support
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.