hello, I had a quick question about authorizing and capture charges
capturing*
koopajah
hey! what's your question? I might have a quick answer
jimmy_waffles
so I found the documentation that says the authorization will essentially be thrown out after 7 days if no action is taking
milesmatthias has quit
we anticipate situations in which we might want to extend that period
is this possible?
koopajah
not possible no. That's a bank limitation. You would have to create a new authorization
jimmy_waffles
can that be done with information provided in the previous charge object?
or do you need the cc# all over again?
koopajah
if you have saved the card on a customer you can just charge their card again
Damon_ joined the channel
Damon_
hello
jimmy_waffles
okay that makes sense
Damon_
i am looking for help with setting up stripe to support bi-weekly subscriptions
can anyone help?
koopajah
Damon_ : you simply have to create a plan that has an interval of 2 weeks
tafa2_ has quit
milesmatthias joined the channel
milesmatthias has quit
milesmatthias joined the channel
milesmatthias has quit
omar__ joined the channel
milesmatthias joined the channel
milesmatthias has quit
FrostCandy has quit
milesmatthias joined the channel
ta_ has quit
Damon_
@koopajah thank you
milesmatthias has quit
regreddit joined the channel
regreddit has quit
regreddit joined the channel
regreddit
Ive been waiting on stripe email support for a while, so I thought I'd ask here. I'm building a platform integration using Stripe connect, and have implemented this flow: users register as vendors, where the get sent to stripe to connect, then once connected we store their stripe account id in their user record
cweiss has quit
cweiss joined the channel
wen a user then purchases soemthing from a vendorm, we use stripe elemenst to tokenize the cc enfo, then on the server build a destination charge using the vendors account id, and the token as the source
greylock joined the channel
i keep getting invalid token replies from stripe, and when i emailed support, i got this: "After doing some research, I was able to find that the request and the token are being created on 2 completely different Stripe accounts. This would be 1 of the major factors of why the error is coming up"
I have verified the4 SK_test and PK_test keys are both from the proper platform account, so I have no idea what could be mismatched
HollyW00d joined the channel
we're in test mode, and im using a test stripe debit card
on the client side, i initialize stripe using the pblishibale key
and on the charge (server side) i initialize stripe using the matching test secret key
cweiss has quit
so what could be '2 completely different Stripe accounts'?
koopajah
regreddit : do you explicitly see the token creation in your logs in your platform? I bet you do not because the token is created with the wrong key
regreddit
on the client side, the call to stripe.createToken returns a valid token object
its valid in that the function returns without error, so I assume that means the token is vald?
s/vald/valid/
koopajah
the token is valid, but likely created with a pk_test_XXXX from a *different Stripe account*
that's why I'm asking you to just look at your logs
hmmm, yeah i just see all the failed charges, no tokens - looking at the PK one more time - ive compared them no less than 100 times in the past 24 hours :)
you're likely looking at the wrong code or did not push the new code. This is 100% the issue
just look in the browser right click and check the source and you'll see the wrong key hardcoded somewhere
Dirkozoid joined the channel
Dirkozoid
Hi. When I delete a custom account, is there no log-entry in my Stripe dashboard?
koopajah
that's expected, it would be on the connected account instead (to which you don't have access anymore)
Dirkozoid
Ah ok
I use to read the answer from Stripe: $account->deleted;
I gives me the value "1"
so deleted is true
but I can delete test accounts at any time
koopajah
why couldn't you?
Dirkozoid
on a live account which has still money on it I would get "0"?
koopajah
no you would not, you would get an error when calling the API
Dirkozoid
Or would there be a message or an error or something?
regreddit
ah, just found it. i was initializing stripe on the client with: this.stripe = Stripe(this.stripe_key, { stripeAccount: this.stripeacct }); where stripeAccount is he account of the destination account that I'm making the charge on behalf of
that must be wroing
Dirkozoid
Oh, ok
koopajah
regreddit : correct, if you're using destination charges you need to remove the stripeAccount part
caesarpena_ has quit
regreddit
but the docs only say: stripeAccount - Connect only. Specifying a connected account ID (e.g., acct_24BFMpJ1svR5A89k) will allow you to perform actions on behalf of that account.
yeah, i did and that worked
the docs dont really say why or when to add that
thanks
Dirkozoid
something like this: InvalidArgumentException: You cannot set 'id'to an empty string. We interpret empty strings as NULL in requests. You may set obj->id = NULL to delete the property in Stripe\StripeObject->__set() ??
koopajah
regreddit : you need that when you want the token on the connected account
Dirkozoid : not sure where that comes from but you're likely passing an invalid value
Dirkozoid
This comes from a page which deletes custom accounts. When I go on to this page with an acct_ID set, I get this error. This is ok. But I am not sure what to do if a user tries to delete his account while having money on it
regreddit
koopajah, ok that makes sense
koopajah
Dirkozoid : you need to prevent them from doing so until their balance is at -
Dirkozoid
I thought I would get a "FALSE" or "0" and could print a message then
koopajah
at 0
no you get an exception and you catch it as any other exception and then display a message
Dirkozoid
Do I have to check bank_account object for their balance=
you can't just close their account if they have $10k left to be paid
of $3k that they owe you
Dirkozoid
Yes, but some users could try that
haha
koopajah
sure but it's on you to avoid it. Detect their balance and explain why you can't instead of deleting the account
_pete_ joined the channel
Dirkozoid
Ok, I understand. Than kyou!
\Stripe\Balance::retrieve(CAN I PUT THE acct_ID HERE?);
koopajah
easiest solution is to just try it really but yes :)
omar__ has quit
saurabhjha has quit
Doginal joined the channel
Dirkozoid
yes, I know I am lazy. Why shouldn't it work. \Account::retrieve("acct_1ANqw6CcMfpl2s1J"); works the same, but it is also told in the docs explicitly
_pete_
I noticed the following event today in my dashboard: 1. User signed up for a subscription near the end of the month 2. They were charged a prorated amount of $0.08 3. Invoice was generated and paid 4. Subscription renewed today and the $0.08 was included on the starting balance for the renewed subscription event
Does Stripe auto move small charges forward to subscriptions that are about to renew? Or did I setup something incorrectly?
koopajah
_pete_ : that's because $0.08 is below our minimum amount of $0.50 so it can't be charged and is just bundled on their next charge
saurabhjha joined the channel
saurabhjha has quit
_pete_
@koopajah: Great! I was worried something was wrong hahaha
cweiss joined the channel
omar__ joined the channel
jleclanche joined the channel
jleclanche
Hey so there's been a lot of additions to the dashboard lately but there seems to be no API support for them. Things like invoice email, invoice CC, notes on payments and refunds?
Shilon has quit
saurabhjha joined the channel
koopajah
the first 2 definitely have an API, the latter does not
kies has quit
jleclanche
koopajah: where is that api? I tried in test mode, I updated a customer with a new invoice email and no event was triggered
saurabhjha has quit
koopajah
I'm not sure what you're referring to exactly so maybe I'm misunderstanding. For this one I'll ask you to talk to our support team to be safe in case your account is in a beta :)
mattwc
No emails are sent in test mode too
At least not through the api
hi joined the channel
hi
hi
does anyone know if stripe takes a fee when changing currencies?
hi is now known as Guest6260
mattwc
There a 2% foreign exchange fee
jleclanche
koopajah: oops, you're right, i seem to be in beta
Guest6260
thanks
allibubba joined the channel
aFeijo_ has quit
Dirkozoid
It doesn't work with the acct_ID? I have to set another Secret_Key?
koopajah
Dirkozoid : it 100% works with the account id and you're likely doing something else
Guest6260 has quit
jimmy_waffles has quit
Dirkozoid
I changed the word "Account" to "Balance" in my test file
tylerh has quit
koopajah
gotcha. then I'm the one that's wrong!
Dirkozoid
$account = \Stripe\Balance::retrieve(); works $account = \Stripe\Balance::retrieve("acct_ID"); does not