David Kimura PRO said over 5 years ago on More on Stripe and Subscriptions :
See if something like this will work. ```customer = current_user.stripe_customer subscription = customer.subscriptions.retrieve(current_user.stripe_subscription_id) subscription.cancel_at_period_end = true subscription.save```