#Marcello-requests
1 messages · Page 1 of 1 (latest)
Hello!
I'm fairly sure this is because your code is slightly wrong - give me a second to double check
Yea, your code needs to look more like this:
$subitem = \Stripe\SubscriptionItem::retrieve('si_xxx');
$subitem->delete();
It's because you're using the legacy syntax of our PHP library - with the new client/services pattern that was added in 7.33.0 we added the ability to delete without first retrieving
Here's a very similar github issue talking about the same thing: https://github.com/stripe/stripe-php/issues/594
ok thank you