diff --git a/app/PaymentDrivers/AuthorizePaymentDriver.php b/app/PaymentDrivers/AuthorizePaymentDriver.php index 60f569dec2c0..bf61c854b389 100644 --- a/app/PaymentDrivers/AuthorizePaymentDriver.php +++ b/app/PaymentDrivers/AuthorizePaymentDriver.php @@ -143,4 +143,15 @@ class AuthorizePaymentDriver extends BaseDriver return $this->payment_method->tokenBilling($cgt, $payment_hash); } + + /** + * Detach payment method from Authorize.net. + * + * @param \App\Models\ClientGatewayToken $token + * @return void + */ + public function detach(ClientGatewayToken $token) + { + // Authorize.net doesn't support this feature. + } } diff --git a/app/PaymentDrivers/CustomPaymentDriver.php b/app/PaymentDrivers/CustomPaymentDriver.php index 00b823595cce..88a063983fe7 100644 --- a/app/PaymentDrivers/CustomPaymentDriver.php +++ b/app/PaymentDrivers/CustomPaymentDriver.php @@ -75,4 +75,15 @@ class CustomPaymentDriver extends BaseDriver public function processPaymentResponse($request) { } + + /** + * Detach payment method from custom payment driver. + * + * @param \App\Models\ClientGatewayToken $token + * @return void + */ + public function detach(ClientGatewayToken $token) + { + // Driver doesn't support this feature. + } } diff --git a/app/PaymentDrivers/PayPalExpressPaymentDriver.php b/app/PaymentDrivers/PayPalExpressPaymentDriver.php index 952410f09688..6dff4333694c 100644 --- a/app/PaymentDrivers/PayPalExpressPaymentDriver.php +++ b/app/PaymentDrivers/PayPalExpressPaymentDriver.php @@ -322,4 +322,15 @@ class PayPalExpressPaymentDriver extends BasePaymentDriver 'code' => $response->getData()['L_ERRORCODE0'], ]; } + + /** + * Detach payment method from PayPal. + * + * @param \App\Models\ClientGatewayToken $token + * @return void + */ + public function detach(ClientGatewayToken $token) + { + // PayPal doesn't support this feature. + } }