Reputation: 401
I am processing payments using Stripe Connect and the client ID that is meant to receive payments from my application is returning the error "No such merchant: ca_8xxx". My code is :
try {
$charge = \Stripe\Charge::create(array(
"amount" => $amount,
"currency" => "usd",
"source" => $token,
"description" => "Strike Charge",
"application_fee" => 500,
"destination" => $client_id //not working
));
} catch(\Stripe\Error\Card $e) {
// The card has been declined
}
Upvotes: 3
Views: 1316
Reputation: 17505
When charging through the platform, the destination
parameter should be set to the ID of the connected account on behalf of which you're processing the charge. Account IDs look like acct_...
.
Right now it looks like you're passing your platform's client_id
. The client_id
is used when connecting users with the OAuth flow.
Upvotes: 2