#farhanah-subscription-cancellation
1 messages · Page 1 of 1 (latest)
Hello farhanah_77012, 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.
• farhanah_77012, 2 hours ago, 7 messages
• farhanah_77012, 3 days ago, 26 messages
• farhanah_77012, 3 days ago, 35 messages
• farhanah_77012, 3 days ago, 14 messages
• farhanah_77012, 4 days ago, 29 messages
• farhanah_77012, 4 days ago, 2 messages
and 2 more
Hi 👋
What do you mean?
here is the request : const cancelSubscription = await stripe.api.subscriptions.cancel(
input.subscriptionId,
{
cancellation_details: {
feedback: input.feedback,
comment: input.comment,
},
}
);
i want my user to select their reason for canceling and then cancel the subscription
i guess im not too sure what i'm supposed to pass in feedback or comment (or do i configure that in my frontend and pass it to my backend?)
We list the possible feedback values here: https://stripe.com/docs/api/subscriptions/cancel#cancel_subscription-cancellation_details-feedback
For comments you can pass back any text the customer provides
right. i passed those like this [
"customer_service",
"low_quality",
"missing_features",
"switched_service",
"too_complex",
"too_expensive",
"unused",
"other",
]
and it threw an error
farhanah-subscription-cancellation
i think i'm just passing the feedback enums incorreclty
@sweet sky can you share an exact Subscription id?
sub_1O6worFJRwfoYNLvH30J79FN
i'm trying to cancel this one, but idk how to pass the enum values for feedback. its throwing an error
what error is it throwing exactly? I don't see any failed request in your logs
its in the backend. its not allowing me to pass enum values. is that the correct way to make this type of request? or do we pass the value the user passes (from the list of feedback options" to the feedback in cancellation_details?