php - Stripe payment issue with "application fee" -
i facing following problem while doing stripe payment.
uncaught exception 'stripe\error\authentication' message 'only stripe connect platforms can work other accounts. if specified client_id parameter, make sure it's correct
i using php code below:
$charge = \stripe\charge::create( array( "amount" => $amount*100, // amount in cents "currency" => $currency, // usd "source" => $token, "description" => $description, "application_fee" => 123 // amount in cents ), array("stripe_account" => 'cus_7gt1caxxxxxx') // connected_stripe_account_id );
and question can connected_stripe_account_id
acct_12qkqygsod4xxxxxx
. if possible please send code or screenshot or location these account id.
can please solve problem?
you have create 'connect stripe' button in app redirect user fill form authorize app.
after clicking on authorize button(by user,after filling form properly), redirect 'redirect uri(redirect uri uri fill in platform setting)'.
after redirection stripe add scope , authorization code uri
for eg. uri: www.yoursite.com www.yoursite.com?scope=read_write&authorization_code=authorization_code
- after follow----> https://stackoverflow.com/a/34714859/5467417
Comments
Post a Comment