customers->get("cst_cUe8HjeBuz"); /** * Customer fields that can be updated. * * @See https://docs.mollie.com/reference/v2/customers-api/update-customer */ $customer->name = "Luke Sky"; $customer->email = "luke@example.org"; $customer->locale = "en_US"; $customer->metadata->isJedi = TRUE; $customer->update(); echo "

Customer updated: " . htmlspecialchars($customer->name) . "

"; } catch (\Mollie\Api\Exceptions\ApiException $e) { echo "API call failed: " . htmlspecialchars($e->getMessage()); }