Hi I'm testing the application fee with stripe connect. I need to do this with live transactions, correct?
tr12
chike: no, application fees work in test mode
in general, you should never need to test things in live mode
chike
okay good. I just noticed that when I look in my stripe account dashboard it tells me that connected accounts don't exist in test mode
tr12
presumably it's because you've connected the connected accounts to your platform in live mode
when you connect the accounts, if you're using oauth, you'd use your development application id to connect them in test mode
chike
That's what I thought
thanks
rustemr has quit
FrostCandy joined the channel
nemothekid has quit
Reh joined the channel
Reh has quit
FrostCandy has quit
kcantwel has quit
ifnull joined the channel
nemothekid joined the channel
ifnull has quit
blaflamme has quit
Jmar31 has quit
T1m0thy has quit
kcantwel joined the channel
jtmarmon has quit
jtmarmon joined the channel
kcantwel has quit
chike has quit
Reh joined the channel
bostonmacosx has quit
Reh has quit
markin_ joined the channel
markin_ has quit
hover_ joined the channel
hover_
Hey everyone is the SMS gateway down for Stripe two factor auth? Not getting a verification code
felipe_ has quit
manfrin has quit
openstruct joined the channel
tr12
hover_: seems to be working
sr2016 has quit
sr2016 joined the channel
cuhuak joined the channel
kcantwel joined the channel
cuhuak
Hi guys! How do I check whether I need to create invoice or not. When I creating an invoice stripe may say error: message: Nothing to invoice for customer, type: StripeInvalidRequestError, rawType: invalid_request_error
tr12
you'd check to see if there are any outstanding invoice items
the only way invoice items appear is if you make them, though, so it's usually pretty easy to tell when you need to make an invoice
nomad__ has quit
cuhuak
I
I'am using recurrent payments (subscription) so invoice items may appear during plan upgrade
tr12
that'll happen if you're using prorate=true (the default)
if you change plan intervals, or leave/start a trial, or go from a free to paid plan or vice versa, an invoice will be immediately created to consume those prorations
otherwise, you'd want to create one yourself
kcantwel has quit
probably the easiest way to check is to use the upcoming invoice api to see if the next invoice will have more line items than just the subscription, and to immediately invoice if it does (which will cause the next invoice to stop having more line items)
cuhuak
The problem is in status codes that stripe send me when request is invalid. For both non-existing-customer and customer has no invoice to be created stripe will return almost same response (stripe.invoices.create({customer: customerId}))
tr12
ie, invalid_request_error?
yes, that's expected
McSnopes has quit
cuhuak
so i need to handle this error. but i dont want to handle it via response message. error.message === 'Nothing to invoice for customer'. That is strange :D
tr12
invalid_request_errors are generally assumed to be the result of a programming error, so you're not expected to respond to them so much as avoid them