Does anyone have advice on building a payments transactional database and tracking refunds so that we can pull the available amount to refund data and display it to a customer service person handling refunds via the UI?
tr12
Meld052015: advice in what sense?
it's sort of an open-ended question
Goo_ has quit
Gyromaniacs joined the channel
Gyromaniacs
Hi, I've got a Stripe question...
I've got a connected User who also has their own Stripe account
tr12
Gyromaniacs: sure
Gyromaniacs
I'm using stand alone accounts
Is there any way on their Statement I can distinguish my charge from their existing Stripe account?
I should say, they have two different Stripe accounts actually
One for their retail store and one for their Online Store
When charges happen and Stripe deposits money in their bank, is it possible for them to distinguish between the two deposits so they know which is which?
tr12
essentially, no
both will just have the descriptor STRIPE TRANSFER
Gyromaniacs
PREAUTHORIZED CREDIT STRIPE TRANSFER X CCD
Is what it says
the 'X CCD' is that a distinguishing mark?
gingerale has quit
Or is there any other way to distinguish which is from the Online Store and Which is from the Retail Store?
tr12
ccd is just the type of deposit
they'd need to reconcile the transfers by the date of the transfer and the amount of the transfer against what's displayed in stripe
Gyromaniacs
That's what I told them, but they said they want it on their bank statement
Should I tell them just to move to manual transfers instead?
tr12
Gyromaniacs: they could do that, yes
patr joined the channel
patr
hey, is anyone around today?
tr12
in which case, they can specify whatever transfer descriptor they want, which would show up on their statement
Gyromaniacs
Any other options you can think of <tr12>?
tr12
Gyromaniacs: they'd need to manually send themselves transfers, though, which is a lot of toil, or else write / have you write a script to automatically send the transfers
no, I don't believe there are any other options here
patr: what's up?
patr
do i need to create a token to get subscriptions from a stripe connected account?
and then pass the token into the
stripe.Subscription.retrieve()
call?
documentation on this is a little light
tr12
patr: a token as in the ID of the subscription?
patr
uhh no
as in the connected account ID
when I create a charge, I need to do this
token = stripe.Token.create( customer=customer.stripe_id, stripe_account=connected_account.stripe_user_id # id of the connected account )
oops
tr12
yes - this identifies which connected account you want to operate on
patr
how do I pass that token into the retrieve call?
tr12
you'd just set stripe_account=... in the retrieve call
the syntax for this is the same for every api call
the api call works the same on your platform account as on the connected account - the only difference is that the stripe_account identifies which account you mean
patr
i don't have to set stripe_account?
tr12
if you just pass an ID, it assumes you're talking about the platform account
so it'll look for that subscription on the platform account, and won't find it if it's actually on the connected account
yes, that looks correct
Meld052015
tr12. Do you have any good resources, in addition to the Stripe docs on building a payments transactional db and how to track the different states of a payment? I think this is a basic question but could use your help
tr12
Meld052015: I don't really know what you're asking, though
Meld052015: as far as tracking the states of a payment, card payments only really have 2 state transitions that can happen - refunds & disputes
Gyromaniacs
<tr12> anything special you have to do to indicate on a manual transfer?
tr12
Meld052015: you can listen to webhooks to be notified of events (including disputes). it's also useful to listen to webhooks for refunds that weren't done by your own code (ie: were done by through the dashboard)
patr: you need to tell it what plan to use, and you'd need to pass stripe_account to the subscription create call
Meld052015
Thank you, I’ll think about this some more. Thanks tr12
tr12
patr: otherwise it's going to run the call on your platform account, and not find the token
patr
ah
the source isn't enough?
tr12
patr: separately, the parameter is called `source`, and not `token`
patr
err sorry i meant source
tr12
and yes, you need to tell it what *kind* of subscription to make
you need to specify a `plan`
patr
ah yeah i forgot the plan
tr12
you also need to create a customer
patr
yeah customer is pre-created
on my platform
so that's why i use the token to link it to the connected account
tr12
no, you need to create a customer on the connected account for that subscription to be attached to
Gyromaniacs
<tr12> Where can you specify on manual transfers how to display a different bank statement descriptor?
tr12
patr: so like stripe.Customer.create(source=..., plan=..., stripe_account=...)