#The Digital

1 messages · Page 1 of 1 (latest)

hidden onyxBOT
stray heath
#

Hi again

#

Are you asking if there is a way to create a Sub without having a payment method yet for the Customer?

carmine urchin
#

sort of yes

#

just would like more if stripe could handle that without "me" directly asking for payment details

#

like sessions do for example

stray heath
#

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?

carmine urchin
#

its not really a site

#

its a discord bot

stray heath
#

Okay yeah sounds like you want to redirect to Checkout in that case

carmine urchin
#

so i'd like to send user a url via button to fill that

#

probably

stray heath
#

Yep so you can create the Sub and collect the PaymentMethod at the same time via Stripe Checkout

carmine urchin
#

how so with library?

stray heath
carmine urchin
#

but that doesnt create a subscription?

stray heath
#

Yep sorry about that

carmine urchin
#

ah

#

thanks <3

stray heath
#

np

carmine urchin
# stray heath np

quick q, does url have to include this (query part) in success_url, and can there be other placeholders returned?

stray heath
#

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

carmine urchin
#

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?

stray heath
carmine urchin
#

oh so i can just retrieve session and metadata will be there?

stray heath
#

Yep

carmine urchin
#

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?

topaz roost
#

Hi there 👋 taking over, as my colleague needs to step away

Give me a few minutes to get caught up.

carmine urchin
#

sure

topaz roost
#

I'm not sure I understand the question. Can you rephrase?

carmine urchin
#

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

topaz roost
#

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

carmine urchin
#

so its all automated

#

nice