#shifa_api

1 messages ¡ Page 1 of 1 (latest)

peak fogBOT
#

👋 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/1328976168120225803

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

sly valve
#

The user is trying to receive payments on a connected Stripe account rather than the main account. However, while attempting to connect Stripe, they are only being presented with the option to connect the main account.

#

We are using this code for stripe connect

OAuth::authorizeUrl(

                'response_type'  => 'code',
                'client_id'      => $client_id,
                'stripe_landing' => 'login',
                'always_prompt'  => 'true',
                'scope'          => 'read_write',
                // need to use base64_encode to encode data to be sent to server.
                'state'          => base64_encode( 
                    wp_json_encode(
                        [
                            'redirect' => add_query_arg( 'cpsw_connect_nonce', wp_create_nonce( 'stripe-connect' ), $redirect_url ),
                        ]
                    )
                ),
        
    );
grave shell
#

That could be tricky. Basically your user is a Platform and has their own Connected Account. Do they want them to connect to you, or their Connected Account to connect to you?

sly valve
#

Instead of connecting main account they want to connect their connected account inside stripe dashboard. Or else they want to get all their payment to go to their connected account. Any one of these could be a solution.

sly valve
grave shell
#

Yeah I see. We don't support that flow. Normally one Account can only connected to 1 Platform

#

It can't have 2+ Platforms, with some exception

sly valve
#

Is there any way changing stripe any settings or code improvement i can do to get all their payments go strictly to their connected account.

grave shell
#

Let's say A is your user. B is their Connected Account. Your account is X

#

So B is connected to A. Normally A is connected to X. We know that B can not both connected to A and X

#

What you (X) will do with A's payment, or B's payment transactions? Some kind of reporting feature?

sly valve
#

Currently, We are just processing the payment of A and transaction will appear on A's stripe dashboard.
But now A is asking us that,
1 - is there any way to get all A's transaction that get from X to be added directly to B.
2 - OR while connecting stripe , A want to connect B . but currently on connecting screens, only A is showing for his email id. Why connected account(B) of his account (A) is not showing under his email (A's email)

grave shell
#

1- Not sure I get the question, but a transaction only has 1 owner. If they want to transaction belongs to B, they will need to make it a Direct Charge (A is platform, using Stripe Account header = B). And that won't appear in X AFAIK
2- Yeah because we don't support that flow unfortunately

sly valve
#

okay. But user can manually send their transactions to their connected accounts from stripe dashboard. right?
If no, May I know what exactly the use of connected account.

grave shell
#

They have slightly different fund flows. Direct Charge is for Standard Account, Destination Charge is for Express/Custom