#stripe

/

      • markin
        irctc686: what is transfer_schedule set to?
      • Todd_: hmm, that would tend to indicate that it is working
      • Todd_: can you ping api.stripe.com?
      • irctc686
        "delay_days": 7,
      • yes how i ping?
      • markin
        irctc686: the posts I'm prepending with "Todd_:" aren't for you
      • irctc686
        ok
      • markin
        irctc686: thats only part of the transfer_schedule object
      • Todd_
        Several ping requests keep showing up but one showed as "Request timeout for icmp_seq 27"
      • Request timeout for icmp_seq 52
      • Request timeout for icmp_seq 62
      • markin
        Todd_: hmm, that should be fine though
      • irctc686
        nop this is complete
      • "transfer_schedule": { "delay_days": 7, "interval": "daily" },
      • markin
        irctc686: so right now you have it set so that Stripe will automatically deposit the money from their managed account to their bank account every day, you don't need to create transfers
      • Todd_: is it only charge attempts that are failing?
      • Todd_
        It's very weird. Everything has been working fine. I switched to test mode earlier tonight and have been running several tests.
      • I'm using the javascript implementation for retrieving the auth token and then passing the auth token in _POST and then charging the card using PHP library
      • irctc686
        then how what i will mean from this message which is response by stripe api while transfer
      • "Response": "Status is:400 Type is:invalid_request_error Code is: Param is: Message is:Cannot create live transfers; please switch to manual transfers by going to https://dashboard.stripe.com/account/transfers.
      • Todd_
        $charge = \Stripe\Charge::create(array( "amount" => (float) $amount, // amount in cents, again "currency" => "usd", "source" => $token, "description" => $desc) );
      • markin
        irctc686: You have their account set to automatically transfer that is why you cannot manually create the transfer
      • Todd_: so if you just called the list charges API that would work?
      • irctc686: why do you want to manually make a transfer is stripe is already going to transfer the money automatically anyways?
      • irctc686
        i dont want to create manualy transfer. i want atomaticalt transfer when that function is called but that function raised exception that i have send to you
      • markin
        irctc686: the function you're calling is to manually create one, if you want it to be automatic, then you don't call that function
      • Todd_
        Very weird. It's working now.
      • Not sure what was going on, I didn't change any of my code. As long as it's working that's all that matters right now. Thank you for your help.
      • irctc686
        can you please give any complete example of managed account
      • markin
        irctc686: I'd say a complete example is impossible since the use cases of managed accounts varies greatly
      • irctc686: there is no reason for you to call the create transfer api
      • irctc686
        then how app will know that now i have to transfer amount to user bank acount
      • if i did not call the functipn
      • markin
        irctc686: when you create a charge you set the managed account as the destination. Stripe then automatically transfers the funds to their bank account when the funds become availabble
      • bkrausz has quit
      • bkrausz joined the channel
      • Todd_ has quit
      • nirojshrestha has quit
      • Guest45637 has quit
      • irctc686
        @markin you there?
      • markin
        yes
      • irctc686
        $cu = \Stripe\Account::retrieve($sss['id']); $cu->transfers_enabled -> true; $cu->save();
      • I am trying to enabled "transfers_enabled"
      • but in response it shows false.. "details_submitted": false, "charges_enabled": true, "transfers_enabled": false,
      • markin
        you cannot edit transfers_enabled, and you set it was already set to true
      • well that means you need to verify the account
      • nirojshrestha joined the channel
      • irctc686
        ok
      • nirojshrestha has quit
      • kevin___ has quit
      • jareddlc joined the channel
      • mxbtty joined the channel
      • mxbtty has quit
      • bklane has quit
      • irctc890 joined the channel
      • irctc890 has left the channel
      • bkrausz has quit
      • awais joined the channel
      • awais
        Hi !!
      • markin
        hi awais
      • awais
        Hi markin ! how are you?
      • markin
        Not bad, just applying for jobs, whats up?
      • awais
        Ahh Good luck then ;)
      • Actually I want to confirm a scenario !
      • relating Stripe
      • markin
        sure
      • awais
        We are building a service that have users that will be charges through card so far it's working and customer that do some job for user and will get payment !
      • We have used Managed account ! and create accounts for customer using their email according to docs and send transfer it responses insufficient balance !
      • The actual question is.. I can see connected account !
      • on Dashboard !
      • but there is label Unverified..
      • markin
        with managed accounts you should never have to create / send a transfer, Stripe handles it automatically
      • awais
        All right !
      • Thank you !! very helpful
      • irctc363 joined the channel
      • awais has left the channel
      • irctc363
        Any Stripe devs out there that can help with a question?
      • markin
        irctc363: sure
      • irctc363
        I am trying to subscribe my customer to multiple plans, I see the API docs for this and I am running the recent API version, but they are only being subscribed to the first plan
      • Im using PHP
      • markin
        how are you creating the subscriptions?
      • irctc363
        $customer = Stripe_Customer::create(array('email' => $email,'plan' => "membership-basic", 'card' => $token));
      • next line is:
      • $cu = \Stripe\Customer::retrieve($customer->id);
      • then $cu->subscriptions->create(array("plan" => "parnter-basic"));
      • and they are only being subscribed to the "membership-basic" plan
      • markin
        a couple of things, one the second line is redundant, and looking at the 1st and 2nd lines they're coming from documentation of two different PHP library versions
      • the first line would be for Stripe-PHP 1.0 the second like would be for stripe-php 2.0+
      • irctc363
        Yeah, I need to change that, could that be the problem?
      • my API version is 2015-09-23
      • markin
        its not the api version, its that you're using code for two different library versions
      • irctc363
        okay so switch all code to 2.0 as my first step?
      • markin
        well if the first line works that means you have version 1.X of the library installed, so you should upgrade that
      • irctc363
        okay, Ill need to update my Stripe code as well Im guessing to use the new API or is the library backwards compatible?
      • markin
        the library is backwards compatible, and you already have the latest api version, so you need to update the library
      • irctc363
        okay I updates, testing now
      • whelp, thats no good, blank screen, gotta figure that out :/
      • sandstrom joined the channel
      • wojtek_ joined the channel
      • ugh, any ideas on why it would be crapping out? no errors
      • markin
        syntax errors can cause that
      • irctc363
        gots it, I dont think it is as backwards compatible as I thought
      • Stripe::setApiKey($stripe['secret_key']); has to change to \Stripe\Stripe::setApiKey($stripe['secret_key']);
      • markin
        the api is backwards compatable a shift from 1.X to 2.X in the library is not backwards compatible
      • irctc363
        gotcha
      • okay testing again
      • wojtek_ has quit
      • okay now that library is up to date what should I try next
      • again this is what I have
      • $customer = Stripe_Customer::create(array('email' => $email,'plan' => "membership-basic", 'card' => $token));
      • $cu = \Stripe\Customer::retrieve($customer->id);
      • $cu->subscriptions->create(array("plan" => "parnter-basic"));
      • harry_ joined the channel
      • markin
        that first line isn't compatible with the new api library
      • irctc363
        I changed it to \Stripe\Customer::create
      • and I see the problem
      • its that im an idiot
      • harry_
        hello everyone,i need to help to know my managed account is in canada and my account in us then i want to transfer 100$ in managed account which is in canada if it is possible?
      • irctc363
        partner is spelt p-a-r-t-n-e-r not p-a-r-n-t-e-r
      • harry_
        and if possible then how?
      • danhixon_ has quit
      • _oxigen8_ joined the channel
      • nerdfile1 has quit
      • nerdfiles joined the channel
      • amv has quit
      • amv joined the channel
      • wojtek_ joined the channel
      • markin
        harry_: normally you wouldn't be manually sending money between accounts, you should be setting the managed account as the recipient / account of a charge
      • nerdfiles has quit
      • konradsurf joined the channel
      • harry_
        markin: my main account is in us and managed account is in canada then i want to transfer $100 then which currency (us or cad) i used to transfer in managed account?
      • markin
        The countries have no affect, but you shouldn't be manually sending funds between accounts
      • harry_
        markin: when i try to transfer with currency "cad" it raise insufficient fund message still i have more balance in my main account.
      • nerdfiles joined the channel
      • markin
        Do you have USD in your Stripe account or CAD in your platform's account?
      • Also why are you doing this transfer? If this is how you'd be doing the majority of your transfers you'd be violating the terms of service
      • harry_
        markin: platform account is in USD.
      • markin
        so then your platform only has USD to transfer
      • danhixon joined the channel
      • sandstrom joined the channel
      • sandstrom has quit
      • harry_
        markin: i charge customer in 100 in us dollars , stripe transfer 96.80$ in platform account,created managed account is in canada, then charged 100$ i try to transfer it in managed account but it raise insufficient fund message .
      • markin
        harry_: you shouldn't be creating these transfers manually, thats not supported, you should be specifying the managed account as the recipient of the charge
      • you'd have to wait for the funds to become available before you can transfer them using special case transfers
      • konradsurf has quit
      • wojtek_ has quit
      • harry_
        markin:thanks
      • Steve__ joined the channel