#dheeraj_44691
1 messages · Page 1 of 1 (latest)
Each account has its own set of API. You can find each of their API in https://dashboard.stripe.com/test/apikeys
Ah I see!
You may refer to the payment integration guide here: https://stripe.com/docs/payments/quickstart
Can only apply an application_fee_amount when the PaymentIntent is attempting a direct payment (using an OAuth key or Stripe-Account header) or destination payment (using transfer_data[destination]).
how can this problem be fixed ?
Are you using Connect https://stripe.com/docs/connect/explore-connect-guide? If so, what type of connected account (Standard, Express or Custom) do you use?
My platform is in Canada
and I am trying to send Money to USA account.
Hi! I'm taking over from my colleague. Please, give me a moment to catch up.
Uncaught (Status 400) (Request req_LDm0HrzaQkrKZX) Funds can't be sent to accounts located in US because it's restricted outside of your platform's region; please contact us via https://support.stripe.com/contact for details
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
I think we've been talking yesterday, right?
You can't send funds from Canadian Platform to a Connected account in USA, unfortunately.
yes
yes
$charge = \Stripe\Charge::create([
'amount' => 1000, // Amount in cents
'currency' => 'usd',
'source' => 'tok_visa', // Payment source (token or card details)
'on_behalf_of' => 'acct_1hvggvGFHg4FKe0LC', // Recipient's Stripe account ID
]);
print_r($charge);
// Create a transfer from your platform's account to the seller's account
$transfer = \Stripe\Transfer::create([
'amount' => 800, // Amount in cents (after deducting platform fee)
'currency' => 'usd',
'destination' => 'acct_1Ng8nGFHpphyv', // Recipient's Stripe account ID
]);
// Handle success or error responses
if ($charge && $transfer) {
echo "Charge and transfer successful!";
} else {
echo "Charge and transfer failed.";
}
Your code is correct, but because of the above limitation, it won't work.
so when will it be ok
I think you might be able to ask Stripe Support to enable this for you: https://support.stripe.com/?contact=true
But otherwise, you will need to have a separate Stripe account in the US (and probably register a company there).