#Sharvari96
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
This Payment Method object exists on the Connected account. You need to make the call with Stripe-Account header to use it: https://stripe.com/docs/connect/authentication
but I want the balance to come to platform account not the connect account. Would that happen if I use the Stripe-Account header?
or is there a way to remove the payment method from the connected account?
@crisp creek
No, with Stripe-Account header you control the Connected Account. You will need to collect the Payment Method again on your Platform.
You can't delete a PM, but you can detatch, which makes it unusable: https://stripe.com/docs/api/payment_methods/detach
"You will need to collect the Payment Method again on your Platform." - how to do that?
How did you obtain this PM?
Ok, I had not changed the public key on client side. But I am facing a different issue now.
- Payment confirmation API is giving an error althought payment is succeed in the dashboard-
code: "payment_intent_unexpected_state"
message: "You cannot confirm this PaymentIntent because it has already succeeded after being previously confirmed." - Current Balance is still 0 - the amount has ended up in future payouts.
I used these test cards so that balance is immediately reflected, but that's not happening - https://stripe.com/docs/testing#available-balance
@crisp creek
- Could you please share the Request ID
req_xxx? https://support.stripe.com/questions/finding-the-id-for-an-api-request - That's fine, it takes time to land in you available balance. Could you please share the relevant PaymentIntent ID?
- https://dashboard.stripe.com/test/logs/req_tZCoBtCGMiLF0s?t=1686827130
- pm_1NJDzXLbsWAvIKo9dF7GcyVd - how much time does it take?
- You used
confirm: "True"and an existing Payment Method when creating a PaymentIntent, so it was instantly successful. You don't need to and can't confirm it again.
- That's a Payment Method.
- Could you please give me the PaymentIntent ID
pi_xxx?
- pi_3NJDzZLbsWAvIKo92zndmaSu - sorry for that
I see, I am not sure how long exactly it takes for you balance to become available. You could probably ask Stripe Support, as it depends on the country, etc.: https://support.stripe.com/?contact=true
but the documentation here says explicitly that using these cards for test payments will make it available immediately - https://stripe.com/docs/testing#available-balance
I tried both the cards recommended
But did the payment result in the error?
payment was successful, but not reflected in the balance immediately, payment confirmation API gave an error
Did you use the test card in the Payment Element? Or is it the one you provided in the payment_method when creating the PaymentIntent?
did this -
const { error, paymentMethod } = await stripe.createPaymentMethod({ type: 'card', card: cardElement, });
on client side, got the paymenth method id and then created a payment intent on the server side - does that answer the question?
Why were you trying to confirm it again in req_tZCoBtCGMiLF0s? I am a bit confused.
oh - did that cause the issue?
will try again without confirmation..
I removed the payment confirmation API call. Still same issue - payment successfull but not appearing in Balance but appearing as part of future payouts. - req_CLyDWr3Uzetn6n, pm_1NJEh4LbsWAvIKo9phwAJace, pi_3NJEh5LbsWAvIKo91MLPp9MJ
Account where I want the balance to reflect - acct_1NCw29LbsWAvIKo9
One more issue -
- Platform Account Country - US, Express Connect Account Country - INDIA
- Trying to make a desination charge to the connect account
- "message": "Stripe doesn't currently support destination charges with accounts in IN."
- details - pi_3NJEf5LbsWAvIKo91oouSb9s, req_6gXjs0poGckrFI, pm_1NJEf4LbsWAvIKo9TAxeTo3v
Then how to give out funds to the connect account?
👋 taking over for my colleague. Let me catch up.
have edited the last message with relevant details
I removed the payment confirmation API call. Still same issue - payment successfull but not appearing in Balance but appearing as part of future payouts. - req_CLyDWr3Uzetn6n, pm_1NJEh4LbsWAvIKo9phwAJace, pi_3NJEh5LbsWAvIKo91MLPp9MJ
Account where I want the balance to reflect - acct_1NCw29LbsWAvIKo9
this is normal, the balance consists of Available and Pending balances
But the documentation says - https://stripe.com/docs/testing#available-balance if I use this card - balance will becoming available immediately
which I did - but available balance is 0
let me double check
I am so sorry I got confused by the UI. But when I checked via API - balance = stripe.Balance.retrieve() I got available balance.
However in UI - all of it is been shown as estimated future payouts...
Ok
Can you look into the second issue instead - destination charges?
Platform Account Country - US, Express Connect Account Country - INDIA
Trying to make a desination charge to the connect account
"message": "Stripe doesn't currently support destination charges with accounts in IN."
details - pi_3NJEf5LbsWAvIKo91oouSb9s, req_6gXjs0poGckrFI, pm_1NJEf4LbsWAvIKo9TAxeTo3v
Then how to give out funds to the connect account?
@twilit moss
you need to create Direct Charges
tried this -
payment = stripe.PaymentIntent.create(
amount=1000,
currency="usd",
automatic_payment_methods={"enabled": True},
stripe_account='acct_1NJDOPPxtJyeJZXO',
)
status says - requires_payment_method, pi_3NJFLZPxtJyeJZXO1qhaaMot
@twilit moss
card payment method is turned on on connect account and platform account