#amol_08238

1 messages · Page 1 of 1 (latest)

abstract yewBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

untold sequoia
#

Hi, let me help you with this.

#

No, I don't think you can create a Checkout Session when updating Subscription.

#

But if you have a Payment Method saved for this Subscription or Customer, it will be automatically charged.

mental valve
#

So will customer get email having invoice of the amount of added product (when proration behaviour set to ALWAYS_INVOICE)?

#

I did not get email in test mode for the invoice, so need confirmation on that

untold sequoia
#

Are you using collection_method: "send_invoice"?

mental valve
#

No, I am using follwing code to create invoice
Stripe.apiKey = stripeConfig.getApiKey();

    SubscriptionItemCreateParams params =
            SubscriptionItemCreateParams.builder()
                    .setSubscription(subscriptionDetail.getStripeSubscriptionId())
                    .setPrice("price_1OITjQCCtT389lEbrcJxLd7z")       .setQuantity(1L)

.setProrationBehavior(SubscriptionItemCreateParams.ProrationBehavior.ALWAYS_INVOICE)
.setPaymentBehavior(SubscriptionItemCreateParams.PaymentBehavior.DEFAULT_INCOMPLETE)
.build();

    SubscriptionItem subscriptionItem = SubscriptionItem.create(params);
#

invoice is created automatically using this

untold sequoia
#

You are creating a Subscription Item, not an Invoice.

mental valve
#

yes

#

After creating subscription item I need to notify customer about payment due

#

how can I do that? will stripe send newly created invoice due to added subscription item to customer?

untold sequoia