Archive previous payment methods

This commit is contained in:
Hillel Coren 2016-08-01 14:53:10 +03:00
parent cb9a67063d
commit 948a3e8911

View File

@ -507,7 +507,6 @@ class BasePaymentDriver
$customer->save(); $customer->save();
} }
/*
// archive the old payment method // archive the old payment method
$paymentMethod = PaymentMethod::clientId($this->client()->id) $paymentMethod = PaymentMethod::clientId($this->client()->id)
->isBankAccount($this->isGatewayType(GATEWAY_TYPE_BANK_TRANSFER)) ->isBankAccount($this->isGatewayType(GATEWAY_TYPE_BANK_TRANSFER))
@ -516,7 +515,6 @@ class BasePaymentDriver
if ($paymentMethod) { if ($paymentMethod) {
$paymentMethod->delete(); $paymentMethod->delete();
} }
*/
$paymentMethod = $this->createPaymentMethod($customer); $paymentMethod = $this->createPaymentMethod($customer);