#Zarar Ansari

1 messages · Page 1 of 1 (latest)

austere shardBOT
paper wolf
#

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

young edge
#

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.

paper wolf
#

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

young edge
#

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.

  1. CancelNow
  2. Cancel
  3. Resume
#

$subscription = \Stripe\Subscription::retrieve($subscriptionName);

$subscription->cancel();

#

['prorate' => 'true'] what does it mean? if i add this at the time of cancel

paper wolf
#

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

young edge
#

ok mate thanks

young edge
#

if i have to resume the same cancel subscription what should i have to do ?

paper wolf
#

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