#IcetexxJumbo74 - invalid request error

1 messages ยท Page 1 of 1 (latest)

short wedge
#

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?

teal grotto
#

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)

gleaming stirrup
#

don't use topups for this

teal grotto
#

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 ?"

gleaming stirrup
#

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)

teal grotto
#

Well I will try it ^^

gleaming stirrup
#

Sounds good, let me know if any question come up

teal grotto
#

Yep ๐Ÿ™‚

teal grotto
#

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 ?

gleaming stirrup
teal grotto
#

So I have to use both on_behalf_of and transfer_data even if it's the same connected account ?