#nacho_446
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- nacho_446, 21 hours ago, 9 messages
- nacho_446, 22 hours ago, 18 messages
- nacho_446, 4 days ago, 13 messages
- nacho-subs-webhook, 4 days ago, 9 messages
- nacho46-subs-trial, 4 days ago, 18 messages
- nacho_446, 6 days ago, 8 messages
Hi
What payment method are you using ? did you set the payment method as a default payment method to the Subscription :
https://stripe.com/docs/api/subscriptions/object#subscription_object-default_payment_method
This is what I did
const subscription = await stripe.subscriptions.create({
customer: billingInfo.stripeCusId,
items: [{ price: params.stripePlanId, quantity: 1 }],
trial_end: freeTrial ? 'now' : startDate.unix(), // one day from now
});
After collecting the payment method, you need to set it as a default payment method to the customer or the Subscirption
Or you simply add this param when creating the Subscription: payment_settings: { save_default_payment_method: 'on_subscription' },
I invite you to follow this guide step by step:
https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements#create-subscription
Ok thanks