Comments

rpayanm created an issue. See original summary.

tsega’s picture

@rpayanm, the patch in #1 does not fix the Drupal 9 compatibility issues as reported by the Upgrade Status module. I fear this has been tagged Drupal 9 porting weekend by mistake.

Here is what I mean:

Upgrade Status Report

tsega’s picture

StatusFileSize
new227.67 KB
tsega’s picture

rpayanm’s picture

StatusFileSize
new1.19 KB

Review now please.

mglaman’s picture

Status: Needs review » Needs work
+++ b/src/VantivApiHelper.php
@@ -2,6 +2,7 @@
+use Drupal;

@@ -26,7 +27,7 @@ class VantivApiHelper {
-    return REQUEST_TIME + self::getPaymentAuthorizationLifespan($card_type);
+    return Drupal::time()->getRequestTime() + self::getPaymentAuthorizationLifespan($card_type);

We don't import the \Drupal class.

mglaman’s picture

Status: Needs work » Needs review
StatusFileSize
new1.3 KB

Here's an updated patch.

  • mglaman committed 0a04a3c on 8.x-1.x
    Issue #3139265 by rpayanm, mglaman, tsega: Drupal 9 deprecated
    
mglaman’s picture

Status: Needs review » Fixed
Issue tags: +Drupal 9 compatibility

Fixed!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.