Reputation: 2344
I'd like to run a list of transfers (from Account to Account) in a transactional way, meaning not one by one but with semantics "either all or none."
Currently, I see that I should iterate and run them one by one, therefore in my List of transfers, there could be partial errors / partial successes. This is fine and I'm ready to handle this case, but it will be a lot more code than just telling stripe, "Run all or none".
Is there any best practice for doing this?
Upvotes: 1
Views: 537