-
Notifications
You must be signed in to change notification settings - Fork 848
Migration guide for v10
anniel-stripe edited this page Nov 22, 2022
·
1 revision
"
-
#1382 Mark
resource.save
as deprecated. Prefer the static update method that doesn't require retrieval of the resource to update it.If you were using// before $resource = $stripe->prices->retrieve('price_123'); $resource->metadata['key'] = 'value'; $resource->save(); // after $resource = $stripe->prices->update('price_123', [ 'metadata' => ['key' => 'value'], ]);
save
to unset a parameter by assigning itNULL
, when switching toupdate
please assign the parameter to an empty string''
to preserve the previous behavior.// before $resource = $stripe->prices->retrieve('price_123'); $resource->description = NULL; $resource->save(); // after $resource = $stripe->prices->update('price_123', [ 'description' => '', ]);
-
#1377 Removed deprecated
Sku
resource and service -
#1375 Removed deprecated
Orders
resource and service -
#1375 Removed deprecated
Product
field from theLineItem
-
#1388 Removed deprecated
AlipayAccount
resource -
#1396 Removed
charges
field onPaymentIntent
and replace it withlatest_charge
.
Read more at https://stripe.com/docs/upgrades#2022-11-15