#sreekanth_api
1 messages · Page 1 of 1 (latest)
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.
- sreekanth_api, 1 hour ago, 45 messages
- sreekanth_api, 21 hours ago, 41 messages
- sreekanth_sub-multi-prod, 1 day ago, 35 messages
👋 Welcome to your new thread!
⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1246051181973995624
📝 Have more to share? Add details, code, screenshots, videos, etc. below.
hi there!
the minimum amount Stripe can charge is $0.50
since you are below the minimum here, we charge the customer $0 for now, but once the total reach above $0.50 he will have to pay
yes that's normal, the first Invoice was for $0.14, which is below $0.50, so we didn't charge the user for the $0.14.
so the second invoice will include the $0.14 of the previous invoice
"applied balance" is basically how much money the customer ows you
i dont understand why first invoice was for $0.14
we didnt make any payment
It's because you set the billing_cycle_anchor when you created the subscription here: https://dashboard.stripe.com/logs/req_Ifc96k8mNleddQ
That means the initial period will be for ~1 day from 2024-05-31 10:20:59 to 2024-06-01 10:20:59 so we prorate the items to reflect that
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Also, this is for the upcoming invoice (the next period). The initial invoice generated on subscription was for £0.14: in_1PMSZzJKyfLg4PX0mVvvIx0i
Which is below our min. charge amount, so it's applied as a debit to the customer balance and we charge it on the next invoice the subscription (as seen in the screenshot) – £1.14
is it same for sub_1PMTGMJKyfLg4PX0JFfSGZis?
Is what the same?
this is the request payload for subscription {
"expand": {
"0": "latest_invoice.payment_intent"
},
"off_session": "true",
"cancel_at": "1717844684",
"metadata": {
"giftAmount": "0.25",
"userId": "f6e2118f-9c6f-43f2-a97f-8ce5a8da2a16",
"ngoId": "[1b49ce61-7400-4851-b248-cb6f8f159e84, 0ecc97c4-fbf3-4617-8d5e-285af2268b98]",
"appfee": "0"
},
"items": {
"0": {
"price": "price_1PMTGMJKyfLg4PX0je3WOmCT"
},
"1": {
"price": "price_1PMTGMJKyfLg4PX0XI37SzQh"
}
},
"customer": "cus_PvqTJ8157vEOOB"
}
The invoice (in_1PMTGMJKyfLg4PX0nSnFEDMH) is for £1.14. £1.00 for the items, and the £0.14 in pulls from the customer balance that they 'owe' for a previous invoice
yes... can you check this sub_1PMTGMJKyfLg4PX0JFfSGZis...we have created without billing_cycle_anchor
I just explained why it's £1.14, billing_cycle_anchor is irrelevant in this case
that is for next invoice right... but initial invoice charged for 0.14
The customer has a £0.14 balance which means we'll bill them for that on the next invoice created for them
If you want to prevent that you need to decrement their balance: https://docs.stripe.com/billing/customer/balance#modifying
The credit balance automatically applies toward the next invoice finalized to a customer.
okay... when amount is less than 0.14 we will add in the next invoice correct?
Anything less than the min. charge amount we don't bill for and it's added to the customer balance and then applied to the next invoice: https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts
For GBP that's £0.30
okay
Suppose I create a subscription for 10-days with a weekly billing interval. What will happen to the extra 3 days?
Did you test it?
That's literally the easiest way to confirm how the API behaves in specific scenarios. What I suspect will happen:
- Full invoice for £1.00 for the initial 7-day period
- Prorated invoice for the next 3-day period before cancelling
Yes, we did. The issue is that we created $0.50 donations to two charities, so it charged $1, which is fine. However, for the next invoice, it is showing $0.07 for each charity, resulting in a total of $0.14.
yes
can we stop applying proration ?
https://docs.stripe.com/billing/subscriptions/prorations#disable-prorations
You can try passing that on create
okay
And one more issue: we have billing_cycle_anchor, which supports monthly and yearly intervals. How can we achieve the same thing for a weekly interval?
I don't understand the question
What are you trying to do with the billing_cycle_anchor specifically? It's just a timestamp and is interval agnostic