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?

  1. you have create 'connect stripe' button in app redirect user fill form authorize app.

  2. after clicking on authorize button(by user,after filling form properly), redirect 'redirect uri(redirect uri uri fill in platform setting)'.

  3. after redirection stripe add scope , authorization code uri

for eg. uri: www.yoursite.com www.yoursite.com?scope=read_write&authorization_code=authorization_code

  1. after follow----> https://stackoverflow.com/a/34714859/5467417

Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -