#Hitesh

1 messages · Page 1 of 1 (latest)

native cometBOT
tawny moat
#

Can you share the Checkout Session ID (cs_xxx)?

latent basalt
#

checkout session id=cs_test_b1hOo8fBNE5vtqIMi5cgSTC5v2jhaZq5bnKXJX6Fyph4bZ58iXmSCBvGPK

payment_intent id =pi_3N6o98FEVJEbpeYB1oSe09tg

here is my code snippet

const subtotal=8000
const totalCharges=282

const checkoutSession = await stripe.checkout.sessions.create({
mode: 'payment',
line_items: [
{
price_data: {
product_data: {
name: Invoice 1,
},
currency: usd,
unit_amount: subtotal,
},
quantity: 1,
},
{
price_data: {
product_data: {
name: Charges,
},
currency: usd,
unit_amount: totalCharges,
},
quantity: 1,
},
],

success_url: http://localhost:3000/payment/success,
cancel_url: http://localhost:3000/payment/cancel,
payment_intent_data: {
transfer_data: {
amount: subtotal - totalCharges,
destination: connected account id ,
},
},
});

#

you can see main balance must have +2.82 but get 2.4

tawny moat
#

I see! This channel is for technical integration. For the question about how the account balance is shown, I'd recommend reaching to Stripe Support https://support.stripe.com/contact as we don't have the expertise about how this number is calculated

latent basalt
#

but i think so it's technical because it can be manage from code for checkout session

tawny moat
#

In your API, the USD $2.82 is remained in the platform and USD $80 was transferred to the connected account. However, the balance you shared is in EUR, so there could be a currency conversion from USD $2.82 to EUR

#

We don't have the expertise how the currency conversion works, so Support team will be able to help

latent basalt
#

ok