ovi_tsb said almost 5 years ago on More on Stripe and Subscriptions :
Hi Dave, on the min 5:40 we have on unsubscribes controller : subscription = customer.subscriptions .retrieve(current_user.stripe_subscription_id) .delete(at_period_end: true) I'm receiving : "Stripe::InvalidRequestError in Subscriptions::UnsubscribesController#destroy Received unknown parameter: at_period_end". https://stripe.com/docs/upgrades#2018-08-23 I looked on stripe and they said at_period_end it was replaced with cancel_at_period_end but still the same. If I leave without nothing like ".delete()" I can get "subscription = current_user.stripe_customer.subscriptions.first" for resubscribe later. Thank you.