1
votes

I'm creating a marketplace where a buyer pays for a sellers time. Once the seller marks the transaction as complete does the transfer begin.

I currently have the Stripe Charge & Managed Accounts set up already. Now I'm confused on how to integrate the transfer. The buyer gets charged, the money goes to the sellers account minus the fees.

I was thinking of adding a boolean called :complete_transaction and set it equal to false. Once the user clicks on a button that makes the boolean equal to true have a method that initiates the transfer.

Not sure if it works or how to implement it.

1

1 Answers

0
votes

I would rather go for two datetime fields completed_at and compensated_at. When the seller confirms completion you fill in the completed_at field and then a background job looks for transactions that were completed but not compensated (paid out by you) and makes transfers (updating compensated_at afterwards). This makes it way easier to debug in case any problems pop up.