I can't put a finger on it. I'm trying to retrieve a credit card response object from Stripe by passing in the token generated by Stripe.js.

Everything works fine. I get a Card object back, but the issue is that the ID of the Card I receive, is not the same as the one stored in Stripe.

It only happens when using Stripe and creating a customer on a connected account.

Stripe::setApiKey(STRIPE_API_KEY);


return Token::retrieve($token, [
    'stripe_account' => STRIPE_ACCOUNT_ID
]);

0 Answers