Skip to content

Commit ed50ddb

Browse files
committed
ACP2E-4064: PayflowPro saved card token failed on payment
1 parent b9dec6f commit ed50ddb

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

app/code/Magento/Paypal/Model/Payflow/Transparent.php

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -275,29 +275,6 @@ protected function createPaymentToken(Payment $payment, $token)
275275
$this->getPaymentExtensionAttributes($payment)->setVaultPaymentToken($paymentToken);
276276
}
277277

278-
/**
279-
* Generates CC expiration date by year and month provided in payment.
280-
*
281-
* @param Payment $payment
282-
* @return string
283-
* @throws \Exception
284-
*/
285-
private function getExpirationDate(Payment $payment)
286-
{
287-
$expDate = new \DateTime(
288-
$payment->getCcExpYear()
289-
. '-'
290-
. $payment->getCcExpMonth()
291-
. '-'
292-
. '01'
293-
. ' '
294-
. '00:00:00',
295-
new \DateTimeZone('UTC')
296-
);
297-
$expDate->add(new \DateInterval('P1M'));
298-
return $expDate->format('Y-m-d 00:00:00');
299-
}
300-
301278
/**
302279
* Returns payment extension attributes instance.
303280
*

0 commit comments

Comments
 (0)