customers->get("cst_cUe8HjeBuz"); $subscription = $customer->getSubscription("sub_DRjwaT5qHx"); /** * Subscription fields that can be updated are described by the link: * See https://docs.mollie.com/reference/v2/subscriptions-api/update-subscription */ $subscription->times = 10; $subscription->startDate = '2018-12-02'; // Year-month-day $subscription->amount = (object)['value' => '12.12', 'currency' => 'EUR']; $subscription->webhookUrl = 'https://some-webhook-url.com/with/path'; $subscription->description = 'Monthly subscription'; $subscription->update(); echo "
Subscription updated: " . $subscription->id . "
"; } catch (\Mollie\Api\Exceptions\ApiException $e) { echo "API call failed: " . htmlspecialchars($e->getMessage()); }