#phant
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.
Hi 👋 I'm not sure what you mean by "all the saved amount using the special subscription". Like are you trying to cancel a Subscription early and charge the Customer for prorated amounts? If so, is our proration logic not doing what you're hoping?
Or am I way off and you want to process a one-off payment of some sort?
Yeah basically I want to charge some amount before cancellation
I think I understand, you want to process a one-off payment for a Customer using an already saved Payment Method.
Is a Payment Intent sufficient for that:
https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=elements#charge-saved-payment-method
Or would you need an Invoice as part of your flow?
Bouncing around threads, the server is very busy today.
If you want to create one-off Invoices, I'd recommend starting with this guide:
https://stripe.com/docs/invoicing/integration
No worries
But can you let me know how to redirect them to this payment intent url when they click on Cancel subscription button on strip payment page
Huh, what payment page, what cancel subscription button?
this billing page
on click of cancel i want to bring up the payment page to pay first before cancel
Okay, the Customer Portal. You can't do that, the Customer Portal doesn't offer that feature (I thought you had built your own flow that you were trying to add this behavior to).
ohh i see
You would need to build your own flow and UI for allowing customers to cancel their Subscriptions if you want to force them to pay before the Subscription can be canceled.
i see, how do i do that, do you have any reference for that?
Which part? There's quite a bit to that. Building an Invoice flow following the guide I linked previously, tying that into a UI that you build, and then cancel the Subscription when you deem it's appropriate to do so within the context of your business flow.
Okay, what part do you need guidance on? I can't lay out the entire process of hosting a page here, but I may be able to help if you're running into problems and can share what those are.
i want to know how to start building this
Sorry, that's way too vague. If you're not familiar with building your own webpages, you may want to start by looking at basic tutorials or consider bringing on a devleoper who has experience doing that.
no i can build this website but i want to know the events or redirecturls to be passed on click of cancel plan etc
What exactly do you want your business logic to be for that flow?
i would build that customer portal, but what should i do when they click on cancel button?
That depends on what you want to happen. Do you want to cancel the Subscription and then try to process a one-time Invoice, if so you do things in that order. If you want a different order then you build that. I can help explain what you need to do to techincally build the flow you want, but I can't tell you what your business logic should be as that is a decision for you to make.
just this for now - want to cancel the Subscription
For that you have your backend make a request to our endpoint for canceling Subscriptions, providing the necessary parameters:
https://stripe.com/docs/api/subscriptions/cancel
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.