PATH:
home
/
lab2454c
/
.trash
/
core
/
vendor
/
mollie
/
mollie-api-php
/
examples
/
customers
<?php /* * Updating an existing customer via the Mollie API. */ try { /* * Initialize the Mollie API library with your API key or OAuth access token. */ require "../initialize.php"; /* * Retrieve an existing customer by his customerId */ $customer = $mollie->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 "<p>Customer updated: " . htmlspecialchars($customer->name) . "</p>"; } catch (\Mollie\Api\Exceptions\ApiException $e) { echo "API call failed: " . htmlspecialchars($e->getMessage()); }
[-] create-customer-recurring-payment.php
[edit]
[+]
..
[-] create-customer-first-payment.php
[edit]
[-] create-customer-payment.php
[edit]
[-] delete-customer.php
[edit]
[-] update-customer.php
[edit]
[-] create-customer.php
[edit]
[-] list-customer-payments.php
[edit]