Bump stripe-php from 19.4.1 to 20.0.0

This commit is contained in:
johnnyq
2026-04-08 12:44:45 -04:00
parent 346d7ed9f0
commit 123a581583
160 changed files with 957 additions and 279 deletions

View File

@@ -202,7 +202,13 @@ class CurlClient implements ClientInterface, StreamingClientInterface
*/
private function constructUrlAndBody($method, $absUrl, $params, $hasFile, $apiMode)
{
$params = Util\Util::objectsToIds($params);
// For V2 POST bodies, preserve null values so they serialize to JSON
// null (the V2 mechanism for clearing fields / metadata keys).
// For all other cases (V1, GET/DELETE query params), strip nulls as
// before — null values become empty strings in query params which
// causes server errors.
$serializeNull = ('post' === $method && 'v2' === $apiMode);
$params = Util\Util::objectsToIds($params, $serializeNull);
if ('post' === $method) {
$absUrl = Util\Util::utf8($absUrl);
if ($hasFile) {