#FoxtrotOneEcho
1 messages · Page 1 of 1 (latest)
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?
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?
OK. since the destination is not yet known, you can use the Transfers API https://stripe.com/docs/api/transfers/create#create_transfer to send funds to connected account later.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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?
No, you can't specify an application_fee when creating a transfer.
You can only specify a application_fee when creating a charge.
Correct, I understand that.
I'm asking according to this: https://stripe.com/docs/api/payment_intents/update
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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.
No you can't.
You need to specify the transfer_data.destination when creating the PaymentIntent, you can't update this field later.
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() ?
What are you interested in? the payment, the transfer, or both?
Looking to make sure that the transfer doesn't happen until the charge has posted to platform account
Stripe will only perform the transfer when the funds are available in platform
ok, thanks