#stripe

/

      • racaille joined the channel
      • HairAndBeardGuy has quit
      • kamalfariz has quit
      • derferman has quit
      • derferman joined the channel
      • kies has quit
      • kies joined the channel
      • derferman has quit
      • stpn has quit
      • kamalfariz joined the channel
      • jeregrine_ joined the channel
      • mahmoudimus joined the channel
      • HairAndBeardGuy joined the channel
      • drale2k joined the channel
      • HairAndBeardGuy_ joined the channel
      • HairAndBeardGuy has quit
      • slatri has quit
      • stpn joined the channel
      • derferman joined the channel
      • derferman has quit
      • derferman joined the channel
      • stpn has quit
      • derferman has quit
      • derferman joined the channel
      • derferman has quit
      • drale2k has quit
      • icedanimal has quit
      • icedanimal joined the channel
      • icedanimal has quit
      • p017 joined the channel
      • p017
        Hi guys is anyone there?
      • 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?
      • markin
      • p017
        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
      • icedanim_ joined the channel
      • icedanimal has quit
      • racaille
        basically I'm doing this: irb> (20.98 * 100).to_i=> 2098
      • 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
      • Pavlov_
        should I get a reply to things I email to support@stripe.com?
      • stpn joined the channel
      • csurap has quit
      • markin
        mbu mafs anyone around?
      • mbu
        yeah i just got your email
      • markin
        Pavlov_: they don't have an auto responder
      • derferman joined the channel
      • p017
        are tere
      • are there any employees on at the moment?
      • mbu
        p017 do you no longer have access to the email in question?
      • sorry, most of our folks are at dinner right now
      • p017
        I no longer have access to the email on the account
      • But i have a scan of my passport if you would like me to send it to you
      • for identification
      • mbu
        if it's of any assurance, the bank account on the account hasn't been changed.
      • so transfers are still being sent to you.
      • p017
        Thanks for hte information. We are also concerned about them refunding all of the payments
      • racaille
        really bizarre, I'm still getting the Invalid Integer error, according to the Ruby shell even this should be recognized as an int: http://pastie.org/private/ugg9qhybhl8kdx3jhfjsyw
      • mbu
        that hasn't happened yet either.
      • stpn has quit
      • p017
        Ok thanks. is it possible for you to lock the account or prevent any of the bank details being changed etc?
      • racaille
        same result with to_int function...
      • mbu
        p017: i can keep an eye out for you, but i want to defer handling of the verification stuff (e.g. checking your passport) to our support team.
      • markin
        whats the line that you call charge in and pass the amount?
      • mbu
        i've pinged them for you
      • derferman has quit
      • p017
        thanks mbu. I will be up all night. I appreciate you guys working out of typical hours.
      • racaille
        here's how I embed the js form: http://pastie.org/private/yy1gmekhvkpn5zgm1pumpa
      • markin
        okay, that looks fine, because it gets converted to a string, that Invalid int should be coming from where you call Stripe.charge
      • jeregrine_ is now known as jeregrine
      • mahmoudimus joined the channel
      • drale2k joined the channel
      • racaille
        ahh, so I have a sale.rb model where the charge actually occurs: http://pastie.org/private/pqnsum3zh3abudzexcfoyq
      • drale2k has quit
      • markin
        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
      • derferman has quit
      • icedanimal joined the channel
      • icedanimal has quit
      • drale2k joined the channel
      • mahmoudimus has quit
      • drale2k has quit
      • stpn has quit
      • mbu has quit
      • stpn joined the channel
      • icedanimal joined the channel
      • icedanimal has quit
      • drale2k joined the channel
      • stpn has quit
      • stpn joined the channel
      • nftc99 has quit
      • jeregrine has quit
      • riskish has quit
      • nftc99 joined the channel
      • icedanimal joined the channel
      • mbu joined the channel
      • icedanimal has quit
      • stpn has quit
      • racaille has quit
      • racaille joined the channel
      • mbu has quit