#Zarar Ansari
1 messages · Page 1 of 1 (latest)
and one more thing, i have to change the payment method to check if card is expire or user can be able to add multiple methods
Can you clarify your first question here? Are you looking to cancel at the end of the period?
For the second question, yes. You can always collect another payment method and set that as the default for the subscription or the customer
Hi, yes mate ui want to cancel the
i want to give option to customer imediate cancel, cancel at end of period or resume it.
Gotcha. Are you making your own custom webpage for this? Stripe does provide a Customer Portal if you want to direct your users to a pre-built page with this functionality. https://stripe.com/docs/customer-management
I can help if you are making the API calls directly, just wanted to mention that
If you are making the API call directly, you can set cancel_at_period_end to true when updating your subscription
Yes i am actually using the laravel cashier package but that doesn't work with multiple subscriptions, when i do cancel it, it given an error there is such subscription blah blah..
So, for now i am using the api for cancel for these three options.
- CancelNow
- Cancel
- Resume
$subscription = \Stripe\Subscription::retrieve($subscriptionName);
$subscription->cancel();
['prorate' => 'true'] what does it mean? if i add this at the time of cancel
Proration is for making adjustments to how much the user is charged when making changes mid billing cycle https://stripe.com/docs/billing/subscriptions/prorations
So for example if you cancel midway through the month, turning proration on would refund them for the second half of the month that they already paid for
ok mate thanks
if i have to resume the same cancel subscription what should i have to do ?
Unfortunately subscriptions can't be resumed once they are cancelled, you would need to create a new subscription on the same user. You can re-use the old payment method though so you don't have to re-collect payment information