#kravock_api

1 messages ¡ Page 1 of 1 (latest)

rose sundialBOT
#

👋 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.

rotund halo
#

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:

  1. Save a payment method: https://docs.stripe.com/payments/save-and-reuse
  2. Create a subscription: https://docs.stripe.com/billing/subscriptions/build-subscriptions?platform=web&ui=elements and set the default_payment_method from Step 1: https://docs.stripe.com/api/subscriptions/create#create_subscription-default_payment_method

Learn how to save payment details and charge your customers later.

Create and manage subscriptions to accept recurring payments.

warped anchor
#

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

rotund halo
#

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?

warped anchor
#

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.

rotund halo
#

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

Learn how to use subscription schedules to automate changes to subscriptions over time.