#dev | Logs for 2017-05-07
« return
[11:01:30] <Bytram> TheMightyBuzzard: hi!
[11:01:34] <TheMightyBuzzard> should be working. was working until it wasn't.
[11:01:45] <Bytram> I'm a bit confused by something I saw on the subscriptions page: https://dev.soylentnews.org
[11:01:55] <Bytram> Payments are handled by Stripe (for credit card payments and BitCoin) and PayPal (for PayPal payments and credit cards).
[11:02:09] <TheMightyBuzzard> Yes?
[11:02:17] <Bytram> so, we use Stripe for CC and we use PayPal for CCs?
[11:02:23] <TheMightyBuzzard> Either can handle them, yeah.
[11:02:38] <Bytram> rly?
[11:02:40] <TheMightyBuzzard> Users' choice.
[11:02:41] <Bytram> huh
[11:03:02] <Bytram> and... it's the same to us, overhead wise?
[11:03:15] <Bytram> 1.9% + $0.30
[11:03:15] <TheMightyBuzzard> nah, paypal takes a bigger bite outa our ass.
[11:03:24] <Bytram> ewww
[11:03:31] <TheMightyBuzzard> i think anyway.
[11:03:31] <Bytram> how much?
[11:04:14] <TheMightyBuzzard> 1%, turns out.
[11:04:37] <Bytram> for PayPal? That's *better* than Stripe
[11:04:43] <TheMightyBuzzard> they charge 2.9% + $0.30
[11:04:55] <Bytram> coffee++
[11:04:55] <Bender> karma - coffee: 10
[11:05:04] <Bytram> I musta misremembered
[11:05:14] <TheMightyBuzzard> no, you got it backwards
[11:05:28] <TheMightyBuzzard> you were correct.
[11:05:43] <TheMightyBuzzard> the 1% is how much more paypal charges us.
[11:05:50] <Bytram> OH!
[11:06:08] <Bytram> i thot you meant they took out just 1%. Now I gots ya.
[11:06:31] * TheMightyBuzzard dislikes paypal
[11:06:45] * Bytram didn't notice :P
[11:07:04] <TheMightyBuzzard> aside from giving you a net amount. they're shitstains to code against. much more complex.
[11:07:51] <Bytram> prolly have more legacy code and more issues they had to deal with in the past with other countries, etc.
[11:07:57] <Bytram> confuzeled the interface
[11:08:05] <TheMightyBuzzard> oh, my bad. you was wrong on the stripe fees. 2.9% +30 there too
[11:08:26] <Bytram> like I said, memory is undercaffeinated.
[11:08:50] <TheMightyBuzzard> eh, doubt it. stripe ain't new by any means.
[11:09:09] <Bytram> but, paypal was certainly around before stripe, right?
[11:09:36] <TheMightyBuzzard> not to my knowledge. could go either way.
[11:10:22] <TheMightyBuzzard> urg, i needs nicotine
[11:10:49] <Bytram> yep. cya in a bit
[11:16:13] <TheMightyBuzzard> better
[11:17:44] <Bytram> is there a cap on fees either of them charge? once you get past $x, we don't charge anything more?
[11:18:07] <TheMightyBuzzard> not for CCs
[11:18:17] <Bytram> nodnod
[11:18:31] <TheMightyBuzzard> dunno about paypal. $5 for btc.
[11:20:08] <Bytram> I'm confused.
[11:20:09] <Bytram> https://dev.soylentnews.org
[11:21:07] <Bytram> Just did a $500 gift sub to you with BC... 1% of $500 if $5... so net is $500 - $5 == $495, but I see net showing as $496.00
[11:22:29] <TheMightyBuzzard> s'correct. that's what it shows on stripe ledger.
[11:22:48] <Bytram> Just found what I was looking for... cap is $5
[11:22:51] <Bytram> "Transparent pricing
[11:22:51] <Bytram> Stripe charges just 0.8% per successful Bitcoin transaction, capped at $5. There are no other fees."
[11:23:02] <Bytram> ^^^ seen on: https://stripe.com
[11:23:06] <TheMightyBuzzard> yep
[11:23:59] <Bytram> so... why is the Re3cent Subscriptions Payments page showing a net of $496 for my $500 BC subscription?
[11:24:17] <TheMightyBuzzard> because 0.8% is not 1%
[11:24:27] * Bytram expected to see a net of $495
[11:24:35] <Bytram> facepalm++
[11:24:35] <Bender> karma - facepalm: 1
[11:24:40] * TheMightyBuzzard chuckles
[11:24:41] <Bytram> coffee++
[11:24:41] <Bender> karma - coffee: 11
[11:24:55] <Bytram> definitely need more of that.
[11:25:04] <TheMightyBuzzard> the smaller ones check out with the ledger as well. to the penny.
[11:25:12] <Bytram> gonna fix some more, take a break and then come back at it, shortly.
[11:25:19] <Bytram> NOICE!
[11:26:08] <TheMightyBuzzard> aight. see ya in a few.
[11:38:58] <Bytram> back
[11:39:55] <Bytram> TheMightyBuzzard: just got a server error when trying to buy a 30-day sub for myself in the amount of $626.25 using BC:
[11:39:56] <Bytram> OK
[11:39:56] <Bytram> The server encountered an internal error or misconfiguration and was unable to complete your request.
[11:39:56] <Bytram> Please contact the server administrator, slash@dev.soylentnews.org and inform them of the time the error occurred, and anything you might have done that may have caused the error.
[11:39:57] <Bytram> More information about this error may be available in the server error log.
[11:40:12] <Bytram> :(
[11:40:47] <TheMightyBuzzard> yeah, i expect there's info in the server log
[11:41:39] <Bytram> at .8% overhead, that should have worked out to $5.01 fee, was checking the edge case to see if it was indeed capped at $5.00
[11:41:57] <TheMightyBuzzard> you can't check that
[11:42:09] * Bytram has no idea where/how to do that
[11:42:10] <TheMightyBuzzard> YOU can't check that rather
[11:42:31] <Bytram> oh, cannot check that. got it.
[11:42:42] <Bytram> if you would please be so kind, fine sir?
[11:42:51] <TheMightyBuzzard> cause my code absolutely will not allow anything over $5 to be used as the fee on btc transactions.
[11:44:12] <TheMightyBuzzard> Bytram, our code don't allow for partial dollar payments
[11:44:13] <Bytram> I thought Stripe limited the amount they charged, but the subscription should still go through... if someone wants to subscribe with $1000.00, I'd think we'd want to let them do it.
[11:44:49] <Bytram> the subscription page shows pre-filled in values with decimal points, e.g. 15.00
[11:45:06] <Bytram> if we do not accept non-dollar amounts, then the fields should be integer-only
[11:45:32] <TheMightyBuzzard> my code has nothing to do with what stripe charges. just what they tell me they'll charge. we do NOT get a net amount returned to us, remember? i have to calculate it myself so those numbers you see are absolutely not reliable.
[11:45:34] <Bytram> and, we should check that, AND inform the user, before we advance to the accepting-payuments part of the trans
[11:45:45] <Bytram> oh, I understand that.
[11:46:16] <TheMightyBuzzard> they are calculated entirely by my code. a guess.
[11:46:46] <TheMightyBuzzard> and you can't set a field to be integer only in html
[11:47:50] <TheMightyBuzzard> we can, however, tell people integer only.
[11:48:16] <TheMightyBuzzard> or we can fix it
[11:48:18] <Bytram> understood, but you have the $ amount from the sub page that the use has 'offerred' and before you proceed to the next page where they choose PP / Stripe, we could check, see it's not an integer, and give 'em an error *then*, no?
[11:48:52] <TheMightyBuzzard> rather just fix it so it passes a two-digit float.
[11:49:04] <Bytram> and, if it is integer only, then we should suggest same by leaving out the ".00" of each of the pre-filled-in amounts
[11:50:37] <Bytram> On the initial subscription page:
[11:50:37] <Bytram> Length of subscription and price. Choose the length of the subscription and if you want you can purchase your subscription for custom price, in US dollars.. (Price must be equal or greater than the default minimum values.)
[11:50:37] <Bytram> change it to be:
[11:50:37] <Bytram> Length of subscription and price. Choose the length of the subscription and if you want you can purchase your subscription for custom price, in <b>whole</b>US dollars. (Price must be equal or greater than the default minimum values.)
[11:50:42] <Bytram> Length of subscription and price. Choose the length of the subscription and if you want you can purchase your subscription for custom price, in <b>whole</b> US dollars. (Price must be equal or greater than the default minimum values.)
[11:50:53] <TheMightyBuzzard> rather just fix it so it passes a two-digit float.
[11:51:19] <Bytram> sorry, /me left out a space. also, note that there was a doubled period ".." in the current page
[11:52:06] <Bytram> not sure I understand what u mean by two-digit float, are you saying we do not want a 3-digit donation? e.g. $100 ??
[11:52:25] <TheMightyBuzzard> floating point number with two digits after the decimal point
[11:52:56] <Bytram> oh! So, in that case it WOULD then accept $626.25 ??
[11:52:59] * TheMightyBuzzard hands Bytram another cuppa joe
[11:53:13] <TheMightyBuzzard> right.
[11:53:51] <Bytram> ahhh, I was going off of what you said earlier: "<TheMightyBuzzard> Bytram, our code don't allow for partial dollar payments"
[11:54:05] <Bytram> didn't understand you were suggesting we remove that limitation. got it!
[11:55:02] <TheMightyBuzzard> i dunno why it don't but i expect it's just something i never go around to.
[11:55:18] <Bytram> nod nod
[11:56:04] <TheMightyBuzzard> hasn't come up in the time we been using stripe cause nobody's tried to give us pocket change that i know of.
[11:56:39] <Bytram> also, while you are at it, I've got a favor to ask... I'm really rocking your adding: class="subs_net" to the Recent Subscription Payments page; would *really* appreciate it if you'd also add: class="subs_gross", as well.
[11:56:39] <Bytram> ~blame
[11:56:57] -!- exec [exec!~exec@crutchys.brothel] has joined #dev
[11:57:06] <Bytram> ~blame
[11:57:08] * exec points at Bytram
[11:57:14] <Bytram> much bettah
[11:57:50] <TheMightyBuzzard> not gonna happen till i'm back on the drugs. i don't have the patience or focus to code.
[11:58:33] <Bytram> and, one other, minor thing, but it confuzles me whenever I load the page, please put the "gross" column to the left of the "net" column on the Recent Subscription Payments page.
[11:59:01] <Bytram> nod nod... I understand. really appreciate having a chance to bounce things off of ya!
[11:59:05] <TheMightyBuzzard> talk to pj if you want it done for this update cycle. i am no capable.
[11:59:13] <TheMightyBuzzard> paulej72, ^^
[11:59:15] * Bytram is not at 100% either
[11:59:38] * TheMightyBuzzard is fooking miserable
[12:00:18] <TheMightyBuzzard> withdrawls plus full-on adhd symptoms again. no focus or patience with anything.
[12:00:52] <TheMightyBuzzard> can't watch a tv show all the way through. can't read more than a chapter of a book. likely can't fish.
[12:01:21] <Bytram> so, in a nutshell, (1) either (a) allow fractional subscription amounts OR prompt correctly that we only accept whole dollar amounts and trap it if we receive a non-int value; (2) Add: class="subs_gross" to Recent Subscriptions Page, (3) move payment_gross to the left of payment_net on that page, too.
[12:01:35] <Bytram> whoa! can't fish? {{{ TheMightyBuzzard }}}
[12:01:38] <Bytram> you ARE sick!
[12:02:01] <TheMightyBuzzard> sitting still and paying attention to anything is right out the window.
[12:02:14] <TheMightyBuzzard> makes for an exceedingly long day
[12:02:59] <Bytram> sorta like being in a room with a strobe light set to 1 second intervals... everything is moving around and hard to keep up with the jumbled activity?
[12:03:17] <Bytram> ^^ room full of people at a party
[12:04:51] <TheMightyBuzzard> more like having a two-year-old in your head with people waving shiny things at him
[12:05:07] <Bytram> Oh. My. -- My heart goes out to you.
[12:05:30] <TheMightyBuzzard> all. day. long.
[12:05:38] <TheMightyBuzzard> it doth suck much goat wang.
[12:05:41] <Bytram> mebbe listen to music with eyes closed?
[12:05:51] <Bytram> though speaketh thruf
[12:06:04] <Bytram> TheMightyBuzzard: pm
[12:06:19] <TheMightyBuzzard> would last about two songs then i'd lose focus
[12:23:36] <Bytram> yeah, but that'd mean that two song's worth of time would have passed, too.
[12:24:06] <Bytram> just need to keep distracted long enough for your body to do its thing in its own time.
[12:24:28] <Bytram> it may not be the solution, in and of itself, but can be a tool to help make it through a bit longer
[12:24:42] <Bytram> break time
[16:48:58] <chromas> in html5 you can put pattern="regex" in the input field and it'll toss up a warning (but doesn't announce what the format should be)
[16:52:08] <chromas> or if you do type="number" step="1" then it'll limit to ints plus give the field spinner buttons