#The Digital
1 messages · Page 1 of 1 (latest)
Hi again
Are you asking if there is a way to create a Sub without having a payment method yet for the Customer?
sort of yes
just would like more if stripe could handle that without "me" directly asking for payment details
like sessions do for example
Hmm so you want to use a hosted page instead of collecting the payment method via a custom form (using Stripe Elements) on your site?
Okay yeah sounds like you want to redirect to Checkout in that case
Yep so you can create the Sub and collect the PaymentMethod at the same time via Stripe Checkout
how so with library?
Which just involves you creating a Checkout Session from your server and then redirecting your user to that session.url. See: https://stripe.com/docs/payments/accept-a-payment for an integration guide
but that doesnt create a subscription?
Woops sorry that is a one-time payment integration guide. Check out https://stripe.com/docs/billing/subscriptions/build-subscriptions for subscriptions
Yep sorry about that
np
quick q, does url have to include this (query part) in success_url, and can there be other placeholders returned?
Doesn't have to include that -- by including that you will have the Checkout Session ID added as a URL param if you want to use that to retrieve the Checkout Session on your success page.
There aren't any other URL params that we provide but you can always set your own
how do i set own?
i see i can use metadata in providing, and how do i get them returned on posting to success url and canceled?
Metadata will be associated to the Checkout Session. You want to use Webhooks to ingest this data. See: https://stripe.com/docs/payments/checkout/fulfill-orders
oh so i can just retrieve session and metadata will be there?
Yep
ah sweet
and just last one would be, if customer has recurring subscription, and they modify the price, and i update the subscription with new price (below), will they have to confirm anything or recurring amount will be changed automatically?
Hi there 👋 taking over, as my colleague needs to step away
Give me a few minutes to get caught up.
sure
I'm not sure I understand the question. Can you rephrase?
so if existing customer pays $x per month, and they decide to change their subscription price (upgrade to ei $x2), (i would have to use subscriptions.update method right?), and when price changes, will their next bill be the new price set on update, or they have to confirm something before change of price
i would have to use subscriptions.update method right?
Yes, correct.
and when price changes, will their next bill be the new price set on update, or they have to confirm something before change of price
Once the Subscription is updated, the change has taken effect and they will see the new Price on their next billing cycle