#tirth-jain_docs

1 messages · Page 1 of 1 (latest)

trail steepleBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1433323698554929183

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

raw mango
#

I am in my sandbox enviroment

civic wedge
#

Hey! do give me some time to take a look at this

raw mango
#

okay

civic wedge
#

if you reach out to Stripe Support -  https://support.stripe.com/contact , they'll be able to advise you on your questions! We mainly help with developers who want to integrate directly with the Stripe API here on this channel

raw mango
#

Actually I am integrating from the API, Top-up API is not working for other currencies except USD

#

I am not sure whether it's a permission sort of issue or i am doing something wrong

civic wedge
#

did you receive an error when calling the API? Could you send me the request ID (req_xxx) for that request?

#

Looking at our docs here, it seems like for US platform accounts, the only top up currency is USD

#

However, i am not a 100% sure, and my colleagues at support will be better able to confirm that

raw mango
#

did you receive an error when calling the API? Could you send me the request ID (req_xxx) for that request?

Yes! give me a minute

civic wedge
#

Yup the error confirms it

Top-up creation is not supported for country US and currency GBP

raw mango
#

Looking at our docs here, it seems like for US platform accounts, the only top up currency is USD

  • Although my end goal is to move money from my platform currency to other currencies, but when I try Transfer API by passing currency=gbp then it always says me the Insufficient balance ?
civic wedge
#

Could you send me the request ID for that?

#

Apologies for the wait

civic wedge
#

Could this be one example?

Where you tried to transfer 100.25 eur to another account.

#

Just curious, is your end goal to move money from my platform currency to other currencies (within the same platform account)

raw mango
#

Or is your use case related to payouts? Specifically cross-border payouts?
Yes! this is related to cross-border transfer, and the account are the (Express Connect Accoount) which is within the to whom I am transfering

#

Steps I am performing is as below

  • ** Create Express Account** and let my user connect to my platform
  • Then Onboarding them to my platform (Connect Account) by generating the link
  • Using the accountId and Transfer Create APi I am moving money to there wallet
civic wedge
#

The Transfer API is different from the Payouts. This is explained here:

Before April 6, 2017, transfers also represented movement of funds from a Stripe account to a card or bank account. This behavior has since been split out into a Payout object, with corresponding payout endpoints. For more information, read about the transfer/payout split.

#

For Cross Border payouts there are a few steps to be completed as documented here

raw mango
#

Okay that I know already, **Payout API **and Transfer API is different but I only want to Use Transfer API, move money to my connected user account stripe wallet. ( Not to there bank acocunt )

My Platform only have the USD Balance, What my goal is to pass currency other than USD (Consider this is the case) .

Example:
The receiver’s local currency is EUR, and I need to transfer 8 EUR. Stripe should convert the amount from EUR to USD, debit from my account in USD, and the receiver should receive 8 EUR.

Working Example ✅
const transfer = await stripe.transfers.create({
    amount: 8 * 100, // Amount in cents from frontend
    currency: 'usd', // because i have balance in usd
    destination: account.id,
    description: `Transfer to ${account.email || account.id}`,
  });
Not Working Example ❌
Error: Insufficient Balance

const transfer = await stripe.transfers.create({
    amount: 8 * 100, // Amount in cents from frontend
    currency: 'eur', // or any other currency expect usd
    destination: account.id,
    description: `Transfer to ${account.email || account.id}`,
  });

civic wedge
#

Sorry do give me some time to test this out!

#

Hey, could you try these steps:

  1. Create an FX Quote (docs), with the following example payload:

{ to_currency: 'eur', // connected account currency from_currencies : ['usd'], // platform currency lock_duration: 'day', lock_duration : 'five_minutes', usage : { type : 'transfer', transfer : { destination : 'acct_xxx' #account you want to transfer to } } }

  1. Create a transfer, specifying the fx_quote field, example payload below

{ currency: "usd", // this must be the platform currency destination: "acct_xxx", fx_quote: 'fexq_xxx', amount : //amount to be transfered , }

raw mango
#

Math.round(10000 / panels[0].rates.usd.exchange_rate)

is this formula will work for every currency, ?

civic wedge
#

oh apologies, let me amend that