markin: I've made a mess out of my stripe test area, is there some way to flush all of it at once via the dashboard or preferably via an API call?
Blackamoor
then again since thats not working maybe I will relent and put them in mashrc
markin
daniello: Account settings -> Data -> Delete Test Data
Blackamoor: the idea is you don't want to put them in a file that you check into version control
sampotts has quit
daniello
markin: Thank you!
Blackamoor
ok
well I'll set them in bashrc and see if that helps
how do I relad bashrc without logging out?
I forgot
markin
source /etc/bashrc
soundis
run ~/.bashrc ? :)
keithbrown
When a user cancels an account in my app but has an active subscription. Should I make them handle the subscription first then allow the cancelation or just dynamically do it. Their subscription dictates the state of possibly 100's of users. So if the leader wants to cancel the account how should I handle that?
soundis
okay source is probably a good idea
Blackamoor
thanks markin
landakram has quit
daniello has quit
keithbrown
This subscriber registers with the app then applies for a subscription and invites friends to use under his/ her account
tr12
keithbrown: generally, you want to make it explicit what is going to happen as the result of cancelling the account
keithbrown: you could make the user cancel the subscription as a separate operation, or just be really clear that cancelling the account will also cancel the subscription (and therefore interrupt the service of the people they've invited)
keithbrown
Yeah. I have a ton of messages and popups. But I would like to know what is typically done in this situation.
Ok
zz_KLUTCH- has quit
soundis
question: would you consider it a good practice to run the stripe charge as a separate job outside the http request (for example sidekiq in rails), to ensure the http request won't time out and to avoid blocking other requests?
this would imply polling purchase status on the client side
tr12
soundis: does the result of the http request depend on the result of the charge?
right
polling is generally pretty gross
soundis
yes, I'd like to avoid it if possible
sandstrom joined the channel
keithbrown
Another question is ther a practice for pinging subscription status during logon. (Node) something that just returns true or false and not the whole response?
tr12
soundis: I wouldn't do that unless you're actively running into worker contention
dannymichel joined the channel
soundis
did the specs specify maximum duration of a stripe charge?
tr12
keithbrown: no, you'd get the whole subscription, and then just not inspect most of the response
soundis: there isn't a hard upper limit specified, iirc
soundis
hmmh, would be cool if you could define it yourself
tr12
soundis: well, you can, in a sense
soundis
our old backend coder said something about 80 seconds, if I recall
tr12
soundis: most http clients allow you to specify a request timeout
Peter___ joined the channel
the issue is that stripe is going to continue processing the request even after you terminate the TCP connection
Peter___
hello
tr12
soundis: so you'd want to use idempotent request keys so you can get the status of the request at some later date
Peter___: hello
keithbrown has quit
Peter___
Can i use strip to sell travel ?
tr12
soundis: I'm not sure where the 80s number is coming from
soundis
tr12: so are you saying I'd just let stripe do its job and query stripe later to see if everything succeeded?
Peter___
Hello Can I use stripe if My company is Selling Flights?
tr12
Peter___: the prohibited business list lists "travel reservation services and clubs; airlines; cruises; timeshares;"
felipe has quit
zz_KLUTCH- joined the channel
Peter___: iirc, plane tickets in particular are considered to have very high chargeback risk, so it's pretty unlikely stripe would be able to support htat
*that
soundis: to be clear, I'm not recommending this, but it's something you could do in theory
Peter___
I know people who are tour operators and they use strip
stripe
thanks <tr 12>
soundis
tr12: so the recommendation is to just process it in one request until possible problems arise?
tr12
Peter___: for a solid answer, you should contact support directly
soundis: well, part of the problem you're running into here is that rails doesn't handle lots of concurrent requests well
Peter___
Have a good day statefarm is there
devbug has quit
soundis
yes, the processes eat lots of memory so we can't have a huge amount...
tr12
soundis: you can configure rails to run in multithreaded mode, but I've heard bad things about eventmachine
felipe joined the channel
Peter___ has quit
erikr98 has quit
soundis: also, it's sort of unclear how running them in an async worker solves the fundamental issue of "running lots of concurrent requests is going to hurt"
soundis: you're going to get exactly the same issue where you start to have contention for workers
soundis
tr12: The point with the worker is that the unicorn processes won't get blocked, or time out
tr12
soundis: and the queue starts backing up - the only difference is that this doesn't cause delays in serving all requests, just whatever work is being performed by the async workers
I get that
keithbrown joined the channel
keithbrown
tr12: thanks
tr12
soundis: workers are going to be appropriate for long-running background jobs where the connection is likely to time out on the request
that's not really the issue here
it's the volume of requests that you're worried about, no?
soundis
tr12: could be you're right. as far as I understand sidekiq also runs processes so there's the same problem with memory there
tr12
pushing those requests into a queue is not going to make the request volume go away, it's just going to move the problem elsewhere
irctc874 has quit
it seems to me spinning up a bunch of workers is ~equivalent to just spinning up more unicorn workers (possibly on more machines)
and the latter solution is simpler anyhow
soundis
yes, definitely
sandstrom joined the channel
uri_ joined the channel
felipe has quit
tr12: thanks for the good advice :)
tr12
soundis: any time!
felipe joined the channel
trevor joined the channel
keithbrown has quit
dsilfen has quit
dsilfen joined the channel
felipe has quit
Blackamoor has quit
felipe joined the channel
Guest__ joined the channel
k13nox joined the channel
pixelpop joined the channel
sandstrom joined the channel
pixelpop
Hey
tr12
pixelpop: hello
pixelpop
I know Stripe only pays out Bitcoin in USD. Is it possible to just send the USD to a Canadian bank account and for me to pay the currency conversion fee?
tr12
pixelpop: no, unfortunately, you need a US based bank account denorminated in USD
If I set up a US bank account with my bank in Canada and then just transfer it over.. That would work right?
tr12
yes, but it would need to be based in the US
you can set up a USD-denominated account in canada, but that's not going to work
pixelpop
Okay thanks :)
tr12
one of the major banks (scotiabank I think) partners with an american bank, so that may be useful
koopajah joined the channel
dsilfen has quit
scellow has quit
madmaty joined the channel
Blackamoor joined the channel
madmaty
So i am using wp and woo commerce I have all my store items listed as points currency. using stripe is there a way to add make the sales go though in canadian dollars
tr12
madmaty: what do you mean by points currency?
some sort of in-store credit?
madmaty
well my store is listed with a "made up currecny" it equals out to about 1 point = 2.9 CDN in my database the price is listed at 1 though
tr12
madmaty: I suspect the answer is going to have more to do with woocommerce than stripe
you may want to consult their documentation or support
felipe has quit
madmaty
ok i will shoot them a request for an anwser
dsilfen joined the channel
Blackamoor has quit
gnoze5 has quit
pixelpop
If I've got a Canadian bank on my Stripe account and I accept cc with that, what will happen to the BTC? Can I get it to just send it to my wallet?
markin
attempting to create the bitcoin charge should error iirc
tr12
pixelpop: stripe always converts the BTC to USD, but if you just want to accept BTC, you don't need stripe to do that
uri_ joined the channel
irctc370 joined the channel
madmaty has quit
irctc370 has quit
devbug joined the channel
glehnert joined the channel
pixelpop has quit
k13nox_ joined the channel
glehnert has quit
stripe597 joined the channel
stripe597
hello stripe
I have a complicated question
markin
stripe597: sure whats the question>
stripe597
is it possible for a managed account to register a connect application?