We're using stripe as a payment gateway.
I'm trying to subscribe a customer to a plan. This plan has a 30 days trial period. So, we're delaying customer adds a source (payment method) details on its profile.
Nevertheless, when I'm trying to subscribe it to a plan, stripe is getting me this message:
This customer has no attached payment source.
Is there any way to allow customer has no payment sources along trial period?
You can create a subscription for a customer with no payment source, as long as there is nothing to bill immediately (e.g. because of a trial period, or because the plan is free, or because of a negative invoice item or coupon that reduces the first invoice's total to $0).
If you're getting this error message:
This customer has no attached payment source.
it means that Stripe is trying to bill the customer, so you must be using a non-free plan without a trial period. I'd recommend checking your code and the plan's properties to make sure that this plan has a default trial period, or make sure that you include the trial_end
parameter when creating the subscription.