customers->get("cst_cUa8HjKBus"); /* * Retrieve an existing mandate by his mandateId */ $mandate = $customer->getMandate("mdt_pa3s7rGnrC"); /* * Revoke the mandate */ $mandate->revoke(); echo "
Mandate has been successfully revoked.
"; } catch (\Mollie\Api\Exceptions\ApiException $e) { echo "API call failed: " . htmlspecialchars($e->getMessage()); }