#stone

1 messages · Page 1 of 1 (latest)

pale quailBOT
zealous jolt
#

hi! it depends how you do the upgrade.

#

in the default case, they just move to the $10 month plan immediately and stay on it, doesn't matter what happens to payments

delicate agate
#

Let me read it.

#

Are Debit cards or Sepa belong bank debits ?

sterile bone
delicate agate
#

Reference to :Pending updates aren’t supported when the subscription’s collection_method is send_invoice or when bank debits are used as the payment method for the subscription.

#

My customers use Cards and Sepa to pay.

sterile bone
delicate agate
#

By default, updates are applied regardless of whether payment on the new invoice succeeds. If payment fails,will the webhook event custom.subscription.delete be sent to my server?

sterile bone
#

customer.subscription.deletedis sent when a customer’s subscription ends. for failed payments you'll receive invoice.payment_failed events

delicate agate
#

itemBuilder.setPrice(toStripePriceId);
itemBuilder.setId(stripeSubscription.getItems().getData().get(0).getId());
subscriptionUpdateParamsBuilder
= subscriptionUpdateParamsBuilder.setProrationBehavior(SubscriptionUpdateParams.ProrationBehavior.ALWAYS_INVOICE);
subscriptionUpdateParamsBuilder
= subscriptionUpdateParamsBuilder.addItem(itemBuilder.build());
//Monthly -> Monthly
if (fromInterval.equals("month") && toInterval.equals("month") ){
subscriptionUpdateParamsBuilder = subscriptionUpdateParamsBuilder.setProrationDate(stripeSubscription.getCurrentPeriodStart());
}

    //Monthly -> Yearly
    //Yearly -> Yearly
    com.stripe.model.Subscription subscription
            = stripeSubscription.update(subscriptionUpdateParamsBuilder.build());
#

😣 Does this also apply to the immediate billing case of always_invoice?

sterile bone
#

Not sure I understand this part. I invite you to test and if you face any particular issue don't hesitate to come back with your follow up question and concrete example (stripe object Ids)

delicate agate
#

Sure, Thanks

#

👍