#fubaibai-webhook-java

1 messages · Page 1 of 1 (latest)

lean garnet
#

hello

#

There's no reason to use the client_secret in this call. So you should remove it.

#

client_secret is used for client-side calls with your Publishable API key

pearl field
#

When I remove it i'm getting No such payment_intent

lean garnet
#

that's normal

#

I assume you use Connect + Direct charges?

#

Do you have a PaymentIntent id I can look at?

pearl field
#

Basically I'm want to retrieve total fees like it's display on the dashboard :

#

Yea ofc

#

PaymentIntent id : pi_3LSOaL4KhXji62pO0TgG3vaQ

lean garnet
#

so the PaymentIntent is on a connected account. It doesn't exist on your own platform account.

pearl field
#

Yea it's why i was thinking about passing client secret

#

Ok will try rn

lean garnet
#
  RequestOptions.builder()
    .setStripeAccount("acct_123")
    .build();
``` and then pass that `requestOptions` 
```final PaymentIntent fullPaymentIntent =
  PaymentIntent.retrieve(paymentIntent.getId(), params, requestOptions);
pearl field
#

Awesome

#

Thx a lot, it worked

lean garnet
#

Amazing!

#

basically you need to always be clear about which account you make a call on. If it's your own account you do nothing, if it's a connected account you do the Stripe-Account header via RequestOptions

pearl field
#

Ok, I will print that on my wall thx !

lean garnet
#

🙂