#kravock_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1259666492988063777
đ Have more to share? Add details, code, screenshots, videos, etc. below.
Yes! Setup Intent or Checkout Session with mode: 'setup' can be used to save a payment method (pm_xxx), then you can create multiple subscriptions later with the saved payment method:
- Save a payment method: https://docs.stripe.com/payments/save-and-reuse
- Create a subscription: https://docs.stripe.com/billing/subscriptions/build-subscriptions?platform=web&ui=elements and set the
default_payment_methodfrom Step 1: https://docs.stripe.com/api/subscriptions/create#create_subscription-default_payment_method
yeah sweet, I think I figured it out just after posting this.
Is there any way to do a longer than 3 years for a pricing? We'd need to offer up to 10 years which is the max period a customer can register a domain name for
How often do you plan to charge to a customer?
For example, if a customer registers domain for 10 years, is he/she going to be charged every 10 years only?
Yeah, the subscription for that domain would be due again in 10 years
So the customer may have a monthly subscription to a hosting plan, but a 10 year domain registration.
So one subscription would be monthly, and one would be every 10 years.
Thanks for sharing! I'm afraid that Stripe doesn't support 10-year interval for a subscription. One workaround will be creating a yearly subscription and set the next 9 cycles with trial or coupon using Subscription Schedule, so that customer won't be charged in those 9 cycles: https://docs.stripe.com/billing/subscriptions/subscription-schedules
So, for every 10 years, you will update the subscription schedule to give 9 cycles free