customers->create([ "name" => "Luke Skywalker", "email" => "luke@example.org", "metadata" => [ "isJedi" => TRUE, ], ]); echo "

New customer created " . htmlspecialchars($customer->id) . " (" . htmlspecialchars($customer->name) . ").

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