#FoxtrotOneEcho

1 messages · Page 1 of 1 (latest)

mental treeBOT
rough yacht
#

Hi there, adding a payment_intent_data.transfer_data.destination is to create a destination charge, and you need to have the connected account ID before creating the charge.

Can you tell me what do you want to achieve with CheckoutSessions API?

chilly cliff
#

Process is user signs up for app & requests service. I want to make sure that their card is authorized for the amount of the service (this is a fixed known value). But I don't know who the service provider is going to be so I can't attach the transfer_data.destination connect account id yet.

#

The user shouldn't be charged until a service provider accepts and completes the work. So when the service provider marks it as completed I call stripe->paymentIntents->capture().

#

I suppose I probably could just do a transfer call with a source transaction instead?

rough yacht
chilly cliff
#

When using the Transfers API is there a reason to specify the application fee and transfer_data.amount when doing the paymentIntents->capture() ? Does it provide value for reporting/accounting purposes after the fact or will that cause issues?

rough yacht
#

No, you can't specify an application_fee when creating a transfer.

#

You can only specify a application_fee when creating a charge.

chilly cliff
#

Correct, I understand that.

#

Should you specify the application_fee_amount and transfer_data amount when I run the paymentIntent->capture() fore reporting purposes?

#

but I suppose not, cause that would actually cause it to go to the values specified during the PI create. I get it now.

rough yacht
#

No you can't.

#

You need to specify the transfer_data.destination when creating the PaymentIntent, you can't update this field later.

chilly cliff
#

With using a source_transaction with the transfer would you recommend listening for the charge.completed webhook or relying on the return response of the paymentIntents->capture() ?

rough yacht
#

What are you interested in? the payment, the transfer, or both?

chilly cliff
#

Looking to make sure that the transfer doesn't happen until the charge has posted to platform account

rough yacht
#

Stripe will only perform the transfer when the funds are available in platform

chilly cliff
#

ok, thanks