Add placeholder methods for Authorize, Custom & PayPalExpress

This commit is contained in:
Benjamin Beganović 2020-09-18 10:01:19 +02:00
parent 71ca5d108c
commit 210ebb1754
3 changed files with 33 additions and 0 deletions

View File

@ -143,4 +143,15 @@ class AuthorizePaymentDriver extends BaseDriver
return $this->payment_method->tokenBilling($cgt, $payment_hash); 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.
}
} }

View File

@ -75,4 +75,15 @@ class CustomPaymentDriver extends BaseDriver
public function processPaymentResponse($request) 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.
}
} }

View File

@ -322,4 +322,15 @@ class PayPalExpressPaymentDriver extends BasePaymentDriver
'code' => $response->getData()['L_ERRORCODE0'], '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.
}
} }