#IcetexxJumbo74 - invalid request error
1 messages ยท Page 1 of 1 (latest)
Hello, thanks for the info checking in to that error
I am not immediately seeing built in sources for creating a USD top up in test mode. Still looking for those
Are you actually testing top ups or are you just trying to add EUR funds to your test mode account?
Ok.
I'm trying to test top ups with EUR found via the API.
Well, maybe I will explain the context.
I'm trying to develop a system that allow a customer to buy a service to a professional.
At the moment the customer pays, the platform account must be increase. (for this part, I use a basic checkout.Session)
When the service is done, the customer and the pro must validate the order. Once it's done, I want to trigger a transfer from the platform to a connected account. (So I use Transfer)
The problem I have faced is the following.: The platform account's balance was 0 because the balance was transfered to the bank account.
So I was looking in the TopUp ๐
Maybe the way I develop the system is not the good one ? ๐ค
(I know we can customize the transfer's frequency to the bank account)
don't use topups for this
https://stripe.com/docs/connect/charges-transfers#transfer-availability you want to read this doc which explains how to tie a Transfer to the original charge/payment
But really I think you might be building this wrong overall. Hard to say without more context on your setup but assuming you use Custom or Express accounts, the best option is to use https://stripe.com/docs/connect/destination-charges to transfer funds automatically to their own account balance and then you can keep them on manual payouts https://stripe.com/docs/connect/manage-payout-schedule so that you hold the funds for them until you're ready to pay them out
I'm using Custom accounts.
Hmm after ready the doc you sent, I think you're right.
The only question I have is : "How to trigger the checkout page for a paymentIntent ?"
I have no idea what that sentence could mean ๐
If you use Checkout, you would never create the PaymentIntent yourself
Checkout supports that flow automatically with the same parameters (on_behalf_of and transfer_data)
Well I will try it ^^
Sounds good, let me know if any question come up
Yep ๐
I've written something.
.setPaymentIntentData( SessionCreateParams.PaymentIntentData.builder() .setTransferData( SessionCreateParams.PaymentIntentData.TransferData.builder() .setDestination("{CONNECTED_ACCOUNT_ID}") .setAmount(Double.valueOf(estimate.getTotal() * 100).longValue()) .build() ) // What the platform get .setApplicationFeeAmount(Double.valueOf(estimate.getTotal() * 100).longValue() * 85 / 100) .build() );
And just after that I define all "LineItem".
Do you think it's more logic ?
You want to read https://stripe.com/docs/connect/destination-charges#settlement-merchant too
So I have to use both on_behalf_of and transfer_data even if it's the same connected account ?