#tymm

1 messages · Page 1 of 1 (latest)

warm garnetBOT
outer crane
tropic minnow
#

im getting error

You cannot update a subscription with a draft invoice from pending_update. Please finalize and then pay or void the draft invoice on this subscription before making any new updates.; request-id: req_NxjgfsZM0YFBO7

#

i had to do this

SubscriptionUpdateParams.builder()
.setCollectionMethod(SubscriptionUpdateParams.CollectionMethod.SEND_INVOICE)
.setDaysUntilDue(1L)
...
so that user has a chance to review the order before paying it

outer crane
#

payment_behavior: 'pending_if_incomplete' should be set in the same request that you add the product

#

It shouldn't be a separate request

tropic minnow
#

u mean in SubscriptionItem.Update instead of Subscription.Update?

outer crane
tropic minnow
outer crane
#

payment_behavior: 'pending_if_incomplete' can only be used Subscription Update API. You can perform the item update in Subscription Update API as well.

tropic minnow
#

i only see "add_invoice_items"

outer crane
tropic minnow
#

how do i change the proration behavior for certain item using SubscriptionUpdateParams.Item.builder()?
i dont see the option to do that

outer crane
#

Not on the item level

tropic minnow
#

but this one gives me problem where the subscription will get stuck in past due if payment failed

outer crane