#akii-Subscription
1 messages · Page 1 of 1 (latest)
Hi there, you can create a product/price with 0 cost, use the subscription API to create a subscription for a customer.
Its giving error, customer needs to have some Payment Method before adding any subscription.
can you share with me the request ID?
SubscriptionCreateParams subCreateParams = SubscriptionCreateParams
.builder()
.setCustomer(customerId)
.addItem(
SubscriptionCreateParams
.Item.builder()
.setPrice(priceId)
.build()
)
.setPaymentBehavior(SubscriptionCreateParams.PaymentBehavior.ALLOW_INCOMPLETE)
.addAllExpand(Arrays.asList("latest_invoice.payment_intent"))
.build();
Subscription subscription = Subscription.create(subCreateParams);
Pass the priceId as any price id and customer which has no Payment method added
Hi! Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
I need to step away so I’m going to archive this thread. If you need help with anything else please ask in #dev-help or contact Stripe Support: https://support.stripe.com/contact
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Hi, the request id is req_ciTHevDyynvYGO
Taking a look!
Okay thanks
Yep, the issue is the Price object you're using (price_1KsKMAGLOO5b7AOMcU0Zv1sU) requires an immediate payment
What are you trying to achieve?
I have some paid plans, and i have a few free plan, i want my customer to be able to subscribe to free plans without having to save a payment method first.
Have you tried to subscribe to a free plan? The example request ID you provided was for a paid plan