tr12: yes. An explosion would have been nice *lol* instead it was like the api didn't even exist. no errors -- just a nice data black hole. It went somewhere but not to stripe and no response received past the initial token.
tr12
fascinating
Mezme
Basically what it's doing is: 1) User clicks payment button. The interface pops up, they enter CC data.
my test site gets the token back from stripe... it SHOULD process the charge at that point but... nothing happens.
landakram has quit
tr12
what kind of response do you get back from your server when you post the token to it?
Mezme
that's where I'm stuck. I'm not getting any errors off the coding... and when I check for test data on the dashboard nothing is there.
tr12
I mean when you post the form which contains the token to your server, what does the browser get back?
200 OK, 500 Internal server error, a timeout, etc
Mezme
nothing... no response.
except... hang on I see test data... okay so back up two iterations ago and ... I have test data again. Okay... I'm now "seeing" the api in that test charges are going thru
tr12
so you get an error screen from chrome/firefox/etc saying "empty response" or something to that effect?
hrm
IndyNC joined the channel
kies^ has quit
Mezme
tr12 --- when I meant nothing --- it was literally that. nothing. Per my log file: the "pay with card" button was clicked, you entered the CC info, the page accepted the post response with the token, the page then processed the code for the charge (try(...) catch (...) and... it returned to the payment page. But nothing was showing up on the dashboard so I couldn't tell what the problem was
and no data came back via post and the raw data dump showed nothing coming back from stripe.
tr12
and now stripe is getting those requests?
Mezme
yes - it was a hosting problem. They had the "allow outside installations" turned off
tr12
ah, so it was just clobbering your api requests?
Mezme
so it wouldn't recognize any php.ini file outside of the core php.ini file
tr12
ah, I see
rk3 joined the channel
Mezme
black hole... definately a black hole
tr12
I'm shocked that this doesn't error loudly
Mezme
but 3 good test charges cleared and 2 error charges cleared so I think I have that part down... now I just need to figure out how to get the response from stripe.
tr12
the charge response?
rk3
Hi, I am using stripe connect, when attempting to retrieve charge details, I pass a valid charge id and it says it returns an error stating it cannot find it. Do I need to pass the connected account stripe user id?
tr12
rk3: yes, you need to auth as that connected account
cdbattags has quit
(the same way that you're authing as that connected account when you create the charge)
rk3
via passing the header?
Mezme
tr12: yes
tr12
Mezme: the code that creates the charge presumably looks something like: $charge=\Stripe\Charge::create(...)
$charge is the charge resource that was just created
Mezme
yes
I swear to pete if it was that simple I'm going to go color my hair blonde
tr12
ahaha
markin
so echo $charge to see the charge properties
Mezme
flippin (insert lots of fowl language here) forget caffiene I need liquor... lots of liquor. Okay y'all my level of stupidity just reached new heights because wow... that worked. The whole system just flowed from charge to posting on the billing/payment system.
now I just need to parse the data so it posts where I want it to and I'm golden
Thank you tr12 and markin... y'
tr12
the object here is to post to some other internal system?
Mezme
y'all were invaluable (and sooooo patient!)
tr12
happy to help!
markin
what tr12 said
Mezme
yes -- now that I can see that response I can easily parse it and put it where it needs to be
tr12
\o/
rk3
perfect, thanks!
IndyNC
when a new user signs up is there anything they need to do before their test API key will work with the API?
tr12
IndyNC: nope
IndyNC
Weird, I guess they messed up copy/pasting it to me or something somehow. I use Stripe myself with no problems which is why they wanted me to help them get set up.
tr12
IndyNC: did they give you the error message they were getting?
IndyNC
Invalid API Key provided: sk_test_********************GOop
aaronrenner has quit
tr12
IndyNC: yeah, that's a typo, as best I can tell
it's the right length to be an API key, so I think a character is wrong somewhere in there
I'd advise them that copy/pasting the key is going to be easier
IndyNC
yeah, must be. I tried it with my own test key and it worked fine
rk3 has quit
IndyNC has quit
tr12 has quit
Milo joined the channel
Milo has quit
aaronrenner joined the channel
nemothekid joined the channel
sr2016 has quit
sr2016 joined the channel
sr2016 has quit
sr2016 joined the channel
nemothekid has quit
WC2016 has quit
dannymichel joined the channel
ericjung joined the channel
ericjung
hi, what countries should a user be able to choose from when making a payment with a credit card using stripe on my website?
right now i have countries listed like 'Christmas Island' and i just don't think all 200+ countries is necessary
markin
ericjung: customers are supported from any country, the limiting factor is what card brands your stripe account supports which is based on your country
ericjung
markin: i figured. but when i look through the Visa and MC websites, there's nothing about this
Ajesh joined the channel
markin: i just thought there'd be many people in this channel who have written check-out forms that ask for user's country
Ajesh
Hi i am using stripe and i am not getting response when set it on live mode
markin
I don't think there is an official list of countries stripe supports, since its whatever visa supports, and it often comes to the cause where you don't want to accept charges from odd countries since they're a high fraud risk
Ajesh: but it works in test mode?
Ajesh
yes it works in test mode
yes it works in test mode
markin
Ajesh: then assuming you've switched both api keys, you may want to check your servers error logs
ericjung
markin: understood. not helpful, but understood. and i realize i'm not in the right channel. i was looking for people with personal experience, not an official response from stripe. thanks anyway.
WC2016 joined the channel
Ajesh
I am not getting any error in error log
markin
and you've enabled error logging?
Ajesh
yes error log is enabled
markin
Ajesh: well you should add additional print statements or something to figure out why your code is broken
dagda1 has quit
Chetan joined the channel
ericjung has quit
Chetan
hi
how to resubscribe to the previous failed subscription
before it gets cancelled
Mezme has quit
surfdue has quit
markin
Chetan: when you update the card stripe will retry payment
Ajesh: do you see any errors in your Stripe dashboard logs? You'd need to get your code working so that its outputting the errors
snarklar
markin: Thanks. According to ssllabs all TLS protocols are supported by my certificate, but not SSL 2 and 3. Would that be an issue?
aaronrenner has quit
markin
snarklar: thats fine, does it say your chain contains the anchor?
or anything about an incomplete chain?
Ajesh
On stripe account i am getting you have insufficient balance in your account so your payment declined but i am not geting this error on my side in response
snarklar
markin: yes chain issues are mentioned. "This server's certificate chain is incomplete. Grade capped to B"
markin
snarklar: so that would be the issue
Ajesh: that would be a card_error you should probably handle errors in your code: stripe.com/docs/api#errors
snarklar
markin: okay, thanks for pointing me in the right direction!
markin
snarklar: normally you're missing an intermediate certificate
aaronrenner joined the channel
dannymichel has quit
snarklar
markin: would that be step 2 in the certification path?
markin
snarklar: most likely
snarklar
markin: thanks for your help, much appreciated.
aaronrenner has quit
Ajesh
So that time charge functionality not responding any response?
markin
Ajesh: the charge function would have thrown an error