#dineshkumar_docs
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1356978278958764115
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- dineshkumar_docs, 5 days ago, 13 messages
Hi ๐ I'm sorry, I don't understand what you're trying to ask. Would you mind trying to rephrease your question as a question or help me understand what behavior you want to adjust about your flow?
my scenario is
- when user click the checkout button we ,create a subscription incomplete status.
https://screenrec.com/share/r51zSi8ZAB - and then we show purchase button with purchased item and card detail enter screen.
https://screenrec.com/share/EqCUM78wGB - if user click the purchase button then we will confirm the payment and update the subscription as active status.
When creating a subscription, if a invoice amount is below $0.50 with apply the proration
and the invoice as paid and subscription as active.
but i want incomplete status for subscription, because i setup is PaymentBehavior = "default_incomplete",
i tried attempted below
var subscriptionOptions = new SubscriptionCreateOptions
{ Customer = customer.Id,
Items = subscriptionItems,
PaymentSettings = customer.InvoiceSettings.DefaultPaymentMethodId == null ? new SubscriptionPaymentSettingsOptions { SaveDefaultPaymentMethod = "on_subscription" } : null,
PaymentBehavior = "default_incomplete",
PromotionCode = promoCodeId,
BillingCycleAnchorConfig = always_invoice,
ProrationBehavior = "always_invoice"
That's because amounts that small are below our minimum charge amount:
https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts
So the payment isn't processed and instead the balance of the Invoice is applied to the Customer's balance so it can be added to their next Invoice:
https://docs.stripe.com/billing/customer/balance#examples:~:text=When the amount due on an invoice is less than the minimum chargeable amount the invoice is marked as paid and the amount owed moved to the invoice balance as a debit. This functionality only occurs for customers without a cash_balance
ok, understood, thanks!
Any time!
Initially stripe team advised the steps for above my scenario
Please remember that to build a subscription you can follow these steps:
https://docs.stripe.com/billing/subscriptions/build-subscriptions?ui=elements#create-pricing-model
1.Create a Pricing Model if one does not exist
2.Create/Retrieve a Customer
3.Create a Subscription
4.Collect payment Method Details
5.Listen for webhooks
can i Create a Subscription before the Collect payment Method Details?
Yeah, are you running into an error when trying to do so?
no i am not tried this "Create a Subscription before the Collect payment Method Details"
if possible please give the steps flow and doc..
Whoops, nevermind, that guid was the wrong way around so I deleted the link.
sorry my question is wrong wait..
This one:
https://docs.stripe.com/billing/subscriptions/build-subscriptions?platform=web&ui=elements
can i Create a Subscription after Collect payment Method Details?
what i expect steps,
1.Create a Pricing Model if one does not exist
2.Create/Retrieve a Customer
3.Collect payment Method Details
4.Create a Subscription
5.Listen for webhooks
Ah, yup, that's possible too, and is the first guide I had stared to share ๐ let me grab that link again
ok understood, thanks
need some clarifications also below,
In my web app I need to have a valid payment method for each customer also should have a successful payment confirmation before using a service.
How to handle this in stripe when i am having a minimum amount invoices to avoid having a active subscription.?
You can't really.
Either you need to ensure the payment is more than our minimum charge amount for the currency being used so a payment can be processed, or be willing to grant access to the service without an initial payment.
ok thanks toby.