#david-oliva-magic-beans_best-practices

1 messages ยท Page 1 of 1 (latest)

hoary willowBOT
#

๐Ÿ‘‹ 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/1254800619693412384

๐Ÿ“ Have more to share? Add details, code, screenshots, videos, etc. below.

digital coyoteBOT
waxen sky
#

Hi there ๐Ÿ‘‹ hard to say for sure without more context, but I'm assuming you're running into an error message when trying to create the Subscription, and that you likely need to set payment_behavior to default_incomplete when creating the Subscription to avoid that error.
https://docs.stripe.com/api/subscriptions/create#create_subscription-payment_behavior

Just to make sure we're aligned though, what are you referring to when you mention a "backend admin panel"?

digital coyoteBOT
summer panther
#

I mean that just administrators can create subscriptions manually and attach them to users without need to configure a payment method
The problem is that I believe I cannot create a subscription this way, however I didn't test it using the API directly (I didn't find the option), just the Stripe dashboard

#

And if I don't specify something like trial days (to make the subscription "free") it does not allow me to create it

#

Is there a way to avoid that and force the creation of the subscription?

pastel pilot
#

๐Ÿ‘‹ stepping in here as toby needed to step away

#

No you can't create a Subscription without a PaymentMethod via the Dashboard unless you use the "Send Invoice" option or use a trial. You can do this via the API though as toby mentioned above.

summer panther
#

ok, thanks!!