#anilkumar0289

1 messages · Page 1 of 1 (latest)

floral juniperBOT
tame fulcrum
#

Hi there!

green finch
#

If we have multiple keys in database how to know from which key the event belongs too?

tame fulcrum
#

What do you mean?

#

Each event you receiev will have an account property with the account ID.

green finch
#

I'm using stripe automatic payout functionality.

#

I also created an webhook event to listed payout.created and payout.paid but didn't getting any account info.

tame fulcrum
#

Are you using Stripe Connect?

green finch
#

No

#

Only Platform account

tame fulcrum
#

So you have a single Stripe account?

green finch
#

yes

tame fulcrum
#

So you already knwo the Stirpe account ID, no?

green finch
#

No

#

There may be multiple customer with different key combination

#

we have to check payout belongs to which customer

tame fulcrum
#

I really don't understand your use cases. Can you take a step back and explain what you are trying to do?

green finch
#
  1. We have multiple customer with their own stripe account.
  2. Whenever there will be payout created event we will save payout id in our database .
  3. When payout is paid we want to get transactions which are getting reconciled in the payout. but at that point we dont know code level that requested payout belongs to which customer and with which key pair we can retrieve payout.
tame fulcrum
#

We have multiple customer with their own stripe account.
You didn't mention that earlier.
Whenever there will be payout created event we will save payout id in our database .
So you revceive webhook events from multiple Stripe accounts? And you are not using Stripe Connect?

tame fulcrum
#

Hwo do you make that work? Do you ask your customer to give your theyr secret API key?

green finch
#

actually we are saving stripe account keys in our db in encrypted form during creation of customer account.

tame fulcrum
#

That's not somethign we recommend at all. For this type of use cases, you should use Stripe connect. It's a lot safer, and also simpler for you to manage (like for example for the webhooks).

green finch
#

okay thanks