• Resolved niteshpandit

    (@niteshpandit)


    hello
    
    We have a WooCommerce website, and we are currently using your plugin to accept payments. Now, we would like to transfer a certain amount to our connected Stripe account when capturing a charge. We have done some code for the transfer you can see the below code.
    
    $stripe = new \Stripe\StripeClient('sk_test.....');
    
    $transfer = $stripe->transfers->create([
    
    'amount' => 400,
    
    'currency' => 'usd',
    
    'destination' => 'acct_1NzCDyIIpGG4h0j7',
    
    'transfer_group' => 'ORDER_95',
    
    ]);
    This is the code for creating a transfer to a connected account. However, when attempting to capture, we encounter the 'not_allowed_on_standard_account' error. It's important to note that our connected account is a custom account, not a standard account. Please review the response provided below. Array
    (
    [error] => Array
    (
    [code] => not_allowed_on_standard_account
    [doc_url] => https://stripe.com/docs/error-codes/not-allowed-on-standard-account
    [message] => Cannot create transfers on behalf of a Standard connected account.
    [request_log_url] => https://dashboard.stripe.com/acct_1NxYGfIG8nRx0ZlR/test/logs/req_MkRP3yhVCR7c1v?t=1709098315
    [type] => invalid_request_error
    )

    )

    We are encountering the 'not_allowed_on_standard_account' error despite using a custom account for our connected account. Could you please investigate from your end and assist us in resolving this issue?"

    I have contacted Stripe support, and they indicated that the issue is not on their end. According to their response: 'As mentioned earlier, I checked the logs on the account, and the reason why the transaction is not going through is due to the Platform being considered a Standard account by your plugin.' Therefore, I am reaching out to you for assistance with resolving this matter.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there @niteshpandit,

    Helping out with custom coding of this nature is outside the scope of support, although I would recommend the following:

    1. Running the exact question you’re asking, along with the code provided, through an AI platform like ChatGPT for recommendations/changes to your code;
    2. Checking whether there are existing plugins in the WordPress plugin repository that might be doing that already.
    3. Joining our WooCommerce Slack community (it does have a developer channel where you can ask coding questions): https://woo.com/community-slack/
    4. Hiring a WooCommerce expert.

    Hope it helps!

    anastas10s

    (@anastas10s)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘we are getting when we transfer amout on stripe conncted account’ is closed to new replies.