#Pavan-subscriptions
1 messages · Page 1 of 1 (latest)
@limpid cloak you can't update an incomplete subscription , so you can't really. Either set the quantity you need when creating the subscription, or update it after the first payment completed.
Can we delete this incomplete subscription and create new one ?
yes, that's an option too!
Is there any delete option ? I know cancel exists ?
they mean the same thing
you can't delete the whole Subscription object itself, since it's kept around for data consistency/reporting/bookkeeping, but cancelling does what you want.
Is update possible when subscription is in past_due state or unpaid state ?
And also incomplete_expired this status subscription got cancelled right ?
as far as I can tell yes it's possible
yes
Please give me link for different subscription status expained
got it
nvm
How to configure subscription should be cancelled instead of unpaid when retries exhausted ?
it's the settings on your dashboard, https://dashboard.stripe.com/settings/billing/automatic
@daring radish one more question, not sure should i open new thread or not
Subscription updatedSubscription = subscription.update(params);
if (updatedSubscription.getPendingUpdate() != null) {
// Updated failed with payment so revert
}
Is this right ?
updatedSubscription contains pendingUpdate object
that means payment failed right ?
yes, if you passed payment_behavior=pending_if_incomplete in the params for the update, and then there's a pending_update returned on the response, it means the payment for the update has failed
Thanks
Sorry, one more question. Can UpcomingInvoice be called without creating subscription. If yes please paste some code or some examples