#amol_08238
1 messages · Page 1 of 1 (latest)
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.
- amol_08238, 3 hours ago, 17 messages
- amol_08238, 3 days ago, 5 messages
- amol_08238, 4 days ago, 4 messages
- amol_08238, 5 days ago, 5 messages
- amol_08238, 6 days ago, 6 messages
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.
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
Are you using collection_method: "send_invoice"?
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
You are creating a Subscription Item, not an Invoice.
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?
I need to know how you Subscription is set up in order to answer that. Hence the question above.