#ShipX

1 messages · Page 1 of 1 (latest)

sharp carbonBOT
rare sand
#

What's the issue

tired zenith
#

so i want to add funds to stripe account
so i used topup api to add funds but it is throwing an error like this Top-up creation is not supported for country CA and currency CAD.

rare sand
#

Yep, they're only available in certain countries and I don't believe CA is one

tired zenith
#

so how can i add funds then in ca account?

rare sand
#

I guess you'd just accumulate a balance by processing some payments (assuming you're in test mode)

tired zenith
#

yes i have done some payment

#

and yes i am in test mode

#

what i exactly i need that i want to send money to the stripe connect account straight away

rare sand
#

You probably need to use the cards here (https://stripe.com/docs/testing#available-balance) to bypass the pending balance so the fund are available straight away

Use test cards to validate your Stripe integration without moving real money. Test a variety of international scenarios, including successful and declined payments, card errors, disputes, and bank authentication. You can also test non-card payment methods.

tired zenith
#

but i can not use this
i have used transfer api based on charged id
so balance is always showing in future payout
it is not adding in to transit to bank

#

const transfer = await stripe.transfers.create({
amount: amount * 100,
currency: "cad",
destination: destinationAccountId,
source_transaction: charge.id,
// transfer_group: 'ORDER_95',
});

#

also tell me why balance is always staying in future payout ?

#

because i transfered money 5 days ago but still it is in future payout

rare sand
#

Probably a couple of reasons:

With Connect, you can make charges on your platform account on behalf of connected accounts, perform transfers separately, and retain funds in the process.

tired zenith
#

ok

#

can you please explain more on this point "By passing source_transaction the transfer doesn't happen until the related transaction/payment actually settles."?

rare sand
#

Did you read the link I just sent? Should explain it

#

By using source_transaction, the transfer request succeeds regardless of your available balance and the transfer itself only occurs once the charge’s funds become available.

#

So in your example, the transfer will only happen once the balance from charge.id (in your example) has settled/become available on the platform

tired zenith
#

so what i am asking is that
it has been more than 5 days
but funds are still in future payout

rare sand
#

Ok, and what is the payout schedule for the account?

tired zenith
#

currently i have set it to manual payout

#

console.log("cardId===", cardId);
const charge = await stripe.charges.create({
amount: amount * 100,
currency: "cad",
source: cardId,
customer: customerId,

});
console.log("charge====", charge);
const transfer = await stripe.transfers.create({
  amount: amount * 100,
  currency: "cad",
  destination: destinationAccountId,
  source_transaction: charge.id,
});
#

making the payment like this

rare sand
tired zenith
#

so first i will call charge api then this transfer api then this payouts api
right?

rare sand
#

Correct yes

tired zenith
#

okkk

what if i do not have enough funds in stripe so that will throw insufficient balance error
so how do i add those funds in stripe?

#

which api should i use to add funds?

rare sand
#

You'd add to the balance by processing payments using the cards I sent earlier

tired zenith
#

ok