I need some urgent support from someone who works at stripe
Anyone? :(
You probably hear it a lot, but it really is particularly urgent.
markin
Don't work for stripe but f it's a technical q I might be able to help
racaille
Hi, I keep getting an error saying "Invalid integer: " followed by the value of the amount I'm trying to charge the user. Is this because I'm storing the amount I'm trying to charge the user as a numeric/decimal type instead of integer type in my database?
mahmoudimus has quit
markin
racaille: stripe is expecting an integer (total number of cents) to charge so if you give it a decimal things will break. You can cast it to an int
racaille
markin: ok, I'll try that
kamalfariz has quit
markin: when I do this, I lose my precision (cents)
markin: I'm using ruby's built-in .to_i function, is there a better way?
markin
Times by 100 then to I
so .10 becomes 10 cents
icedanimal joined the channel
p017: what issue were you having?
racaille
markin: clever idea, and it now displays right but I still have the same Invalid integer bug now
p017
Hi markin it isn't technical, and it would require a stripe employee. How could I contact one asap?
I have emailed them but I am not expecting a response for many hours, during which time the problem is likely to result in irreparable damage to my business
which should be an acceptable integer for Stripe...
markin
hmm to_i is a string method to_int is for numberic
bobrik has quit
kamalfariz joined the channel
icedanim_ has quit
p017
markin do you know of any way other than emailing their support email to get to them faster?
markin
p017: nope, email is the only supported way, apparently they have a twitter account though I've never attempted that. Its also past 6pm on the west coast
p017
Yea, that is why I am concerned
re-awfy joined the channel
I couldn't imagine a worse situation for my business right now, which is why I am really keen to get in touch so fast
markin
what happened?
p017
Somebody has gained access to our stripe account, and my email account, and I no longer have access to my email account
markin
that is bad
p017
unfortunately it is 2.30am here, so our email providers aren't available, and just hit 6pm so stripe aren't available
awfy has quit
I am sure you can understand why I am keen to get the stripe account secure asap
yea so amount = self.amount that is expecting an integer
racaille
changing amount to be (self.amount * 100).to_int seems to solve that problem...but now I have a new problem
unknown attribute: fee_amount
I have a column named fee, but changing the attribute to fee doesn't seem to do anything
this place is closing up, I'll continue at home, thanks a ton markin
Pavlov_
markin: ok thanks
markin
yw
racaille has quit
riskish has quit
racaille joined the channel
racaille has quit
stpn joined the channel
derferman joined the channel
han_shot_first has quit
riskish joined the channel
racaille joined the channel
afuggini has quit
kamalfariz has quit
_Ariel_ joined the channel
racaille
markin: looks like I mispelt a field name, got it all sorted now. thanks a bunch!
markin
ahh the dreaded typo, glad its working
racaille
yes, I changed the name of the field from fee_amount to just amount but apparently missed an instance in the actual code...maybe this is what tests are good for