#Manish378

1 messages · Page 1 of 1 (latest)

placid violetBOT
earnest peak
#

I am using Payment Intent first then transfers
hi! is there a reason you're not using Destination charges instead?

slender estuary
#

Yes, I want to capture the patyment later

#

In charge API we don't have that facility I think

earnest peak
#

can you explain more?

#

what do you mean by "capture"?

gray glade
#

@slender estuary Destination charges does allow you to capture a PaymentIntent later. You shouldn't capture payments on your platform account as you inherit the fees in case of fraud or refunds 😉

slender estuary
#

For example customer booked a cab for 1st August, 2023
He entered his card details, I will create PaymentIntent with capture=false

That will create payment intent but won't charge customer card

When I confirm Payment intent on 1st Aug., card will be charged

#

This is what I want to achieve

gray glade
#

Are you using Stripe Connect ?

slender estuary
#

Yes

gray glade
#

May you share how to create a payment intent please ?

#

In that case, you should simply use transfer_data[destination] with the Connected Stripe account, and set capture_method to manual. Once captured, the transfer will take place.

slender estuary
#

I know that but as I mentioned earlier I am getting error in transfer API

#

This errir

#

*error

gray glade
#

You are missing transfer_data[destination] & capture_method.

#

You shouldn't have to create a transfer yourself for this, as the payment isn't captured yet.

slender estuary
#

Destination is mandatory?

gray glade
#

Yes, as you are using Connect, you should mark the payment as inherent to the connected account.

#

This way, Stripe will handle the transfer themselves once payment captured.

slender estuary
#

Okay let me try

#

Thanks @gray glade @earnest peak

earnest peak
#

@slender estuary did you have a new question?

slender estuary
#

Yes

#

I followed what @gray glade suggested

#

But still facing same issue

#

This error

earnest peak
slender estuary
#

req_L1R8LFexJcu0Kv

earnest peak
#

why are you calling /v1/transfers?

slender estuary
#

I am using .net SDK

earnest peak
#

I know

#

why are you using TransferService though?

#

as described above, that is not what you would do. You would use "Destination Charges" by creating a PaymentIntent and setting TransferData, you would not create the Transfer directly yourself.

#

if you did that you wouldn't have this error

slender estuary
#

Can I pass multiple destination accounts in TransferData with different amount?

earnest peak
#

no

slender estuary
#

For example, I receive 100$ from user, that will be go in 3 different accounts
65 to 1st, 15 to 2nd, 5 to 3rd

#

This is what I am trying to achieve

earnest peak
#

ok then you would not use Destination Charges.

#

you would create separate Transfers yes.

slender estuary
#

Is it possible to make negative balance and later in it can be reimburse

earnest peak
#

I don't really understand your question but no

#

like it says in the Stackoverflow answer
transfers via /v1/transfers can only succeed if you have sufficient available balance for the transfer amount

slender estuary
#

Ok what's your suggestion to overcome this error?

earnest peak
#

my suggestion is you read the links

#

they talk about the source_transaction paramter and how it can help!

slender estuary
#

Ok let me read it throughly

#

@earnest peak its working finally😍

#

Thank you!