Skip to content

Commit b9dec6f

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,9 @@ protected function createPaymentToken(Payment $payment, $token)
268268
$paymentToken->setTokenDetails(
269269
json_encode($payment->getAdditionalInformation(Transparent::CC_DETAILS))
270270
);
271-
$paymentToken->setExpiresAt(
272-
$this->getExpirationDate($payment)
273-
);
271+
$expDate = new \DateTime('now', new \DateTimeZone('UTC'));
272+
$expDate->add(new \DateInterval('P1Y'));
273+
$paymentToken->setExpiresAt($expDate->format('Y-m-d 00:00:00'));
274274

275275
$this->getPaymentExtensionAttributes($payment)->setVaultPaymentToken($paymentToken);
276276
}

0 commit comments

Comments
 (0)