#abhishek_gang
1 messages · Page 1 of 1 (latest)
👋 happy to help
you need to follow these steps https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
specifically using these parameters
payment_settings: { save_default_payment_method: 'on_subscription' },```
from this step https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements#create-subscription
'''subscription = Stripe::Subscription.create({
customer: customer_id,
items: [{
price: plan_id
}]
})''' How modify this question for resolving this error
Yes , I add but still got same error