I'm trying to implement transfer stripe fund to third party bank, i'm using Stripe connect.
I'm reading documentation for "Charging through the platform" and it says:
require_once('Stripe/lib/Stripe.php');
Stripe::setApiKey("PLATFORM_SECRET_KEY");
$charge =Stripe_Charge::create(array(
'amount' => 1000,
'currency' => 'usd',
'source' => $_POST['stripeToken']
)
, array('stripe_account' => CONNECTED_STRIPE_ACCOUNT_ID));
I have the PLATFORM_SECRET_KEY, and the TOKEN, but what is the needed CONNECTED_STRIPE_ACCOUNT_ID?
Do I missed something from the flow?
Is there a way to create a CONNECTED_STRIPE_ACCOUNT_ID from the user account?