-
Notifications
You must be signed in to change notification settings - Fork 898
Migration guide for v10
anniel-stripe edited this page Nov 22, 2022
·
1 revision
"
-
#1382 Mark
resource.saveas 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'], ]);
saveto unset a parameter by assigning itNULL, when switching toupdateplease 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
Skuresource and service -
#1375 Removed deprecated
Ordersresource and service -
#1375 Removed deprecated
Productfield from theLineItem -
#1388 Removed deprecated
AlipayAccountresource -
#1396 Removed
chargesfield onPaymentIntentand replace it withlatest_charge.
Read more at https://stripe.com/docs/upgrades#2022-11-15