diff --git a/src/Pay/Adapter.php b/src/Pay/Adapter.php index 38da72d..0232f54 100644 --- a/src/Pay/Adapter.php +++ b/src/Pay/Adapter.php @@ -102,7 +102,7 @@ abstract public function listPaymentMethods(string $customerId): array; /** * Remove payment method */ - abstract public function deletePaymentMethod(string $customerId): bool; + abstract public function deletePaymentMethod(string $paymentMethodId): bool; /** * Add new customer in the gateway database diff --git a/src/Pay/Pay.php b/src/Pay/Pay.php index 0b434fa..4d3da2d 100644 --- a/src/Pay/Pay.php +++ b/src/Pay/Pay.php @@ -101,13 +101,12 @@ public function refund(string $paymentId, int $amount): array /** * Delete Payment Method * - * @param string $customerId * @param string $paymentMethodId * @return bool */ - public function deletePaymentMethod(string $customerId, string $paymentMethodId): bool + public function deletePaymentMethod(string $paymentMethodId): bool { - return $this->adapter->deletePaymentMethod($customerId, $paymentMethodId); + return $this->adapter->deletePaymentMethod($paymentMethodId); } /**