#holykent-transfer-creation
1 messages · Page 1 of 1 (latest)
Hi there! Just to be clear, are you referring to Transfers (transferring funds between a platform and a connected account) or Payouts (moving funds from a Stripe account to an external bank account)?
Yes, transfer from stripe account to account. I have set it to automatic payout, so all I have to do is initiate the transfer (stripe to stripe, using destination account).
if this doesn't throw an exception, i can safely assume that stripe will handle the actual payout to external account is what im asking i think
var options = new TransferCreateOptions
{
Amount = (long)amount,
Currency = currency.ToString(), // Listing currency
Destination = destinationAcct,
TransferGroup = reservationId.ToString() // For grouping it with a paymentIntent
};
var service = new TransferService();
var retryPolicy = StripePolicies.TransientAndStripeExceptionRetryPolicy();
try
{
var transfer = await retryPolicy.ExecuteAsync(async () => await service.CreateAsync(options));
return transfer.Id;
}
Got it, thanks for clarifying! That's right, Stripe will handle the automatic payout to the external account
great. thanks a lot
just to clarify, there are no other statuses i need to be aware of?
A request to create a Transfer could fail if your platform account doesn't have enough funds to transfer that particular amount
Yes, certainly, but that would generate an exception, no?
Exactly
i mean if no exceptions are thrown from the stripe method
then i can assume that this is done on my end
Yes, that's correct