Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ralphmorris's avatar

Cashier Update Card Error: You cannot set 'id'to an empty string. We interpret empty strings as NULL in requests. You may set obj->id = NULL to delete the property

Hi all,

Just had this error from Stripe when a user tried to update their card. I'm using Laravel Cashier on Laravel 5.2. (Currently in the process of upgrading to 5.8 and implementing the new SCA implementation in development.)

Has anybody seen this before?

$user->updateCard($request->stripeToken);

Response:

"You cannot set 'id'to an empty string. We interpret empty strings as NULL in requests. You may set obj->id = NULL to delete the property"

Only thing I have found is this thread but haven't got any further yet.

https://github.com/stripe/stripe-php/issues/379

Thanks!

0 likes
0 replies

Please or to participate in this conversation.