#dev | Logs for 2017-04-20

« return
[09:30:47] -!- NCommander has quit [Quit: Coyote finally caught me]
[21:21:26] * Bytram tries again to perform a BC subscription
[21:21:41] * Bytram clicks https://dev.soylentnews.org
[21:22:20] * Bytram clicks on radio button: "Buy Subscription for Bytram"
[21:22:35] * Bytram clicks on radio button: "30 Day: [5.00]"
[21:22:46] * Bytram clicks "Continue" button
[21:23:08] * Bytram sees new page display: "Preferences: Confirm subscription and choose payment type "
[21:23:23] * Bytram clicks "Pay with card or BitCoin" button
[21:23:58] * Bytram sees new modal dialog box display.
[21:24:23] * Bytram enters e-mail addy: bytram@soylentnews.org
[21:24:30] * Bytram clicks on "BitCoin"
[21:25:08] * Bytram saw dialog box update, briefly displayed some amount of bitcoin, and disappeared!?!!
[21:25:48] <TheMightyBuzzard> s'what it should have done.
[21:26:01] <TheMightyBuzzard> Transaction py_1AAmmPKAL8UJd4wp5iNf9n9w completed. Thank you for supporting Dev.SN.
[21:26:03] <Bytram> but it went away seemingly without my having a chance to confirm it.
[21:26:08] <Bytram> https://dev.soylentnews.org
[21:26:46] <Bytram> I woulda thought it would have stayed up long enough for me to read it, copy off the amount of BC, and then wait for me to click "Okay" or something to dismiss it.
[21:26:52] <TheMightyBuzzard> ya, normally that would be handled by a bitcoin client on your end and then you'd have to put information in but since they're running the bitcoin client they fill it out and hit submit for you.
[21:27:14] <Bytram> does it tell *us* how many BC were charged?
[21:27:28] <TheMightyBuzzard> yeah in the log in the db.
[21:27:47] <TheMightyBuzzard> which is hard to get to right now with no mysql client on dev
[21:27:54] <Bytram> nod nod
[21:28:45] <Bytram> also, i just noticed ont he Recent Subs payment page... just says "Stripe" -- we need to display something that distinguishes CC from BC payments
[21:28:58] * Bytram scrapes that page and calcs net amounts for updating the nagger
[21:29:00] <TheMightyBuzzard> five dollars?! you cheapass.
[21:29:23] <TheMightyBuzzard> that's quite difficult really.
[21:30:11] <TheMightyBuzzard> and kinda irrelevant. we never see btc in our account, just dollars.
[21:30:26] <Bytram> there's a different calculation for NET amount we get... there's gotta be SOMETHING returned that tells us one from thew other.
[21:31:11] <TheMightyBuzzard> well it was a $5 fee on $5k, so i'm thinking it's pretty trivial.
[21:31:31] <Bytram> "Transparent pricing
[21:31:31] <Bytram> Stripe charges just 0.8% per successful Bitcoin transaction, capped at $5. There are no other fees."
[21:31:37] <Bytram> ^^^ from: https://stripe.com
[21:31:38] <TheMightyBuzzard> oh, handy
[21:32:26] <Bytram> whereas CC payments overhead is: ($x * 1.9%) + $0.30
[21:32:59] <TheMightyBuzzard> we like bitcoin payments then
[21:35:52] <Bytram> nod nod
[21:36:01] <Bytram> but we gots to know which way they paid
[21:40:44] <Bytram> oh, with all the security updating that has been going on, did we cover all the bases for supporting striped, etc?
[21:42:24] <TheMightyBuzzard> there's nothing to cover. we just include a link to their javascript and they do all the handling of money.
[21:42:38] <TheMightyBuzzard> we don't get anything more sensitive than an email address.
[21:42:49] <Bytram> good good!
[21:43:08] <Bytram> uh oh.... https://stripe.com
[21:43:22] <Bytram> "…Bitcoin requirements Bitcoin processing is currently limited to users in the United States. Y"
[21:44:20] * Bytram does not know if that is *currently* true or not. Saw that when i did a search on "bitcoin"
[21:45:23] <TheMightyBuzzard> ya well, most folks who know how to use bitcoin know how to use a proxy.
[21:45:52] * Bytram thinks our generous patreon is from overseas
[21:49:55] <Bytram> TheMightyBuzzard: when a subscription goes through, what do you get back? A JSON structure?
[21:50:06] <TheMightyBuzzard> yup
[21:50:15] <Bytram> nice
[21:50:36] <Bytram> do you save that somewhere?
[21:50:37] <TheMightyBuzzard> kinda. things can bork if you try accessing a bit that isn't in the structure.
[21:50:47] * Bytram would like to see a sample of what gets sent back.
[21:50:50] <TheMightyBuzzard> yup, stripe_log
[21:50:59] <Bytram> umm,where's that?
[21:51:04] <TheMightyBuzzard> in the db
[21:51:14] <Bytram> which is not available atm, right?
[21:51:36] <TheMightyBuzzard> well technically you can do like i did and get to it from fluorine
[21:51:47] <Bytram> hmmm
[21:51:58] <TheMightyBuzzard> but you gotta log in as dev_writer with the password from dev
[21:52:24] <Bytram> is it in the table "subscribe_payments" ??
[21:52:39] <TheMightyBuzzard> no, stripe_log table
[21:52:53] <Bytram> face_palm ... sorry
[21:53:17] <Bytram> ahhh, that's a newer table than what I had scraped long ago.
[21:53:33] <Bytram> am gotta have to give it a rest atm then... time for me to get ready to head out for the evening.
[21:53:52] <Bytram> oh, but it's the exact same table on fluorine, right?
[21:54:19] <Bytram> heh, /me has an idea
[21:54:24] <TheMightyBuzzard> no, you need to access the dev db from fluorine because it has a working mysql client
[21:55:45] <Bytram> k
[21:57:23] <Bytram> bingo!
[21:57:40] <TheMightyBuzzard> is not my name-o
[21:57:44] <Bytram> POST /subscribe.pl cmd=_xclick&charset=UTF-8&amount=15.00&days=180&puid=4031&uid=4031&from=&type=user&op=stripe&stripeToken=src_1AAnFMKAL8UJd4wpGW7vBLBK&stripeTokenType=source_bitcoin&stripeEmail=bytram%40soylentnews.org
[21:58:05] <Bytram> &stripeTokenType=source_bitcoin
[21:58:07] <TheMightyBuzzard> ya, that just goes to us
[21:58:17] <Bytram> so, we DO know that it was paid with BC
[21:58:22] <Bytram> =)
[21:58:28] * TheMightyBuzzard grumbles