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.
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
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
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
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
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