#Pavan-subscriptions

1 messages · Page 1 of 1 (latest)

daring radish
#

@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.

limpid cloak
#

Can we delete this incomplete subscription and create new one ?

daring radish
#

yes, that's an option too!

limpid cloak
#

Is there any delete option ? I know cancel exists ?

daring radish
#

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.

limpid cloak
#

Is update possible when subscription is in past_due state or unpaid state ?

#

And also incomplete_expired this status subscription got cancelled right ?

daring radish
limpid cloak
#

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 ?

daring radish
limpid cloak
#

@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 ?

daring radish
#

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

limpid cloak
#

Thanks

limpid cloak
#

Sorry, one more question. Can UpcomingInvoice be called without creating subscription. If yes please paste some code or some examples